{{ .name }}
+ {{ else }} +{{ .name }}
+ {{ end }} + +{{ .comment | markdownify }}
diff --git a/README.md b/README.md index 3de9dd3..47cdbfb 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,21 @@ Client side highlighting does not require pygments to be installed. This current To use this feature, uncomment and fill out the `disqusShortname` parameter in `config.toml`. +### Staticman support + +Add *staticman* configuration section in `config.toml` or `config.yaml` + +Sample configuration + +``` + staticman: + api: https://api.staticman.net/v2/entry/badele/blog.jesuislibre.org/master/comments + pulls: https://github.com/badele/blog.jesuislibre.org/pulls + recaptcha: + sitekey: "6LeGeTgUAAAAAAqVrfTwox1kJQFdWl-mLzKasV0v" + secret: "hsGjWtWHR4HK4pT7cUsWTArJdZDxxE2pkdg/ArwCguqYQrhuubjj3RS9C5qa8xu4cx/Y9EwHwAMEeXPCZbLR9eW1K9LshissvNcYFfC/b8KKb4deH4V1+oqJEk/JcoK6jp6Rr2nZV4rjDP9M7nunC3WR5UGwMIYb8kKhur9pAic=" +``` + ### Google Analytics To add Google Analytics, simply sign up to [Google Analytics](http://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml`. diff --git a/i18n/de.yaml b/i18n/de.yaml index c2823d8..1dff1eb 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -1,6 +1,8 @@ # Content - id: dateFormat translation: "02.01.2006" +- id: shortdateFormat + translation: "2 Jan, 2006 15:04:05" - id: postedOnDate translation: "Gepostet am {{ .Count }}" - id: translationsLabel diff --git a/i18n/en.yaml b/i18n/en.yaml index 64c2f7b..6a5a6af 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,6 +1,8 @@ # Content - id: dateFormat translation: "January 2, 2006" +- id: shortdateFormat + translation: "Jan 2, 2006 15:04:05" - id: postedOnDate translation: "Posted on {{ .Count }}" - id: translationsLabel @@ -37,4 +39,3 @@ translation: "Search {{ .Site.Title }}" - id: gcseClose translation: "Close" - diff --git a/i18n/es-ES.yaml b/i18n/es-ES.yaml index b9a5084..cb30d4b 100644 --- a/i18n/es-ES.yaml +++ b/i18n/es-ES.yaml @@ -1,6 +1,8 @@ # Content - id: dateFormat translation: "2 de enero, 2006" +- id: shortdateFormat + translation: "2 Jan, 2006 15:04:05" - id: postedOnDate translation: "Publicado el {{ .Count }}" - id: translationsLabel diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 7541caa..7519c78 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -1,6 +1,8 @@ # Content - id: dateFormat translation: "January 2, 2006" +- id: shortdateFormat + translation: "2 Jan, 2006 15:04:05" - id: postedOnDate translation: "Posté le {{ .Count }}" - id: translationsLabel diff --git a/i18n/ja.yaml b/i18n/ja.yaml index c7c77b2..2c38cad 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -1,6 +1,8 @@ # Content - id: dateFormat translation: "2006年1月2日" +- id: shortdateFormat + translation: "2 Jan, 2006 15:04:05" - id: postedOnDate translation: "{{ .Count }}に投稿" - id: translationsLabel @@ -35,4 +37,3 @@ translation: "{{ .Site.Title }}を検索" - id: gcseClose translation: "閉じる" - diff --git a/i18n/pl.yaml b/i18n/pl.yaml index 2053a17..5bffb35 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -1,6 +1,8 @@ # Content - id: dateFormat translation: "02.01.2006" +- id: shortdateFormat + translation: "2 Jan, 2006 15:04:05" - id: postedOnDate translation: "Opublikowany {{ .Count }}" - id: translationsLabel @@ -37,4 +39,3 @@ translation: "Szukaj {{ .Site.Title }}" - id: gcseClose translation: "Zamknij" - diff --git a/i18n/ru.yaml b/i18n/ru.yaml index deeaecf..5a9b229 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -1,6 +1,8 @@ # Content - id: dateFormat translation: "Январь 2, 2006" +- id: shortdateFormat + translation: "2 Jan, 2006 15:04:05" - id: postedOnDate translation: "Опубликовано {{ .Count }}" - id: translationsLabel @@ -37,4 +39,3 @@ translation: "Поиск по {{ .Site.Title }}" - id: gcseClose translation: "Закрыть" - diff --git a/i18n/zh.yaml b/i18n/zh.yaml index 9c44558..59335de 100644 --- a/i18n/zh.yaml +++ b/i18n/zh.yaml @@ -1,6 +1,8 @@ # Content - id: dateFormat translation: "January 2, 2006" +- id: shortdateFormat + translation: "2 Jan, 2006 15:04:05" - id: postedOnDate translation: "发表于 {{ .Count }}" - id: translationsLabel @@ -37,4 +39,3 @@ translation: "搜索 {{ .Site.Title }}" - id: gcseClose translation: "关闭" - diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1fddbe8..419edb2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -19,12 +19,18 @@ {{ end }} + {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }} {{ if .Site.DisqusShortname }}
{{ .comment | markdownify }}