Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cntrump/hugo-notepadium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Smirnov <isgsmirnov@gmail.com>2020-03-01 09:48:56 +0300
committerIvan Smirnov <isgsmirnov@gmail.com>2020-03-01 10:09:09 +0300
commita36ed889d9f6c9e60bddf9766ad561f5f6ccaad2 (patch)
treecc0f5647c1cfe580ce5772a249114d6c28e8843e /README.md
parent2dd2485db3ee60a7c2501fc31bf65bf6fd628777 (diff)
Enable toggling of full RSS feed through param.
When setting up an RSS + email integration for a mailing list, the RSS feed needs to contain the HTML of the post in the rss 'content:encoded' field. This commit adds a 'fullRss' option that allows users to enable this. Links: - https://validator.w3.org/feed/docs/rss2.html - https://backendology.com/2018/08/31/hugo-newsletter/
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index 15b8b10..8f4df69 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,7 @@ dateFormat = "Monday, January 2, 2006" # if unset, default is "2006-01-02"
logo = "" # if you have a logo png
slogan = "100% JavaScript-free"
license = "" # CC License
+fullRss = false # Puts entire HTML post into rss 'description' tag. If unset, default is false.
[params.comments]
enable = false # En/Disable comments globally, default: false. You can always enable comments on per page.
@@ -221,8 +222,8 @@ You can relayout copyright like this:
{{- $copyright := . -}}
<div style="display:flex; flex-direction:row; flex-wrap:wrap; justify-content:space-between;">
<p style="flex-shrink: 0;">{{- $copyright -}}</p>
-<p><span>Powered by </span><a
- href="https://gohugo.io" target="_blank">Hugo</a><span> and the </span><a
+<p><span>Powered by </span><a
+ href="https://gohugo.io" target="_blank">Hugo</a><span> and the </span><a
href="https://themes.gohugo.io/hugo-notepadium/" target="_blank">Notepadium</a></p>
</div>
```
@@ -291,7 +292,7 @@ An example navigation-items.html:
{{- range $nav.custom -}}
{{- $url := .url | safeURL -}}
{{- if strings.HasPrefix $url "/" -}}{{- $url = $url | relLangURL -}}{{- end -}}
- <a class="nav item" href="{{- $url -}}"
+ <a class="nav item" href="{{- $url -}}"
{{- if strings.HasPrefix $url "http" -}}target="_blank"
{{- end -}}>{{- .title -}}</a>
{{- end -}}