use new hugo
This commit is contained in:
parent
6a8079fe80
commit
3236c1d56e
|
@ -26,6 +26,12 @@ pygmentsCodefencesGuessSyntax = true
|
||||||
# add info for crawlers
|
# add info for crawlers
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
|
|
||||||
|
# we want raw HTML
|
||||||
|
[markup]
|
||||||
|
[markup.goldmark]
|
||||||
|
[markup.goldmark.renderer]
|
||||||
|
unsafe = true
|
||||||
|
|
||||||
# default author
|
# default author
|
||||||
[Author]
|
[Author]
|
||||||
name = "Christoph Cullmann"
|
name = "Christoph Cullmann"
|
||||||
|
|
|
@ -8,4 +8,4 @@ export GIT_COMMIT_SHA=`git rev-parse --verify HEAD`
|
||||||
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
|
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
|
||||||
|
|
||||||
# run hugo in local server mode, show all stuff
|
# run hugo in local server mode, show all stuff
|
||||||
exec ./hugo server -D --buildFuture
|
exec hugo server -D --buildFuture
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "02/Jan/2006 15:04:05"
|
translation: "02/Jan/2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Postado em {{ .Count }}"
|
translation: "Postado em {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Ultima modificação em {{ .Count }})"
|
translation: "(Ultima modificação em {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Outras linguagens: "
|
translation: "Outras linguagens: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Gepostet am {{ .Count }}"
|
translation: "Gepostet am {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Zuletzt geändert am {{ .Count }})"
|
translation: "(Zuletzt geändert am {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Andere Sprachen: "
|
translation: "Andere Sprachen: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "Jan 2, 2006 15:04:05"
|
translation: "Jan 2, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Posted on {{ .Count }}"
|
translation: "Posted on {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Last modified on {{ .Count }})"
|
translation: "(Last modified on {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Other languages: "
|
translation: "Other languages: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Afiŝiĝis je {{ .Count }}"
|
translation: "Afiŝiĝis je {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Laste aliiĝis je {{ .Count }})"
|
translation: "(Laste aliiĝis je {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Aliaj lingvoj: "
|
translation: "Aliaj lingvoj: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Publicado el {{ .Count }}"
|
translation: "Publicado el {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Última modificación en {{ .Count }})"
|
translation: "(Última modificación en {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Otros idiomas: "
|
translation: "Otros idiomas: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Posté le {{ .Count }}"
|
translation: "Posté le {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Dernière modification le {{ .Count }})"
|
translation: "(Dernière modification le {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Autres langues : "
|
translation: "Autres langues : "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan 2006 15:04:05"
|
translation: "2 Jan 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Redatto il {{ .Count }}"
|
translation: "Redatto il {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Ultima modifica il {{ .Count }})"
|
translation: "(Ultima modifica il {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Altre lingue: "
|
translation: "Altre lingue: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "{{ .Count }}に投稿"
|
translation: "{{ . }}に投稿"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(最終更新日時{{ .Count }})"
|
translation: "(最終更新日時{{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "翻訳:"
|
translation: "翻訳:"
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Postet {{ .Count }}"
|
translation: "Postet {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Sist endret {{ .Count }})"
|
translation: "(Sist endret {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Andre språk: "
|
translation: "Andre språk: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Gepost op {{ .Count }}"
|
translation: "Gepost op {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Laatst gewijzigd op {{ .Count }})"
|
translation: "(Laatst gewijzigd op {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Andere talen: "
|
translation: "Andere talen: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Opublikowany {{ .Count }}"
|
translation: "Opublikowany {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Ostatnia modyfikacja {{ .Count }})"
|
translation: "(Ostatnia modyfikacja {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Inne języki: "
|
translation: "Inne języki: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Опубликовано {{ .Count }}"
|
translation: "Опубликовано {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(Последнее изменение {{ .Count }})"
|
translation: "(Последнее изменение {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Другие языки: "
|
translation: "Другие языки: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "发表于 {{ .Count }}"
|
translation: "发表于 {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(上次修改时间 {{ .Count }})"
|
translation: "(上次修改时间 {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "其它语言: "
|
translation: "其它语言: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
- id: shortdateFormat
|
- id: shortdateFormat
|
||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "發表於 {{ .Count }}"
|
translation: "發表於 {{ . }}"
|
||||||
- id: lastModified
|
- id: lastModified
|
||||||
translation: "(最後修改於 {{ .Count }})"
|
translation: "(最後修改於 {{ . }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "其他語言: "
|
translation: "其他語言: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
|
|
@ -9,25 +9,24 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="posts-list">
|
<div class="posts-list">
|
||||||
{{ $pag := .Paginate (where .Data.Pages "Type" "post") }}
|
{{ range .Paginator.Pages }}
|
||||||
{{ range $pag.Pages }}
|
|
||||||
<article class="post-preview">
|
<article class="post-preview">
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
<h2 class="post-title">{{ .Title }}</h2>
|
<h2 class="post-title">{{ .Title }}</h2>
|
||||||
|
|
||||||
{{ if .Params.subtitle }}
|
{{ if .Params.subtitle }}
|
||||||
<h3 class="post-subtitle">
|
<h3 class="post-subtitle">
|
||||||
{{ .Params.subtitle }}
|
{{ .Params.subtitle }}
|
||||||
</h3>
|
</h3>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Params.image }}
|
|
||||||
<img src="{{ .Params.image }}" alt="{{ .Title }}" class="img-title" />
|
|
||||||
{{ end }}
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{{ partial "post_meta.html" . }}
|
<p class="post-meta">
|
||||||
|
{{ partial "post_meta.html" . }}
|
||||||
|
</p>
|
||||||
<div class="post-entry">
|
<div class="post-entry">
|
||||||
{{ if .Truncated }}
|
{{ if .Truncated }}
|
||||||
{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }}
|
{{ .Summary }}
|
||||||
<a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a>
|
<a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
@ -41,6 +40,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,7 +11,7 @@ export GIT_COMMIT_SHA=`git rev-parse --verify HEAD`
|
||||||
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
|
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
|
||||||
|
|
||||||
# rerun hugo generator
|
# rerun hugo generator
|
||||||
./hugo --minify --noTimes
|
hugo --minify --noTimes
|
||||||
|
|
||||||
# copy .htaccess
|
# copy .htaccess
|
||||||
cp -f static/.htaccess public
|
cp -f static/.htaccess public
|
||||||
|
|
Loading…
Reference in a new issue