From afb9ff6ab04a2c409b418d3ad1abe89a4fcd5e83 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 9 Oct 2021 13:44:30 -0500 Subject: [PATCH] Update blog archetype and add border to videos --- archetypes/blog/index.md | 11 +++++++++-- assets/css/bobastyle.css | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/archetypes/blog/index.md b/archetypes/blog/index.md index 4736585..5c06aa9 100644 --- a/archetypes/blog/index.md +++ b/archetypes/blog/index.md @@ -15,6 +15,13 @@ tags = [ # this image will be shown for the article in list pages [[resources]] name = "feature" -src = "gui.webp" -title = "Checkra1n GUI running on Arch Linux" +src = "something.webp" +title = "Some image (image format can be anything; webp is just an example)" + +# same as above, but a video. only one will be shown; image takes +# priority over video +[[resources]] +name = "feature-video" +src = "whatever.webm" +title = "Whatever video (video format can be anything; webm is just an example)" +++ diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index bc794e5..29cea76 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -95,7 +95,7 @@ img, video { max-width: 100%; } -img:not(.noborder) { +img:not(.noborder), video:not(.noborder) { padding: 5px; border: 5px solid #1b5b9b; }