Fixed responsiveness of the blog.
All checks were successful
Build Tavernworks / Explore-Gitea-Actions (push) Successful in 2m44s

Also added the publish date to a post.
This commit is contained in:
2025-10-16 13:56:58 -04:00
parent 55f1ac22b0
commit 8dd20cb0cb
2 changed files with 38 additions and 2 deletions

View File

@ -259,3 +259,25 @@
}
}
}
.video_link
{
display: none;
width: 100%;
justify-content: center;
}
@media screen and (max-width: 1000px)
{
.video_link
{
display: flex;
}
.embedded_video
{
display: none;
}
}

View File

@ -23,7 +23,7 @@ pub fn BlogAuthor() -> Element
#[component]
pub fn PostHeaderAuthor(author: Option<Adventurer>) -> Element
pub fn PostHeaderAuthor(author: Option<Adventurer>, publish_date: String) -> Element
{
match author
{
@ -37,6 +37,11 @@ pub fn PostHeaderAuthor(author: Option<Adventurer>) -> Element
content: "{adventurer.name}"
}
i
{
"Published: {publish_date}"
}
p
{
b
@ -58,6 +63,11 @@ pub fn PostHeaderAuthor(author: Option<Adventurer>) -> Element
content: "Unknown"
}
i
{
"Published: {publish_date}"
}
p
{
b
@ -107,7 +117,11 @@ pub fn PostHeader(tale: Tale, adventurer: Option<Adventurer>) -> Element
}
}
PostHeaderAuthor { author: adventurer }
PostHeaderAuthor
{
author: adventurer,
publish_date: tale.lore.publish_date.format("%m/%d/%Y").to_string()
}
}
}