From 057750938f97f40fef01bf34e181054cb8b91006 Mon Sep 17 00:00:00 2001 From: octospacc Date: Wed, 28 Aug 2024 18:27:30 +0200 Subject: [PATCH] . --- .github/workflows/main.yml | 14 +++------- content/it/_index.md | 5 ++-- layouts/partials/comments.html | 15 +++++++++++ layouts/partials/footer-buttons.html | 26 ++++++++++--------- layouts/partials/imgButton.html | 11 +++++--- .../noticeAutomaticTranslation.html | 1 + themes/ananke/layouts/_default/single.html | 2 ++ 7 files changed, 46 insertions(+), 28 deletions(-) create mode 100644 layouts/partials/comments.html diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d4ba2f9..6383d90 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,10 @@ -name: Build and Deploy with staticoso +name: Build and Deploy on: push: - branches: [ "main" ] + branches: [ "sitoctt-next" ] pull_request: - branches: [ "main" ] + branches: [ "sitoctt-next" ] workflow_dispatch: @@ -17,14 +17,6 @@ jobs: - name: Build run: | - sudo apt update - sudo apt install -y software-properties-common - sudo add-apt-repository ppa:deadsnakes/ppa - sudo apt update - sudo apt install -y npm python3.10 curl git - curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3.10 - sudo pip3 install lxml - sudo npm install -g pug-cli sh ./Scripts/Requirements.sh sh ./Scripts/Produce.sh diff --git a/content/it/_index.md b/content/it/_index.md index fcb016b..e742b3a 100644 --- a/content/it/_index.md +++ b/content/it/_index.md @@ -1,11 +1,12 @@ +++ Title = "il ✨sitoctt✨ — Home" -description = "Octt sono io... e questo è letteralmente il mio sito (uwu)." +Description = "Octt sono io... e questo è letteralmente il mio sito (uwu)." +Lastmod = 2024-08-27 +++ Una volta qui era tutta campagn— ehm, volevo dire... era tutta una lista di parole ammassate alla male e peggio. Non solo non piaceva più nemmeno a me, ma non è proprio buona creanza nell'anno del Signore 2024 (e oltre), quindi... -Ora c'è questa lista di tutti i miei ultimissimi articoli, e pagine sfuse che ho aggiornato di recente, mentre la vecchia home è a ["Sul sitoctt"](/miscellanea/Sul-sitoctt/) finché non avrò riorganizzato tutto. Benvenuta/o nel ✨sitoctt✨! diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html new file mode 100644 index 0000000..3be6830 --- /dev/null +++ b/layouts/partials/comments.html @@ -0,0 +1,15 @@ + diff --git a/layouts/partials/footer-buttons.html b/layouts/partials/footer-buttons.html index 3b980dd..32feba0 100644 --- a/layouts/partials/footer-buttons.html +++ b/layouts/partials/footer-buttons.html @@ -11,11 +11,11 @@ {{ partial "imgButton.html" (dict "alt" "Bandiera Octt" - "srcRelative" "Octt-Flag-88x31.png") }} + "srcRelative" "Octt-Flag.png") }} {{ partial "imgButton.html" (dict "alt" "Follow me on Mastodon" - "srcRelative" "Follow-me-on-Mastodon-88x31.png" + "srcRelative" "Follow-me-on-mastodon.png" "href" "https://mastodon.uno/@octo" "rel" "me") }} @@ -29,34 +29,36 @@ {{ partial "imgButton.html" (dict "alt" "Firefox" - "srcRelative" "Firefox/Firefox-Modern-88x31.png" + "srcRelative" "Firefox-Modern.png" "href" "https://www.mozilla.org/it/firefox" "rel" "nofollow") }} {{ partial "imgButton.html" (dict "alt" "The Onion Router" - "srcRelative" "Tor-88x31.png" + "srcRelative" "Tor.png" "href" "https://www.torproject.org/it" "rel" "nofollow") }} +{{ partial "imgButton.html" (dict + "alt" "Made on GNU/Linux" + "srcRelative" "Made-on-GNU-Linux.png" + "href" "https://www.gnu.org/home.it" + "rel" "nofollow") }} + +
+ {{ partial "imgButton.html" (dict "alt" "Internet Archive" - "srcRelative" "Sites/InternetArchive-88x31.png" + "srcRelative" "Sites/Internet-Archive.png" "href" "https://archive.org" "rel" "nofollow") }} {{ partial "imgButton.html" (dict "alt" "Wikipedia" - "srcRelative" "Sites/Wikipedia/Wikipedia-88x31.png" + "srcRelative" "Sites/Wikipedia.png" "href" "https://www.wikipedia.org" "rel" "nofollow" "title" "hu:User:Boro, CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0>, via Wikimedia Commons" "hrefLinkback" "https://commons.wikimedia.org/wiki/File:Wikipedia-microbar-hu.png") }} -{{ partial "imgButton.html" (dict - "alt" "Made on GNU/Linux" - "srcRelative" "Made-on-GNU-Linux-88x31.png" - "href" "https://www.gnu.org/home.it" - "rel" "nofollow") }} -
diff --git a/layouts/partials/imgButton.html b/layouts/partials/imgButton.html index bc7a505..2265976 100644 --- a/layouts/partials/imgButton.html +++ b/layouts/partials/imgButton.html @@ -1,9 +1,14 @@ +{{ $size := (or .size "88x31") }} +{{ $sizes := (split $size "x") }} {{ $alt := (or (and .alt (printf "[%s]" .alt)) "") }} -{{ $img := (printf `%s` - (or .src (printf `%s/Media/Buttons/%s` +{{ $img := (printf `%s` + (or .src (printf `%s/Media/Buttons/%s/%s` (partial "assetsRoot.html") + $size .srcRelative)) - $alt $alt) | safeHTML }} + $alt $alt + (index $sizes 0) (index $sizes 1) +) | safeHTML }} {{ if .href }}