summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-03-22 08:20:06 -0600
committernytpu <alex@nytpu.com>2021-03-22 08:20:06 -0600
commit413c63149f2e8dfb544fb4dcc587910202d7c425 (patch)
treee7ca543b259139fddf61fef9a7f158c226debadc
parent8d9892b0a1b4cd696ec3f91adb06e322093490ff (diff)
Use custom header when writing feed.gmi
-rw-r--r--core/entries.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/entries.go b/core/entries.go
index 8beee91..72279ad 100644
--- a/core/entries.go
+++ b/core/entries.go
@@ -129,11 +129,11 @@ Watching these pages for any changes that occur.
func (d *FullData) WriteFeed(dataPath string) error {
path := filepath.Join(dataPath, "feed.gmi.new")
- rawPage := "# comitium subscriptions\n\n"
+ rawPage := Header
d.RLock()
pe := d.getPageEntries()
- rawPage += fmt.Sprintf("=> subscriptions.gmi Currently aggregating %d capsules, gopherholes, and websites.\n", len(d.Feeds)+len(d.Pages))
+ rawPage += fmt.Sprintf("\n=> subscriptions.gmi Currently aggregating %d capsules, gopherholes, and websites.\n\n", len(d.Feeds)+len(d.Pages))
d.RUnlock()
if len(pe.Entries) > 0 {