summaryrefslogtreecommitdiff
path: root/core/entries.go
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-05-19 07:39:15 -0600
committernytpu <alex@nytpu.com>2021-05-19 07:39:15 -0600
commit012eddbafe8b6f82d5a767baaa877d2e164ade67 (patch)
tree277c987b44bbfd5dcf1ea2b23c4a07833e2e59db /core/entries.go
parentb5963fbe3a51ce3cf0caa87fbf26b29b4dcec812 (diff)
add custom footer
Diffstat (limited to 'core/entries.go')
-rw-r--r--core/entries.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/core/entries.go b/core/entries.go
index 681a10f..3097094 100644
--- a/core/entries.go
+++ b/core/entries.go
@@ -79,11 +79,6 @@ func genDay() string {
return TranslateString("%s\n", "files.generated_on", &localizations.Replacements{"date": time.Now().Format("2006-01-02 at 15:04 MST")})
}
-// agplCompliance returns a string containing a footer linking to the source code
-func agplCompilance() string {
- return TranslateString("\n\n---\n\n=> https://git.nytpu.com/comitium/about/ %s\n", "files.comitium_footer", &localizations.Replacements{"version": Version, "commit": Commit})
-}
-
func (d *FullData) WriteSubs(dataPath string) error {
path := filepath.Join(dataPath, "subscriptions.gmi.new")
@@ -115,7 +110,7 @@ func (d *FullData) WriteSubs(dataPath string) error {
}
d.PagesMu.RUnlock()
- rawPage += agplCompilance()
+ rawPage += Footer
err := ioutil.WriteFile(path, []byte(rawPage), 0666)
if err != nil {
@@ -156,7 +151,7 @@ func (d *FullData) WriteFeed(dataPath string) error {
}
}
- rawPage += agplCompilance()
+ rawPage += Footer
err := ioutil.WriteFile(path, []byte(rawPage), 0666)
if err != nil {
return err