Added readmore links in index.html (#160)
Closes #159
| | |
| | | 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 |
| | |
| | | # 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 |
| | |
| | | |
| | | [send] |
| | | other = "Senden" |
| | | |
| | | [read_more] |
| | | other = "weiterlesen" |
| | |
| | | |
| | | [send] |
| | | other = "Sende" |
| | | |
| | | [read_more] |
| | | other = "Læs mere" |
| | |
| | | |
| | | [send] |
| | | other = "Send" |
| | | |
| | | [read_more] |
| | | other = "Read more" |
| | |
| | | |
| | | [send] |
| | | other = "Enviar" |
| | | |
| | | [read_more] |
| | | other = "Leer más" |
| | |
| | | |
| | | [send] |
| | | other = "ارسال" |
| | | |
| | | [read_more] |
| | | other = "ادامه خواندن" |
| | |
| | | |
| | | [send] |
| | | other = "Lähetä" |
| | | |
| | | [read_more] |
| | | other = "Jatka lukemista" |
| | |
| | | |
| | | [send] |
| | | other = "Envoyer" |
| | | |
| | | [read_more] |
| | | other = "continuer la lecture" |
| | |
| | | |
| | | [send] |
| | | other = "Spedire" |
| | | |
| | | [read_more] |
| | | other = "Continua a leggere" |
| | |
| | | |
| | | [send] |
| | | other = "Enviar" |
| | | |
| | | [read_more] |
| | | other = "continue lendo" |
| | |
| | | |
| | | [send] |
| | | other = "发送" |
| | | |
| | | [read_more] |
| | | other = "继续阅读" |
| | |
| | | |
| | | [send] |
| | | other = "發送" |
| | | |
| | | [read_more] |
| | | other = "繼續閱讀" |
| | |
| | | </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"> |