use new hugo

This commit is contained in:
Christoph Cullmann 2021-01-24 21:39:31 +01:00
parent 6a8079fe80
commit 3236c1d56e
19 changed files with 57 additions and 51 deletions

View file

@ -26,6 +26,12 @@ pygmentsCodefencesGuessSyntax = true
# add info for crawlers
enableRobotsTXT = true
# we want raw HTML
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
# default author
[Author]
name = "Christoph Cullmann"

BIN
hugo

Binary file not shown.

View file

@ -8,4 +8,4 @@ export GIT_COMMIT_SHA=`git rev-parse --verify HEAD`
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
# run hugo in local server mode, show all stuff
exec ./hugo server -D --buildFuture
exec hugo server -D --buildFuture

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Mostrar"
- id: comments
translation: "comentários"
translation: "comentários"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Zeige"
- id: comments
translation: "Kommentare"
translation: "Kommentare"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Show"
- id: comments
translation: "comments"
translation: "comments"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Montru"
- id: comments
translation: "komentoj"
translation: "komentoj"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,8 +67,8 @@
- id: show
translation: "Mostrar"
- id: comments
translation: "comentarios"
translation: "comentarios"
# Related posts
- id: seeAlso
translation: "Ver también"

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Afficher"
- id: comments
translation: "commentaires"
translation: "commentaires"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Mostra"
- id: comments
translation: "commenti"
translation: "commenti"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "ショー"
- id: comments
translation: "コメント"
translation: "コメント"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Vis"
- id: comments
translation: "kommentarer"
translation: "kommentarer"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Laat"
- id: comments
translation: "reacties zien"
translation: "reacties zien"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Pokaż"
- id: comments
translation: "komentarzy"
translation: "komentarzy"
# Related posts
- id: seeAlso

View file

@ -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
@ -67,7 +67,7 @@
- id: show
translation: "Показать"
- id: comments
translation: "комментариев"
translation: "комментариев"
# Related posts
- id: seeAlso

View file

@ -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

View file

@ -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

View file

@ -9,25 +9,24 @@
{{ end }}
<div class="posts-list">
{{ $pag := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $pag.Pages }}
{{ range .Paginator.Pages }}
<article class="post-preview">
<a href="{{ .Permalink }}">
<h2 class="post-title">{{ .Title }}</h2>
{{ if .Params.subtitle }}
<h3 class="post-subtitle">
{{ .Params.subtitle }}
{{ .Params.subtitle }}
</h3>
{{ end }}
{{ if .Params.image }}
<img src="{{ .Params.image }}" alt="{{ .Title }}" class="img-title" />
{{ end }}
</a>
{{ partial "post_meta.html" . }}
<p class="post-meta">
{{ partial "post_meta.html" . }}
</p>
<div class="post-entry">
{{ if .Truncated }}
{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }}
{{ .Summary }}
<a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a>
{{ else }}
{{ .Content }}
@ -41,6 +40,7 @@
{{ end }}
</div>
{{ end }}
</article>
{{ end }}
</div>

View file

@ -11,7 +11,7 @@ export GIT_COMMIT_SHA=`git rev-parse --verify HEAD`
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
# rerun hugo generator
./hugo --minify --noTimes
hugo --minify --noTimes
# copy .htaccess
cp -f static/.htaccess public