From ec03b2f9e8186c4d4e404885ab8e041df7e92f3b Mon Sep 17 00:00:00 2001 From: polarisfm Date: Sun, 9 Aug 2020 10:28:38 -0500 Subject: [PATCH 04/22] Add social icons for Peertube and generic git --- docs/svgs.md | 2 ++ layouts/partials/svg.html | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/svgs.md b/docs/svgs.md index e63e9d5..1076096 100644 --- a/docs/svgs.md +++ b/docs/svgs.md @@ -11,6 +11,7 @@ - [dribbble](https://simpleicons.org/?q=dribbble) - [email](https://feathericons.com/?query=mail) - [facebook](https://simpleicons.org/?q=facebook) +- git - gitbook - [github](https://feathericons.com/?query=github) - [gitlab](https://feathericons.com/?query=gitlab) @@ -27,6 +28,7 @@ - [mixcloud](https://simpleicons.org/?q=mixcloud) - [linkedin](https://feathericons.com/?query=linked) - [pinterest](https://simpleicons.org/?q=pinterest) +- [peertube](https://simpleicons.org/?q=peertube) - [podcasts-apple](https://simpleicons.org/?q=podcast) - [podcasts-google](https://simpleicons.org/?q=podcast) - [reddit](https://simpleicons.org/?q=reddit) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index c5266b7..afbfaf2 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -20,6 +20,8 @@ {{- else if (eq .name "facebook") -}} +{{- else if (eq .name "git") -}} + {{- else if (eq .name "gitbook") -}} {{- else if (eq .name "github") -}} @@ -54,6 +56,8 @@ {{- else if (eq .name "pinterest") }} +{{- else if (eq .name "peertube") }} + {{- else if (eq .name "podcasts-apple") -}} {{- else if (eq .name "podcasts-google") -}} From 43167f1c86f2720dca72bfbbcd206100dcbd105e Mon Sep 17 00:00:00 2001 From: wrparker Date: Tue, 25 Aug 2020 18:59:02 -0500 Subject: [PATCH 05/22] Add google scholar to social icons. --- docs/svgs.md | 1 + layouts/partials/svg.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/svgs.md b/docs/svgs.md index e63e9d5..51e510d 100644 --- a/docs/svgs.md +++ b/docs/svgs.md @@ -15,6 +15,7 @@ - [github](https://feathericons.com/?query=github) - [gitlab](https://feathericons.com/?query=gitlab) - [goodreads](https://simpleicons.org/?q=goodreads) +- [googlescholar](https://simpleicons.org/?q=googlescholar) - [hackerone](https://simpleicons.org/?q=hackerone) - [hackerrank](https://simpleicons.org/?q=hackerrank) - [instagram](https://feathericons.com/?query=instagram) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index c5266b7..0a44579 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -28,6 +28,8 @@ {{- else if (eq .name "goodreads") -}} +{{- else if (eq .name "googlescholar") -}} + {{- else if (eq .name "gpg") -}} {{- else if (eq .name "hackerone") -}} From 90a80366a1dc7ce983481429174032431c1e23d7 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Wed, 26 Aug 2020 13:49:16 +0200 Subject: [PATCH 06/22] Add LastMod time in article info Add the date of the last modification to the line with the publish date --- layouts/posts/single.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 35899b6..5313009 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -75,6 +75,7 @@ {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }} + {{ if .LastMod }} (Last updated: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }}

{{- if .GitInfo }} From 1f4f662472bc2d396ddcaf2eb63224d98e89d222 Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Wed, 2 Sep 2020 10:11:31 +0200 Subject: [PATCH 07/22] Add documentation for footer override --- exampleSite/config.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index da7a50f..8a8585f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -54,6 +54,7 @@ disableHugoGeneratorInject = false dateformNumTime = "2006-01-02 15:04 -0700" # Metadata mostly used in document's head + # description = "Nice theme for homepages and blogs" keywords = "" images = [""] @@ -61,30 +62,44 @@ disableHugoGeneratorInject = false homeSubtitle = "Hello Friend NG" # Prefix of link to the git commit detail page. GitInfo must be enabled. + # # gitUrl = "" # Set disableReadOtherPosts to true in order to hide the links to other posts. + # disableReadOtherPosts = false # Sharing buttons + # # There are a lot of buttons preconfigured. If you want to change them, # generate the buttons here: https://sharingbuttons.io # and add them into your own `layouts/partials/sharing-buttons.html` + # enableSharingButtons = true # Integrate Javascript files or stylesheets by adding the url to the external assets or by # linking local files with their path relative to the static folder, e.g. "css/styles.css" + # customCSS = [] customJS = [] # Toggle this option need to rebuild SCSS, requires extended version of Hugo + # justifyContent = false # Set "text-align: justify" to .post-content. # Default theme "light" or "dark" + # defaultTheme = "dark" themeColor = "#252627" + # Custom footer + # If you want, you can easily override the default footer with your own content. + # + # footerLeft = "Powered by Hugo" + # footerRight = "Made with ❤ by Djordje Atlialp" + # Colors for favicons + # [params.favicon.color] mask = "#252627" msapplication = "#252627" @@ -101,6 +116,7 @@ disableHugoGeneratorInject = false # logoCursorAnimate = "2s" # Uncomment this if you want a portrait on your start page + # # [params.portrait] # path = "/img/image.jpg" # alt = "Portrait" From 0b19d7bb63a019dc1bf794c93e532e3e70e8fa7c Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:47:33 +0000 Subject: [PATCH 08/22] English translation for Last updated --- i18n/en.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/en.toml b/i18n/en.toml index 467981c..03c0444 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -34,3 +34,6 @@ other = "Table of Contents" [wordCount] one = "One Word" other = "{{ .Count }} Words" + +[lastModified] +other = "Last updated" From bb656bf7f24586bf47d8f01d151f475ac5c64729 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:48:46 +0000 Subject: [PATCH 09/22] German translation for Last Updated --- i18n/de.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/de.toml b/i18n/de.toml index 2f0317b..7ef99a2 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -34,3 +34,6 @@ other = "Inhaltsverzeichnis" [wordCount] one = "Ein Wort" other = "{{ .Count }} Wörter" + +[lastModified] +other = "Letzte Aktualisierung" From 59ce0927609e1dfcff9ce73ab55ae962c734c0ea Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:49:36 +0000 Subject: [PATCH 10/22] Spanish translation for Last Updated --- i18n/es.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/es.toml b/i18n/es.toml index 1643ec7..1dce9bb 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -34,3 +34,6 @@ other = "Tabla de Contenido" [wordCount] one = "Una Palabra" other = "{{ .Count }} Palabras" + +[lastModified] +other = "Ultima actualización" From 88ad6b5062f3c5a9555c853b63248cc4d85cfba6 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:50:16 +0000 Subject: [PATCH 11/22] French translation Last Updated --- i18n/fr.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/fr.toml b/i18n/fr.toml index 9ea342e..1ba6fe9 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -34,3 +34,6 @@ other = "Table des matières" [wordCount] one = "Un Mot" other = "{{ .Count }} Mots" + +[lastModified] +other = "Mise à jour" From 1a4df7058f4b9c20c177b54af88f5ab41ccf4bf6 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:51:36 +0000 Subject: [PATCH 12/22] Last Updated --- i18n/hi.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i18n/hi.toml b/i18n/hi.toml index aa84bf9..6486c73 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -33,4 +33,7 @@ other = "अनुक्रमणिका" [wordCount] one = "एक शब्द" -other = "{{ .Count }} शब्द" \ No newline at end of file +other = "{{ .Count }} शब्द" + +[lastModified] +other = "आखरी अपडेट" From b77f822736e1550e8a9433898c6f1ef4ef76401a Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:52:26 +0000 Subject: [PATCH 13/22] Last updated --- i18n/it.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/it.toml b/i18n/it.toml index 6a730e9..f78a5a0 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -34,3 +34,6 @@ other = "Contenuti" [wordCount] one = "Una parola" other = "{{ .Count }} parole" + +[lastModified] +other = "Ultimo aggiornamento" From f0f5525a73d66d8b357c99889ff39efb4a5d9e5a Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:54:37 +0000 Subject: [PATCH 14/22] Last updated - translation needed --- i18n/lmo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/lmo.toml b/i18n/lmo.toml index 64d6a97..7616dda 100644 --- a/i18n/lmo.toml +++ b/i18n/lmo.toml @@ -34,3 +34,6 @@ other = "Contegnuu" [wordCount] one = "Ona parolla" other = "{{ .Count }} paroll" + +[lastModified] +other = "Last update" From 207c1f0fa0d95ca31eb91408e011d3b63f2693d8 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:55:47 +0000 Subject: [PATCH 15/22] Last updated --- i18n/ml.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/ml.toml b/i18n/ml.toml index 0eea4f6..a6aa087 100644 --- a/i18n/ml.toml +++ b/i18n/ml.toml @@ -34,3 +34,6 @@ other = "ഉള്ളടക്ക പട്ടിക" [wordCount] one = "ഒരു വാക്ക്" other = "{{ .Count }} വാക്കുകൾ" + +[lastModified] +other = "അവസാനമായി പുതുക്കിയത്" From b698dd03c9dff38d0535b89392304173c6b17b3c Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:56:26 +0000 Subject: [PATCH 16/22] Last updated --- i18n/pt-br.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i18n/pt-br.toml b/i18n/pt-br.toml index 25a6f6c..b53cbcc 100644 --- a/i18n/pt-br.toml +++ b/i18n/pt-br.toml @@ -33,4 +33,7 @@ other = "Índice" [wordCount] one = "Uma Palavra" -other = "{{ .Count }} Palavras" \ No newline at end of file +other = "{{ .Count }} Palavras" + +[lastModified] +other = "Última actualização" From 3510b3d019d5506cadb57979a0a17ef5b5afd419 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:57:21 +0000 Subject: [PATCH 17/22] Last updated --- i18n/ru.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/ru.toml b/i18n/ru.toml index 2b75f94..2f16ec4 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -38,3 +38,6 @@ one = "{{ .Count }} слово" few = "{{ .Count }} слова" many = "{{ .Count }} слов" other = "{{ .Count }} слов" + +[lastModified] +other = "Последнее обновление" From 25e2e72bad7f7bdfe8c11ef9d46d85d817bc4891 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 19:58:00 +0000 Subject: [PATCH 18/22] Last updated --- i18n/tr.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/tr.toml b/i18n/tr.toml index 4b50e98..df7af32 100644 --- a/i18n/tr.toml +++ b/i18n/tr.toml @@ -34,3 +34,6 @@ other = "İçindekiler" [wordCount] one = "One Kelime" other = "{{ .Count }} Kelime" + +[lastModified] +other = "Son güncelleme" From 29023e89f950291bd8f299a70f7b7889c1eda191 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Sat, 5 Sep 2020 20:01:49 +0000 Subject: [PATCH 19/22] Use translated "Last updated" --- layouts/posts/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 5313009..b6c0c3d 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -75,7 +75,7 @@ {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }} - {{ if .LastMod }} (Last updated: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }} + {{ if .LastMod }} ({{ i18n "lastModified" }}: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }}

{{- if .GitInfo }} From 96057eb09d2cff605b6974457cff170abd95b91d Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Sun, 6 Sep 2020 09:56:00 +0200 Subject: [PATCH 20/22] Fix last mod date --- layouts/posts/single.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index b6c0c3d..631bb36 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -74,8 +74,21 @@ - {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }} - {{ if .LastMod }} ({{ i18n "lastModified" }}: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }} + {{ if .Site.Params.dateformNumTime }} + {{ dateFormat .Site.Params.dateformNumTime .Date.Local }} + {{ else }} + {{ dateFormat "2006-01-02 15:04" .Date.Local }} + {{ end }} + + {{ if .Lastmod }} + {{ if not (eq .Lastmod .Date )}} + {{ if .Site.Params.dateformNumTime }} + ({{ i18n "lastModified" }}: {{ dateFormat .Site.Params.dateformNumTime .Lastmod.Local }}) + {{ else }} + ({{ i18n "lastModified" }}: {{ dateFormat "2006-01-02 15:04" .Lastmod.Local }}) + {{ end }} + {{ end }} + {{ end }}

