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

View file

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