add footer to page to be agpl compliant
This commit is contained in:
+15
-1
@@ -74,7 +74,7 @@ func toLocalDay(t time.Time) time.Time {
|
||||
func (d *FullData) WriteSubs(dataPath string) error {
|
||||
path := filepath.Join(dataPath, "subscriptions.gmi.new")
|
||||
|
||||
rawPage := `# comitium subscribed feeds
|
||||
rawPage := `# subscribed feeds
|
||||
## Feeds
|
||||
|
||||
Gemini, Atom, RSS, and JSON feeds from all over.
|
||||
@@ -103,6 +103,13 @@ Watching these pages for any changes that occur.
|
||||
}
|
||||
d.PagesMu.RUnlock()
|
||||
|
||||
rawPage += `
|
||||
|
||||
---
|
||||
|
||||
=> https://git.nytpu.com/comitium/about/ aggregated using comitium
|
||||
`
|
||||
|
||||
err := os.WriteFile(path, []byte(rawPage), 0666)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -141,6 +148,13 @@ func (d *FullData) WriteFeed(dataPath string) error {
|
||||
}
|
||||
}
|
||||
|
||||
rawPage += `
|
||||
|
||||
---
|
||||
|
||||
=> https://git.nytpu.com/comitium/about/ aggregated using comitium
|
||||
`
|
||||
|
||||
err := os.WriteFile(path, []byte(rawPage), 0666)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user