{{- if .GitInfo }} From e3402457805c0df65b96833f15579c4153c17700 Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Sun, 6 Sep 2020 10:59:11 +0200 Subject: [PATCH 21/22] Display categories in posts --- README.md | 2 +- exampleSite/config.toml | 2 +- layouts/_default/single.html | 14 ++++---------- layouts/partials/categories.html | 9 +++++++++ layouts/partials/tags.html | 9 +++++++++ layouts/posts/single.html | 14 ++------------ 6 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 layouts/partials/categories.html create mode 100644 layouts/partials/tags.html diff --git a/README.md b/README.md index 6437df9..812599b 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ paginate = 10 dateform = "Jan 2, 2006" dateformShort = "Jan 2" dateformNum = "2006-01-02" - dateformNumTime = "2006-01-02 15:04 -0700" + dateformNumTime = "2006-01-02 15:04" # Subtitle for home homeSubtitle = "A simple and beautiful blog" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8a8585f..9de6227 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -51,7 +51,7 @@ disableHugoGeneratorInject = false dateform = "Jan 2, 2006" dateformShort = "Jan 2" dateformNum = "2006-01-02" - dateformNumTime = "2006-01-02 15:04 -0700" + dateformNumTime = "2006-01-02 15:04" # Metadata mostly used in document's head # diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5275c6b..c5c04c0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,14 +14,14 @@

{{ .Title | markdownify }}

- {{- if .Params.toc }} + {{ if .Params.toc }}

- {{- end }} + {{ end }} {{ with .Params.Cover }} @@ -35,14 +35,8 @@