diff options
Diffstat (limited to 'themes/default/layouts/partials/webring.html')
-rw-r--r-- | themes/default/layouts/partials/webring.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/webring.html b/themes/default/layouts/partials/webring.html new file mode 100644 index 0000000..0f97624 --- /dev/null +++ b/themes/default/layouts/partials/webring.html @@ -0,0 +1,15 @@ +{{- $feeds := partial "function-generate-feeds.html" . -}} +{{- $webring := print "public/" .Section "/webring.html" -}} + +<web-ring> + <h1>Web Ring</h1> + {{ if and $feeds (fileExists $webring) }} + <aside> + {{- (resources.Get $webring).Content | safeHTML -}} + </aside> + {{ else }} + <footer> + <code>No content found!</code> + </footer> + {{ end }} +</web-ring> |