diff options
author | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-08-23 13:00:42 +0300 |
---|---|---|
committer | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-08-23 13:00:42 +0300 |
commit | abb0ffc610cfe667ed98015ca6597baeafd89036 (patch) | |
tree | 70fb971b47b6511284cb426174287812b9d4ac45 | |
parent | 0e1311805fb0c7d68318804ec3a4396b8e3cda92 (diff) |
Rename summary parameter
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | config.yaml | 2 | ||||
-rw-r--r-- | layouts/index.html | 16 |
3 files changed, 10 insertions, 10 deletions
@@ -56,7 +56,6 @@ Configuration options may be copied and modified from the theme defaults: ```yaml params: - summary: false # Display main content as summary color: teal # Any color in CSS syntax width: 42rem # Any length in CSS syntax footer: Except where otherwise noted, content on this site is licensed under @@ -64,6 +63,7 @@ params: Creative Commons Attribution 4.0 International License</a>. rss: To subscribe to this RSS feed, copy its address and paste it into your favorite feed reader. + summaries: false utterances: enable: false repo: diff --git a/config.yaml b/config.yaml index 2933a60..5257b7c 100644 --- a/config.yaml +++ b/config.yaml @@ -1,5 +1,4 @@ params: - summary: false # Display main content as summary color: teal # Any color in CSS syntax width: 42rem # Any length in CSS syntax footer: Except where otherwise noted, content on this site is licensed under @@ -7,6 +6,7 @@ params: Creative Commons Attribution 4.0 International License</a>. rss: To subscribe to this RSS feed, copy its address and paste it into your favorite feed reader. + summaries: false utterances: enabled: false repo: diff --git a/layouts/index.html b/layouts/index.html index 594666b..ffdaa30 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,15 +19,15 @@ {{ range $paginator.Pages }} <article> {{ partial "heading.html" . }} - {{ if site.Params.summary }} - {{ .Summary }} - {{ if .Truncated }} - <div> - <a href="{{ .RelPermalink }}">Read More…</a> - </div> - {{ end }} + {{ if site.Params.summaries }} + {{ .Summary }} + {{ if .Truncated }} + <div> + <a href="{{ .RelPermalink }}">Read More…</a> + </div> + {{ end }} {{ else }} - {{ .Content }} + {{ .Content }} {{ end }} {{ partial "tags.html" . }} </article> |