From f830e7165eb99f2951a608771048ee9840f94ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Perovi=C4=87?= Date: Sat, 1 Jul 2023 21:17:42 +0200 Subject: [PATCH] Update .gitmodules, README.md, default.md, and 10 more files --- .gitmodules | 3 +++ README.md | 1 - archetypes/default.md | 1 + config.toml | 2 +- content/about.md | 3 ++- content/about.sr.md | 20 ++++++++++++++++++++ content/guide/torrentRatio.md | 1 + content/guide/torrentRatio.sr.md | 16 ++++++++++++++++ i18n/en.toml | 8 ++++++++ i18n/sr.toml | 8 ++++++++ layouts/_default/baseof.html | 1 + layouts/partials/analytics-gtag.html | 2 +- themes/hugo-citation | 1 + 13 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 content/about.sr.md create mode 100644 content/guide/torrentRatio.sr.md create mode 100644 i18n/en.toml create mode 100644 i18n/sr.toml create mode 160000 themes/hugo-citation diff --git a/.gitmodules b/.gitmodules index 795eeae..922a89a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/hugo-cloak-email"] path = themes/hugo-cloak-email url = https://github.com/martignoni/hugo-cloak-email.git +[submodule "themes/hugo-citation"] + path = themes/hugo-citation + url = https://github.com/Fooftilly/hugo-citation.git diff --git a/README.md b/README.md index 82d3f5d..24e0ed3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ Language icon by Onur Müştak Çobanlı and Farhat Datta from [languageicon.org # Shortcodes -- hugo-cite · [loup-brun/hugo-cite](https://github.com/loup-brun/hugo-cite) ([Under WTFPL License](https://github.com/loup-brun/hugo-cite/blob/master/LICENSE)) - giscus · [cdwilson/hugo-coder](https://github.com/cdwilson/hugo-coder/blob/cb3a96da89ef939079b2b66f2e0c2399830f96be/layouts/partials/posts/giscus.html) ([Under MIT License](https://github.com/cdwilson/hugo-coder/blob/main/LICENSE.md)) - hugo-cloak-email · [martignoni/hugo-cloak-email](https://github.com/martignoni/hugo-cloak-email) ([Under GPL-3.0 license](https://github.com/martignoni/hugo-cloak-email/blob/master/LICENSE)) diff --git a/archetypes/default.md b/archetypes/default.md index f0adb64..713da40 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -3,4 +3,5 @@ title: "{{ replace .Name "-" " " | title }}" date: {{ dateFormat "2006-01-02" .Date }} lastmod: {{ dateFormat "2006-01-02" .Date }} tags: [""] +translationKey: "" --- diff --git a/config.toml b/config.toml index 2051d15..27ad6c0 100644 --- a/config.toml +++ b/config.toml @@ -2,7 +2,7 @@ baseURL = 'https://www.peroniko.xyz/' languageCode = 'en' defaultContentLanguage = 'en' title = "Nikola Perović" -theme = ["hugo-cloak-email", "m10c"] +theme = ["hugo-cloak-email", "m10c", "hugo-citation"] paginate = 8 canonifyURLs = true diff --git a/content/about.md b/content/about.md index 2e34998..ba880e4 100644 --- a/content/about.md +++ b/content/about.md @@ -1,9 +1,10 @@ --- title: "About" +translationKey: "about" --- My personal website. Made by me. -{{< cloakemail address="nikolaperovicccc@gmail.com" display="Click here to send me an email!" query="subject=Peroniko: Mail contact from website" >}} +{{< cloakemail address="nikolaperovicccc@gmail.com" display="Click here to send me an email!" query="subject=Peroniko: Mail from contact form on the website" >}} This website is built in [Hugo](https://gohugo.io/) and hosted on [Github Pages](https://pages.github.com/).\ Here is the [Github Repo](https://github.com/Fooftilly/Fooftilly.github.io), if you want to look at the code.\ diff --git a/content/about.sr.md b/content/about.sr.md new file mode 100644 index 0000000..4b69000 --- /dev/null +++ b/content/about.sr.md @@ -0,0 +1,20 @@ +--- +title: "O sajtu" +translationKey: "about" +--- + +Moj lični sajt. +{{< cloakemail address="nikolaperovicccc@gmail.com" display="Klikni ovdje na mi pošalješ mail!" query="subject=Peroniko: Mail iz kontakt forme sajta" >}} + +Ovaj sajt je napravljen pomoću [Hugo](https://gohugo.io/) i nalazi se na [Github Pages](https://pages.github.com/).\ +Ovdje je [Github Repo](https://github.com/Fooftilly/Fooftilly.github.io), ako želiš da pogledaš kod.\ +Tema bazinana na [Fabien Casters](https://vaga.io/) - [Hugo Theme m10c](https://github.com/vaga/hugo-theme-m10c) ([Distributed under the MIT license](https://github.com/vaga/hugo-theme-m10c/blob/master/LICENSE.md)).\ +Istaknuta slika je adaptacija [Attributes of Art and Illustration](https://www.oldbookillustrations.com/illustrations/attributes-art-illustration/) ([Under CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)). + +Objave su pod +[Creative Commons Attribution-ShareAlike 4.0 International License][cc-by-sa]. + +[![CC BY-SA 4.0][cc-by-sa-shield]][cc-by-sa] + +[cc-by-sa]: http://creativecommons.org/licenses/by-sa/4.0/ +[cc-by-sa-shield]: https://img.shields.io/badge/License-CC%20BY--SA%204.0-lightgrey.svg diff --git a/content/guide/torrentRatio.md b/content/guide/torrentRatio.md index 4ffdefb..dfb1d44 100644 --- a/content/guide/torrentRatio.md +++ b/content/guide/torrentRatio.md @@ -3,6 +3,7 @@ title: "Simple Torrent Ratio Calculator" date: 2023-02-26 lastmod: 2023-02-26 tags: ["Torrent", "Ratio","Calculator"] +translationKey: "torrentRatio" --- ## Online Ratio Calculator diff --git a/content/guide/torrentRatio.sr.md b/content/guide/torrentRatio.sr.md new file mode 100644 index 0000000..b641d6d --- /dev/null +++ b/content/guide/torrentRatio.sr.md @@ -0,0 +1,16 @@ +--- +title: "Kalkulator za torent ratio" +date: 2023-02-26 +lastmod: 2023-02-26 +tags: ["Torent", "Ratio","Kalkulator"] +translationKey: "torrentRatio" +--- + +## Ratio kalkulator + +{{< ratio-calculator >}} + +## Sh skripta za izračunavanje ratio-a + +Ovo je mala skripta pomoću koje možete izračunati ratio vaših torenta, pojedinačno ili za sve. +{{< gist Fooftilly e6c3e1d3871526961229e4da9ae71d1a >}} diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..44bc744 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,8 @@ +[home] +other = "Home" + +[menu_about] +other = "About" + +[menu_tags] +other = "Tags" diff --git a/i18n/sr.toml b/i18n/sr.toml new file mode 100644 index 0000000..74a5471 --- /dev/null +++ b/i18n/sr.toml @@ -0,0 +1,8 @@ +[home] +other = "Početna" + +[menu_about] +other = "O sajtu" + +[menu_tags] +other = "Tags" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index dd323a3..d67431b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,6 +3,7 @@ {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} // {{ .Site.Title }}{{ end }} + Mastodon {{ hugo.Generator }} diff --git a/layouts/partials/analytics-gtag.html b/layouts/partials/analytics-gtag.html index 6319ff5..b9a5d10 100644 --- a/layouts/partials/analytics-gtag.html +++ b/layouts/partials/analytics-gtag.html @@ -11,4 +11,4 @@ gtag("js", new Date()); gtag("config", "{{ .Site.Params.GoogleAnalyticsID }}"); - \ No newline at end of file + diff --git a/themes/hugo-citation b/themes/hugo-citation new file mode 160000 index 0000000..2fae3fc --- /dev/null +++ b/themes/hugo-citation @@ -0,0 +1 @@ +Subproject commit 2fae3fc5c1f24f5377c7b843c6b29ed40c9ea14e