From 2a40fe636bb0704167a95acaaaa8fe21cbce4c86 Mon Sep 17 00:00:00 2001 From: Gianmarco Gargiulo Date: Thu, 2 Nov 2023 16:45:57 +0100 Subject: [PATCH] Added a breadcrumb indicator for sections on pages and post cards, replaced the old unimplemented download link system with a download button/banner shortcode and added one to the NixOS presentation page, changed the font size of page titles and updated the styling and some text on the ytr.html page --- content/videos/ld23nixos.md | 4 +- static/ytr.html | 31 ++++++++++--- themes/hugo-casper3/assets/scss/custom.scss | 43 +++++++++++++++++++ themes/hugo-casper3/assets/scss/main.scss | 3 +- .../hugo-casper3/layouts/_default/single.html | 3 +- .../layouts/partials/post-card.html | 2 +- .../layouts/shortcodes/download.html | 5 +++ 7 files changed, 81 insertions(+), 10 deletions(-) create mode 100644 themes/hugo-casper3/layouts/shortcodes/download.html diff --git a/content/videos/ld23nixos.md b/content/videos/ld23nixos.md index c1e1f32..9a7c46c 100644 --- a/content/videos/ld23nixos.md +++ b/content/videos/ld23nixos.md @@ -11,6 +11,8 @@ license: "CC BY-NC-SA 4.0 International" Registrazione della mia presentazione riguardo il selfhosting con NixOS che ho dato al Linux Day di Napoli 2023. -Scarica la presentazione da [qui](https://dl.gianmarco.gg/presentations/linuxday23-nixos-rev1.pdf). +Scarica la presentazione da qui. + +{{< download "https://dl.gianmarco.gg/presentations/linuxday23-nixos-rev1.pdf" "linuxday23-nixos-rev1.pdf" "PDF document, 14MB">}} Puoi vedere questo video anche su [YouTube](https://www.youtube.com/@gianmarcogg03), [Odysee](https://odysee.com/@gianmarcogg03) e [PeerTube](https://videos.gianmarco.gg/c/gianmarcogg03). diff --git a/static/ytr.html b/static/ytr.html index db5625b..8c67739 100644 --- a/static/ytr.html +++ b/static/ytr.html @@ -34,18 +34,37 @@ .button { border: none; color: white; - padding: 15px 32px; + padding: 10px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; cursor: pointer; + border-radius: 5px; } #pipedbtn {background-color: darkred} /* Piped */ #ytbtn {background-color: red} /* YouTube */ #odybtn {background-color: purple} /* Odysee */ #ptbtn {background-color: #C2540A} /* PeerTube */ + + @font-face { + font-family: "Mustica Pro"; + src: url("fonts/MusticaPro-SemiBold.otf") format("opentype"); + font-weight: normal; + font-style: normal + } + + @font-face { + font-family: "Roboto"; + src: url("fonts/Roboto-Regular.ttf") format("truetype"); + font-weight: normal; + font-style: normal + } + + h1 { + font-family: "Mustica Pro"; + }