diff --git a/assets/scss/partials/article.scss b/assets/scss/partials/article.scss index e2c05a4..6c2feb1 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 54c69eb..10e2706 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; } @@ -232,6 +231,10 @@ width: var(--card-padding); text-align: center; color: var(--accent-color); + + &:before { + content: "#"; + } } &:hover, diff --git a/config.yaml b/config.yaml index ece0ecb..b1a0bff 100644 --- a/config.yaml +++ b/config.yaml @@ -28,6 +28,7 @@ params: src: img/avatar.png article: + headingAnchor: false math: false toc: true readingTime: true diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index a1e3829..9e710b2 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -156,6 +156,7 @@ params: repo: clientID: clientSecret: + proxy: cusdis: host: 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/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index af79692..f79308a 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1,4 +1,6 @@ - # + {{- if site.Params.Article.HeadingAnchor -}} + + {{- end -}} {{ .Text | safeHTML }} \ No newline at end of file diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 5874559..3d2e592 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -22,7 +22,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/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/footer/footer.html b/layouts/partials/footer/footer.html index 59ef37b..5193afa 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,4 +1,4 @@ -{{- $ThemeVersion := "3.25.0" -}} +{{- $ThemeVersion := "3.26.0" -}}