Fixed responsiveness of the blog.
All checks were successful
Build Tavernworks / Explore-Gitea-Actions (push) Successful in 2m44s
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:
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -23,7 +23,7 @@ pub fn BlogAuthor() -> Element
|
|||||||
|
|
||||||
|
|
||||||
#[component]
|
#[component]
|
||||||
pub fn PostHeaderAuthor(author: Option<Adventurer>) -> Element
|
pub fn PostHeaderAuthor(author: Option<Adventurer>, publish_date: String) -> Element
|
||||||
{
|
{
|
||||||
match author
|
match author
|
||||||
{
|
{
|
||||||
@ -37,6 +37,11 @@ pub fn PostHeaderAuthor(author: Option<Adventurer>) -> Element
|
|||||||
content: "{adventurer.name}"
|
content: "{adventurer.name}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i
|
||||||
|
{
|
||||||
|
"Published: {publish_date}"
|
||||||
|
}
|
||||||
|
|
||||||
p
|
p
|
||||||
{
|
{
|
||||||
b
|
b
|
||||||
@ -58,6 +63,11 @@ pub fn PostHeaderAuthor(author: Option<Adventurer>) -> Element
|
|||||||
content: "Unknown"
|
content: "Unknown"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i
|
||||||
|
{
|
||||||
|
"Published: {publish_date}"
|
||||||
|
}
|
||||||
|
|
||||||
p
|
p
|
||||||
{
|
{
|
||||||
b
|
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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user