Use custom header when writing feed.gmi
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user