rss feeds

This commit is contained in:
Mivinci 2022-02-17 18:20:43 +08:00
parent 8f5abfdbe3
commit 46bb218788
2 changed files with 3 additions and 1 deletions

View file

@ -102,7 +102,7 @@ svg = ""
# providers have to make their 'Access-Control-Allow-Origin' contain
# your domain, otherwise the feeds cannot be fetched.
[params.friends]
feeds = ["https://is.boxmoe.cn/atom.xml", "https://xiabor.com/atom.xml"]
feeds = ["https://xjj.pub/index.xml"]
topk = 3
title = "Friends' Posts"

View file

@ -15,7 +15,9 @@
{{ end }}
{{ partial "paginator.html" . }}
</div>
{{ if .Site.Params.friends.feeds }}
<h3 class="my-6">{{ .Site.Params.friends.title }}</h3>
<div id="friends"></div>
{{ end }}
</main>
{{ end }}