| README.md | ●●●●● patch | view | raw | blame | history | |
| exampleSite/config.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/de.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/dk.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/en.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/es.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/fa.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/fi.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/fr.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/it.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/pt-br.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/zh-cn.toml | ●●●●● patch | view | raw | blame | history | |
| i18n/zh-tw.toml | ●●●●● patch | view | raw | blame | history | |
| layouts/index.html | ●●●●● patch | view | raw | blame | history |
README.md
@@ -150,6 +150,13 @@ listDateFormat = "Jan 2" ``` ### Read-more Links You can enable read-more links for truncated posts by setting the `readMore = true`. The length of the preview is controlled by Hugo's `summarylength`. Read-more links are disabled by default. ```toml [params] readMore = true ``` ### Have a static page as a home page If you prefer having a static page as your home page rather than a listing of the latest posts, then make sure you leave the `mainSections` parameter blank: ```toml exampleSite/config.toml
@@ -42,6 +42,9 @@ # singleDateFormat = "Mon, Jan 2, 2006" # Commento Comments # CommentoURL = "https://commento.example.com/js/commento.js" # Read More links for truncated summaries # readMore = true [params.simpleAnalytics] # enable = true i18n/de.toml
@@ -21,4 +21,7 @@ other = "Kommentare" [send] other = "Senden" other = "Senden" [read_more] other = "weiterlesen" i18n/dk.toml
@@ -21,4 +21,7 @@ other = "kommentar" [send] other = "Sende" other = "Sende" [read_more] other = "Læs mere" i18n/en.toml
@@ -21,4 +21,7 @@ other = "comments" [send] other = "Send" other = "Send" [read_more] other = "Read more" i18n/es.toml
@@ -21,4 +21,7 @@ other = "comentarios" [send] other = "Enviar" other = "Enviar" [read_more] other = "Leer más" i18n/fa.toml
@@ -21,4 +21,7 @@ other = "نظرات" [send] other = "ارسال" other = "ارسال" [read_more] other = "ادامه خواندن" i18n/fi.toml
@@ -21,4 +21,7 @@ other = "kommentit" [send] other = "Lähetä" other = "Lähetä" [read_more] other = "Jatka lukemista" i18n/fr.toml
@@ -21,4 +21,7 @@ other = "commentaire" [send] other = "Envoyer" other = "Envoyer" [read_more] other = "continuer la lecture" i18n/it.toml
@@ -21,4 +21,7 @@ other = "commenti" [send] other = "Spedire" other = "Spedire" [read_more] other = "Continua a leggere" i18n/pt-br.toml
@@ -22,3 +22,6 @@ [send] other = "Enviar" [read_more] other = "continue lendo" i18n/zh-cn.toml
@@ -22,3 +22,6 @@ [send] other = "发送" [read_more] other = "继续阅读" i18n/zh-tw.toml
@@ -21,4 +21,7 @@ other = "註解" [send] other = "發送" other = "發送" [read_more] other = "繼續閱讀" layouts/index.html
@@ -26,15 +26,23 @@ </h3> </div> <div class="post-content"> <div class="p_part"><p>{{ if .Site.Params.fullPostContent }}{{ .Content }}{{ else }}{{ .Summary }}{{ end }}</p></div> <div class="p_part"> <p>{{ if .Site.Params.fullPostContent }}{{ .Content }}{{ else }}{{ .Summary }}{{ end }}</p> <!-- add read more --> {{- if and (.Truncated) (.Site.Params.readMore) -}} <a href='{{ .RelPermalink }}' class="read_more">{{ i18n "read_more" }}</a> {{- end -}} </div> </div> <!-- --> <div class="post-footer"> <div class="meta"> <div class="info"> <em class="fas fa-calendar-day"></em> <span class="date">{{ if isset .Site.Params "indexdateformat" }} {{ .Date.Format .Site.Params.indexDateFormat }} {{ else }} {{.Date.Format "Mon, Jan 2, 2006"}} <span class="date">{{ if isset .Site.Params "indexdateformat" }} {{ .Date.Format .Site.Params.indexDateFormat }} {{ else }} {{.Date.Format "Mon, Jan 2, 2006"}} {{ end }}</span> {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }} {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}