diff --git a/assets/scss/partials/article.scss b/assets/scss/partials/article.scss index df0e6df..5d72541 100644 --- a/assets/scss/partials/article.scss +++ b/assets/scss/partials/article.scss @@ -131,6 +131,7 @@ .article-tags { display: flex; gap: 10px; + flex-wrap: wrap; a { color: var(--accent-color-text); diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index 8be390b..977c7a6 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -67,7 +67,6 @@ } .article-tags { - flex-wrap: wrap; text-transform: unset; } diff --git a/exampleSite/config/_default/hugo.yaml b/exampleSite/config/_default/hugo.yaml index 9bce847..617c6d0 100644 --- a/exampleSite/config/_default/hugo.yaml +++ b/exampleSite/config/_default/hugo.yaml @@ -1,6 +1,5 @@ baseurl: https://stack.jimmycai.com/demo/ languageCode: en-us -paginate: 3 # Note: This title is overridden by the title in i18n config file title: Hugo Theme Stack Starter @@ -21,3 +20,6 @@ services: id: publishDir: ../public/demo + +pagination: + pagerSize: 3 \ No newline at end of file diff --git a/exampleSite/config/_default/markup.yaml b/exampleSite/config/_default/markup.yaml index a7496f5..035a698 100644 --- a/exampleSite/config/_default/markup.yaml +++ b/exampleSite/config/_default/markup.yaml @@ -1,4 +1,16 @@ goldmark: + extensions: + passthrough: + enable: true + delimiters: + block: + - - \[ + - \] + - - $$ + - $$ + inline: + - - \( + - \) renderer: unsafe: false # Allow HTML in markdown tableOfContents: diff --git a/i18n/bg.yaml b/i18n/bg.yaml new file mode 100644 index 0000000..cf64a56 --- /dev/null +++ b/i18n/bg.yaml @@ -0,0 +1,73 @@ +toggleMenu: + other: Покажи Меню + +darkMode: + other: Тъмен Режим + +list: + page: + one: "{{ .Count }} страница" + other: "{{ .Count }} страници" + + section: + other: Секция + + subsection: + one: Подсекция + other: Подсекции + +article: + back: + other: Назад + + tableOfContents: + other: Съдържание + + relatedContent: + other: Свързано Съдържание + + lastUpdatedOn: + other: Последна промяна на + + readingTime: + one: "{{ .Count }} minute read" + other: "{{ .Count }} minute read" + +notFound: + title: + other: Не е намерено + + subtitle: + other: Страницата която търсите не е открита + +widget: + archives: + title: + other: Архиви + + more: + other: Повече + + tagCloud: + title: + other: Тагове + categoriesCloud: + title: + other: Категории + +search: + title: + other: Търсене + + placeholder: + other: Напишете нещо... + + resultTitle: + other: "#PAGES_COUNT страници (#TIME_SECONDS секунди)" + +footer: + builtWith: + other: Създадено с {{ .Generator }} + + designedBy: + other: Тема {{ .Theme }} създадена от {{ .DesignedBy }} diff --git a/i18n/oc.yaml b/i18n/oc.yaml new file mode 100644 index 0000000..1415350 --- /dev/null +++ b/i18n/oc.yaml @@ -0,0 +1,72 @@ +toggleMenu: + other: Alternar menú + +darkMode: + other: Mòde fosc + +list: + page: + one: "{{ .Count }} pagina" + other: "{{ .Count }} paginas" + + section: + other: Seccion + + subsection: + one: Josseccion + other: Josseccions + +article: + back: + other: Tornar + + tableOfContents: + other: Taula de contengut + + relatedContent: + other: Contenguts relacionats + + lastUpdatedOn: + other: Darrièra actualizacion + readingTime: + one: "{{ .Count }} minuta de lectura" + other: "{{ .Count }} minutas de lectura" + +notFound: + title: + other: Non trobat + + subtitle: + other: Aquesta pagina existís pas + +widget: + archives: + title: + other: Archiu + + more: + other: Mai + + tagCloud: + title: + other: Etiquetas + categoriesCloud: + title: + other: Categorias + +search: + title: + other: Cercar + + placeholder: + other: Picatz quicòm... + + resultTitle: + other: "#PAGES_COUNT paginas dins (#TIME_SECONDS segons)" + +footer: + builtWith: + other: Creat amb {{ .Generator }} + + designedBy: + other: Tàma {{ .Theme }} concebut per {{ .DesignedBy }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 54c2804..99b8be0 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -21,7 +21,7 @@ {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index cc0a0fc..7c27302 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -32,7 +32,7 @@
{{ partial "helper/icon" "date" }}
{{ end }} diff --git a/layouts/partials/article/components/footer.html b/layouts/partials/article/components/footer.html index 6853921..9795880 100644 --- a/layouts/partials/article/components/footer.html +++ b/layouts/partials/article/components/footer.html @@ -12,7 +12,7 @@
{{ partial "helper/icon" "clock" }} - {{ T "article.lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }} + {{ T "article.lastUpdatedOn" }} {{ .Lastmod | time.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }}
{{- end -}} diff --git a/layouts/partials/comments/provider/disqusjs.html b/layouts/partials/comments/provider/disqusjs.html index 8dbcc13..967c38c 100644 --- a/layouts/partials/comments/provider/disqusjs.html +++ b/layouts/partials/comments/provider/disqusjs.html @@ -2,7 +2,7 @@ {{- $disqusjs := .Site.Params.Comments.disqusjs -}} {{- if and (not $pc.Disable) (and $disqusjs.Shortname $disqusjs.ApiKey) -}} -{{- $style := resources.Get "scss/partials/comments/disqusjs.scss" | resources.ToCSS | minify -}} +{{- $style := resources.Get "scss/partials/comments/disqusjs.scss" | toCSS | minify -}}
diff --git a/layouts/partials/comments/provider/gitalk.html b/layouts/partials/comments/provider/gitalk.html index 95ca133..54bfcba 100644 --- a/layouts/partials/comments/provider/gitalk.html +++ b/layouts/partials/comments/provider/gitalk.html @@ -15,6 +15,7 @@ admin: ["{{- .admin -}}"], distractionFreeMode: false, // Facebook-like distraction free mode id: md5(location.pathname), // Max Location.pathname Legth:75 https://github.com/gitalk/gitalk/issues/102 + proxy: {{- .proxy -}}, }); (function () { if ( diff --git a/layouts/partials/comments/provider/twikoo.html b/layouts/partials/comments/provider/twikoo.html index 53830dd..8c22507 100644 --- a/layouts/partials/comments/provider/twikoo.html +++ b/layouts/partials/comments/provider/twikoo.html @@ -1,4 +1,4 @@ - +