Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/halogenica/beautifulhugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--i18n/br.yaml4
-rw-r--r--i18n/de.yaml4
-rw-r--r--i18n/en.yaml4
-rw-r--r--i18n/eo.yaml4
-rw-r--r--i18n/es.yaml4
-rw-r--r--i18n/fr.yaml4
-rw-r--r--i18n/it.yaml4
-rw-r--r--i18n/ja.yaml4
-rw-r--r--i18n/lmo.yaml297
-rw-r--r--i18n/nb.yaml4
-rw-r--r--i18n/nl.yaml8
-rw-r--r--i18n/pl.yaml4
-rw-r--r--i18n/ru.yaml6
-rw-r--r--i18n/tr.yaml74
-rw-r--r--i18n/zh-CN.yaml4
-rw-r--r--i18n/zh-TW.yaml4
-rw-r--r--layouts/partials/head.html4
-rw-r--r--layouts/shortcodes/details.html4
19 files changed, 411 insertions, 36 deletions
diff --git a/README.md b/README.md
index 2ba25bd..321ef45 100644
--- a/README.md
+++ b/README.md
@@ -110,6 +110,8 @@ If you *don't* have the section `[Params.staticman]` in `config.toml`, you *won'
To add Google Analytics, simply sign up to [Google Analytics](https://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml`.
+Note that the Google Analytics tracking code will only be inserted into the page when the site isn't served on Hugo's built-in server, to prevent tracking from local testing environments.
+
### Commit SHA on the footer
If the source of your site is in a Git repo, the SHA corresponding to the commit the site is built from can be shown on the footer. To do so, two site parameters `commit` has to be defined in the config file `config.toml`:
@@ -158,9 +160,9 @@ There are two extra shortcodes provided (along with the customized figure shortc
This simply adds the html5 detail attribute, supported on all *modern* browsers. Use it like this:
```
-{{% details "This is the details title (click to expand)" %}}
+{{< details "This is the details title (click to expand)" >}}
This is the content (hidden until clicked).
-{{% /details %}}
+{{< /details >}}
```
#### Split
diff --git a/i18n/br.yaml b/i18n/br.yaml
index 75c90e6..ca45382 100644
--- a/i18n/br.yaml
+++ b/i18n/br.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "02/Jan/2006 15:04:05"
- id: postedOnDate
- translation: "Postado em {{ .Count }}"
+ translation: "Postado em {{ . }}"
- id: lastModified
- translation: "(Ultima modificação em {{ .Count }})"
+ translation: "(Ultima modificação em {{ . }})"
- id: translationsLabel
translation: "Outras linguagens: "
- id: translationsSeparator
diff --git a/i18n/de.yaml b/i18n/de.yaml
index 51da1f3..39d9312 100644
--- a/i18n/de.yaml
+++ b/i18n/de.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "Gepostet am {{ .Count }}"
+ translation: "Gepostet am {{ . }}"
- id: lastModified
- translation: "(Zuletzt geändert am {{ .Count }})"
+ translation: "(Zuletzt geändert am {{ . }})"
- id: translationsLabel
translation: "Andere Sprachen: "
- id: translationsSeparator
diff --git a/i18n/en.yaml b/i18n/en.yaml
index 9f12957..eee2c8a 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "Jan 2, 2006 15:04:05"
- id: postedOnDate
- translation: "Posted on {{ .Count }}"
+ translation: "Posted on {{ . }}"
- id: lastModified
- translation: "(Last modified on {{ .Count }})"
+ translation: "(Last modified on {{ . }})"
- id: translationsLabel
translation: "Other languages: "
- id: translationsSeparator
diff --git a/i18n/eo.yaml b/i18n/eo.yaml
index 68fd7e2..24242f3 100644
--- a/i18n/eo.yaml
+++ b/i18n/eo.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "Afiŝiĝis je {{ .Count }}"
+ translation: "Afiŝiĝis je {{ . }}"
- id: lastModified
- translation: "(Laste aliiĝis je {{ .Count }})"
+ translation: "(Laste aliiĝis je {{ . }})"
- id: translationsLabel
translation: "Aliaj lingvoj: "
- id: translationsSeparator
diff --git a/i18n/es.yaml b/i18n/es.yaml
index c2503b5..0ef597a 100644
--- a/i18n/es.yaml
+++ b/i18n/es.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "Publicado el {{ .Count }}"
+ translation: "Publicado el {{ . }}"
- id: lastModified
- translation: "(Última modificación en {{ .Count }})"
+ translation: "(Última modificación en {{ . }})"
- id: translationsLabel
translation: "Otros idiomas: "
- id: translationsSeparator
diff --git a/i18n/fr.yaml b/i18n/fr.yaml
index a88fb46..4b68667 100644
--- a/i18n/fr.yaml
+++ b/i18n/fr.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "Posté le {{ .Count }}"
+ translation: "Posté le {{ . }}"
- id: lastModified
- translation: "(Dernière modification le {{ .Count }})"
+ translation: "(Dernière modification le {{ . }})"
- id: translationsLabel
translation: "Autres langues : "
- id: translationsSeparator
diff --git a/i18n/it.yaml b/i18n/it.yaml
index 5d0a4e5..c863da6 100644
--- a/i18n/it.yaml
+++ b/i18n/it.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan 2006 15:04:05"
- id: postedOnDate
- translation: "Redatto il {{ .Count }}"
+ translation: "Redatto il {{ . }}"
- id: lastModified
- translation: "(Ultima modifica il {{ .Count }})"
+ translation: "(Ultima modifica il {{ . }})"
- id: translationsLabel
translation: "Altre lingue: "
- id: translationsSeparator
diff --git a/i18n/ja.yaml b/i18n/ja.yaml
index d7c0e26..f8603f2 100644
--- a/i18n/ja.yaml
+++ b/i18n/ja.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "{{ .Count }}に投稿"
+ translation: "{{ . }}に投稿"
- id: lastModified
- translation: "(最終更新日時{{ .Count }})"
+ translation: "(最終更新日時{{ . }})"
- id: translationsLabel
translation: "翻訳:"
- id: translationsSeparator
diff --git a/i18n/lmo.yaml b/i18n/lmo.yaml
new file mode 100644
index 0000000..92ece42
--- /dev/null
+++ b/i18n/lmo.yaml
@@ -0,0 +1,297 @@
+
+
+# Content
+
+- id: dateFormat
+
+ translation: "2 January 2006"
+
+- id: shortdateFormat
+
+ translation: "2 Jan 2006 15:04:05"
+
+- id: postedOnDate
+
+ translation: "Publegaa il {{ .Count }}"
+
+- id: lastModified
+
+ translation: "(Darrera modifega ell {{ .Count }})"
+
+- id: translationsLabel
+
+ translation: "Alter lengov: "
+
+- id: translationsSeparator
+
+ translation: ", "
+
+- id: readMore
+
+ translation: "Lensg"
+
+- id: olderPosts
+
+ translation: "Articol pussee vegg"
+
+- id: newerPosts
+
+ translation: "Articoli pussee noeuv"
+
+- id: previousPost
+
+ translation: "Articolo de prima"
+
+- id: nextPost
+
+ translation: "Articolo dopo"
+
+- id: readTime
+
+ translation: "megnuu"
+
+- id: words
+
+ translation: "paroll"
+
+
+
+
+
+# 404 page
+
+- id: pageNotFound
+
+ translation: "Ocio, quella pagina chi la esist no. (errore 404)"
+
+
+
+# Footer
+
+- id: poweredBy # Accepts HTML
+
+ translation: '<a href="https://gohugo.io">Desviluppaa con Hugo v{{ .Site.Hugo.Version }}</a> &nbsp;&bull;&nbsp; Tema <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adattaa de <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
+
+
+
+# Navigation
+
+- id: toggleNavigation
+
+ translation: "Attiva/disattiva la navigazion"
+
+- id: languageSwitcherLabel
+
+ translation: "Lengua"
+
+- id: gcseLabelShort
+
+ translation: "Cerca"
+
+- id: gcseLabelLong
+
+ translation: "Cerca {{ .Site.Title }}"
+
+- id: gcseClose
+
+ translation: "Sara su"
+
+
+
+# Staticman
+
+- id: noComment
+
+ translation: "Nissub comment"
+
+- id: oneComment
+
+ translation: "comment"
+
+- id: moreComment
+
+ translation: "comment"
+
+- id: useMarkdown
+
+ translation: "Te pòdet doperà la sintassi Markdown"
+
+- id: yourName
+
+ translation: "El tò nomm"
+
+- id: yourEmail
+
+ translation: "La toa adressa e-mail"
+
+- id: yourWebsite
+
+ translation: "El tò sitt web"
+
+
+
+# Delayed Disqus
+
+- id: show
+
+ translation: "Mostra"
+
+- id: comments
+
+ translation: "comment"
+
+
+
+# Related posts
+
+- id: seeAlso
+
+ translation: "Varda anca"
+
+# Content
+
+- id: dateFormat
+
+ translation: "2 January 2006"
+
+- id: shortdateFormat
+
+ translation: "2 Jan 2006 15:04:05"
+
+- id: postedOnDate
+
+ translation: "Publegaa il {{ .Count }}"
+
+- id: lastModified
+
+ translation: "(Darrera modifega ell {{ .Count }})"
+
+- id: translationsLabel
+
+ translation: "Alter lengov: "
+
+- id: translationsSeparator
+
+ translation: ", "
+
+- id: readMore
+
+ translation: "Lensg"
+
+- id: olderPosts
+
+ translation: "Articol pussee vegg"
+
+- id: newerPosts
+
+ translation: "Articoli pussee noeuv"
+
+- id: previousPost
+
+ translation: "Articolo de prima"
+
+- id: nextPost
+
+ translation: "Articolo dopo"
+
+- id: readTime
+
+ translation: "megnuu"
+
+- id: words
+
+ translation: "paroll"
+
+
+
+
+
+# 404 page
+
+- id: pageNotFound
+
+ translation: "Ocio, quella pagina chi la esist no. (errore 404)"
+
+
+
+# Footer
+
+- id: poweredBy # Accepts HTML
+
+ translation: '<a href="https://gohugo.io">Desviluppaa con Hugo v{{ .Site.Hugo.Version }}</a> &nbsp;&bull;&nbsp; Tema <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adattaa de <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
+
+
+
+# Navigation
+
+- id: toggleNavigation
+
+ translation: "Attiva/disattiva la navigazion"
+
+- id: languageSwitcherLabel
+
+ translation: "Lengua"
+
+- id: gcseLabelShort
+
+ translation: "Cerca"
+
+- id: gcseLabelLong
+
+ translation: "Cerca {{ .Site.Title }}"
+
+- id: gcseClose
+
+ translation: "Sara su"
+
+
+
+# Staticman
+
+- id: noComment
+
+ translation: "Nissub comment"
+
+- id: oneComment
+
+ translation: "comment"
+
+- id: moreComment
+
+ translation: "comment"
+
+- id: useMarkdown
+
+ translation: "Te pòdet doperà la sintassi Markdown"
+
+- id: yourName
+
+ translation: "El tò nomm"
+
+- id: yourEmail
+
+ translation: "La toa adressa e-mail"
+
+- id: yourWebsite
+
+ translation: "El tò sitt web"
+
+
+
+# Delayed Disqus
+
+- id: show
+
+ translation: "Mostra"
+
+- id: comments
+
+ translation: "comment"
+
+
+
+# Related posts
+
+- id: seeAlso
+
+ translation: "Varda anca"
diff --git a/i18n/nb.yaml b/i18n/nb.yaml
index e52d943..fa02605 100644
--- a/i18n/nb.yaml
+++ b/i18n/nb.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "Postet {{ .Count }}"
+ translation: "Postet {{ . }}"
- id: lastModified
- translation: "(Sist endret {{ .Count }})"
+ translation: "(Sist endret {{ . }})"
- id: translationsLabel
translation: "Andre språk: "
- id: translationsSeparator
diff --git a/i18n/nl.yaml b/i18n/nl.yaml
index 548e37e..f757606 100644
--- a/i18n/nl.yaml
+++ b/i18n/nl.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "Gepost op {{ .Count }}"
+ translation: "Gepost op {{ . }}"
- id: lastModified
- translation: "(Laatst gewijzigd op {{ .Count }})"
+ translation: "(Laatst gewijzigd op {{ . }})"
- id: translationsLabel
translation: "Andere talen: "
- id: translationsSeparator
@@ -65,9 +65,9 @@
# Delayed Disqus
- id: show
- translation: "Laat"
+ translation: "Laat zien"
- id: comments
- translation: "reacties zien"
+ translation: "reacties"
# Related posts
- id: seeAlso
diff --git a/i18n/pl.yaml b/i18n/pl.yaml
index b320a20..4b41797 100644
--- a/i18n/pl.yaml
+++ b/i18n/pl.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "Opublikowany {{ .Count }}"
+ translation: "Opublikowany {{ . }}"
- id: lastModified
- translation: "(Ostatnia modyfikacja {{ .Count }})"
+ translation: "(Ostatnia modyfikacja {{ . }})"
- id: translationsLabel
translation: "Inne języki: "
- id: translationsSeparator
diff --git a/i18n/ru.yaml b/i18n/ru.yaml
index e8fb69c..0f72c37 100644
--- a/i18n/ru.yaml
+++ b/i18n/ru.yaml
@@ -1,12 +1,12 @@
# Content
- id: dateFormat
- translation: "Январь 2, 2006"
+ translation: "02.01.2006"
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "Опубликовано {{ .Count }}"
+ translation: "Опубликовано {{ . }}"
- id: lastModified
- translation: "(Последнее изменение {{ .Count }})"
+ translation: "(Последнее изменение {{ . }})"
- id: translationsLabel
translation: "Другие языки: "
- id: translationsSeparator
diff --git a/i18n/tr.yaml b/i18n/tr.yaml
new file mode 100644
index 0000000..29e24f8
--- /dev/null
+++ b/i18n/tr.yaml
@@ -0,0 +1,74 @@
+# Content
+- id: dateFormat
+ translation: "2 Ocak 2006"
+- id: shortdateFormat
+ translation: "2 Oca 2006 15.04.05"
+- id: postedOnDate
+ translation: "{{ .Count }} tarihinde paylaşıldı"
+- id: lastModified
+ translation: "({{ .Count }} tarihinde güncellendi)"
+- id: translationsLabel
+ translation: "Diğer diller: "
+- id: translationsSeparator
+ translation: ", "
+- id: readMore
+ translation: "Daha fazla oku"
+- id: olderPosts
+ translation: "Önceki gönderiler"
+- id: newerPosts
+ translation: "Son gönderiler"
+- id: previousPost
+ translation: "Önceki gönderi"
+- id: nextPost
+ translation: "Sonraki gönderi"
+- id: readTime
+ translation: "dakika"
+- id: words
+ translation: "kelime"
+
+
+# 404 page
+- id: pageNotFound
+ translation: "Ups, bu sayfa mevcut değil. Başka bir yöne ilerleyin. (404 hatası)"
+
+# Footer
+- id: poweredBy # Accepts HTML
+ translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> altyapısı &nbsp;&bull;&nbsp; <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> temasından uyarlanan <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> teması kullanılmaktadır.'
+
+# Navigation
+- id: toggleNavigation
+ translation: "Gezinmeyi aktifleştirin"
+- id: languageSwitcherLabel
+ translation: "Dil"
+- id: gcseLabelShort
+ translation: "Arama"
+- id: gcseLabelLong
+ translation: "{{ .Site.Title }} içinde arayın"
+- id: gcseClose
+ translation: "Kapat"
+
+# Staticman
+- id: noComment
+ translation: "Yorum yok"
+- id: oneComment
+ translation: "yorum"
+- id: moreComment
+ translation: "yorum"
+- id: useMarkdown
+ translation: "Markdown söz dizimini kullanabilirsiniz"
+- id: yourName
+ translation: "İsminiz"
+- id: yourEmail
+ translation: "E-posta adresiniz"
+- id: yourWebsite
+ translation: "Web siteniz"
+
+# Delayed Disqus
+- id: show
+ translation: "Göster"
+- id: comments
+ translation: "yorumlar"
+
+# Related posts
+- id: seeAlso
+ translation: "Ayrıca bakınız"
diff --git a/i18n/zh-CN.yaml b/i18n/zh-CN.yaml
index d303607..7777495 100644
--- a/i18n/zh-CN.yaml
+++ b/i18n/zh-CN.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "发表于 {{ .Count }}"
+ translation: "发表于 {{ . }}"
- id: lastModified
- translation: "(上次修改时间 {{ .Count }})"
+ translation: "(上次修改时间 {{ . }})"
- id: translationsLabel
translation: "其它语言: "
- id: translationsSeparator
diff --git a/i18n/zh-TW.yaml b/i18n/zh-TW.yaml
index 8bd1f52..6d2436d 100644
--- a/i18n/zh-TW.yaml
+++ b/i18n/zh-TW.yaml
@@ -4,9 +4,9 @@
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate
- translation: "發表於 {{ .Count }}"
+ translation: "發表於 {{ . }}"
- id: lastModified
- translation: "(最後修改於 {{ .Count }})"
+ translation: "(最後修改於 {{ . }})"
- id: translationsLabel
translation: "其他語言: "
- id: translationsSeparator
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 83ace10..de9a5a3 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -88,4 +88,6 @@
{{- end -}}
{{- partial "head_custom.html" . }}
-{{ template "_internal/google_analytics_async.html" . }}
+{{- if not .Site.IsServer -}}
+ {{ template "_internal/google_analytics_async.html" . }}
+{{- end -}} \ No newline at end of file
diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html
index 3410075..a8ad297 100644
--- a/layouts/shortcodes/details.html
+++ b/layouts/shortcodes/details.html
@@ -1,3 +1,3 @@
-<details><summary>{{ .Get 0 }}</summary>
-{{ .Inner }}
+<details><summary>{{ .Get 0 | markdownify }}</summary>
+{{ .Inner | markdownify }}
</details>