diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 37e9f97..dcf6c63 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -14,6 +14,10 @@ googleAnalytics: # Available values: en, fr, id, ja, ko, pt-br, zh-cn, es, de, nl, it DefaultContentLanguage: en +# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko] +# This will make .Summary and .WordCount behave correctly for CJK languages. +hasCJKLanguage: false + permalinks: post: /p/:slug/ page: /:slug/ @@ -111,6 +115,17 @@ params: reactionsEnabled: 1 emitMetadata: 0 + gitalk: + owner: + admin: + repo: + clientID: + clientSecret: + + cusdis: + host: + id: + widgets: enabled: - search @@ -176,6 +191,10 @@ related: weight: 200 markup: + goldmark: + renderer: + ## Set to true if you have HTML content inside Markdown + unsafe: false tableOfContents: endLevel: 4 ordered: true diff --git a/exampleSite/content/post/rich-content/index.md b/exampleSite/content/post/rich-content/index.md index 407c539..af8a390 100644 --- a/exampleSite/content/post/rich-content/index.md +++ b/exampleSite/content/post/rich-content/index.md @@ -32,3 +32,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme ## Vimeo Simple Shortcode {{< vimeo_simple 48912912 >}} + +## bilibilibi Shortcode + +{{< bilibili av498363026 >}} diff --git a/i18n/de.yaml b/i18n/de.yaml index 25a708a..00a8e11 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -17,23 +17,37 @@ list: other: Unterabschnitte article: + back: + other: Zurück + + tableOfContents: + other: Inhaltsverzeichnis + relatedContents: other: Verwandte Inhalte + lastUpdatedOn: other: Zuletzt aktualisiert am + readingTime: + one: "{{ .Count }} Minute Lesezeit" + other: "{{ .Count }} Minuten Lesezeit" + notFound: title: other: Seite nicht gefunden + subtitle: - other: Diese Seite existiert nicht. + other: Diese Seite existiert nicht widget: archives: title: other: Archiv + more: other: Weitere + tagCloud: title: other: Schlagwörter @@ -41,13 +55,16 @@ widget: search: title: other: Suche + placeholder: other: Etwas tippen... + resultTitle: - other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)" + other: "#PAGES_COUNT Seiten (#TIME_SECONDS Sekunden)" footer: builtWith: other: Erstellt mit {{ .Generator }} + designedBy: other: Theme {{ .Theme }} gestaltet von {{ .DesignedBy }} diff --git a/i18n/en.yaml b/i18n/en.yaml index e279278..0197d89 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -30,15 +30,15 @@ article: other: Last updated on readingTime: - one: "{{ .Count }} min read" - ### Seems that there's no need to add 's' even if it's plural in English - other: "{{ .Count }} min read" + one: "{{ .Count }} minute read" + other: "{{ .Count }} minute read" notFound: title: other: Not Found + subtitle: - other: This page does not exist. + other: This page does not exist widget: archives: diff --git a/i18n/es.yaml b/i18n/es.yaml index d82698b..9e1d6e1 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -17,14 +17,26 @@ list: other: Subsecciones article: + back: + other: Volver + + tableOfContents: + other: Tabla de contenido + relatedContents: other: Contenidos relacionados + lastUpdatedOn: other: Última vez actualizado + readingTime: + one: "{{ .Count }} minuto a leer" + other: "{{ .Count }} minutos a leer" + notFound: title: other: No Encontrado + subtitle: other: Esta página no existe @@ -32,8 +44,10 @@ widget: archives: title: other: Archivo + more: other: Más + tagCloud: title: other: Etiquetas @@ -41,13 +55,16 @@ widget: search: title: other: Búsqueda + placeholder: other: Teclea algo... + resultTitle: other: "#PAGES_COUNT páginas en (#TIME_SECONDS segundos)" footer: builtWith: other: Creado con {{ .Generator }} + designedBy: other: Tema {{ .Theme }} diseñado por {{ .DesignedBy }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bca4469..8b21c52 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -17,7 +17,7 @@ {{ partial "article/components/related-contents" . }} - {{ if or (not (isset .Params "comments")) (eq .Params.comments "true")}} + {{ if not (eq .Params.comments false) }} {{ partial "comments/include" . }} {{ end }} @@ -54,4 +54,4 @@ {{ end }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/comments/provider/cusdis.html b/layouts/partials/comments/provider/cusdis.html new file mode 100644 index 0000000..71863f3 --- /dev/null +++ b/layouts/partials/comments/provider/cusdis.html @@ -0,0 +1,24 @@ +
+ + + \ No newline at end of file diff --git a/layouts/partials/comments/provider/gitalk.html b/layouts/partials/comments/provider/gitalk.html new file mode 100644 index 0000000..95ca133 --- /dev/null +++ b/layouts/partials/comments/provider/gitalk.html @@ -0,0 +1,30 @@ +{{- with .Site.Params.comments.gitalk -}} + + + + + +{{ end }} diff --git a/layouts/shortcodes/bilibili.html b/layouts/shortcodes/bilibili.html index 602406c..cb72e43 100644 --- a/layouts/shortcodes/bilibili.html +++ b/layouts/shortcodes/bilibili.html @@ -13,7 +13,7 @@ {{ end }}