about summary refs log tree commit diff stats
path: root/cmd/build/atom.go
diff options
context:
space:
mode:
authorAlan Pearce2024-04-15 22:53:29 +0200
committerAlan Pearce2024-04-16 18:10:17 +0200
commitee0d8aed15902b6b76a14e2612c5ec661b320dc3 (patch)
treec0c66c048d92917aa6a7a7c3d5f78d621c4f4978 /cmd/build/atom.go
parent27448f33dce9141316bb4ea6d905305d8a846cac (diff)
downloadwebsite-ee0d8aed15902b6b76a14e2612c5ec661b320dc3.tar.lz
website-ee0d8aed15902b6b76a14e2612c5ec661b320dc3.tar.zst
website-ee0d8aed15902b6b76a14e2612c5ec661b320dc3.zip
reduce diffs to typescript builder
Diffstat (limited to 'cmd/build/atom.go')
-rw-r--r--cmd/build/atom.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/build/atom.go b/cmd/build/atom.go
index 9116278..e071af9 100644
--- a/cmd/build/atom.go
+++ b/cmd/build/atom.go
@@ -7,7 +7,7 @@ import (
 	. "alanpearce.eu/website/internal/config"
 )
 
-func makeTagURI(config Config, specific string) string {
+func MakeTagURI(config Config, specific string) string {
 	return "tag:" + config.OriginalDomain + "," + config.DomainStartDate + ":" + specific
 }
 
@@ -18,7 +18,7 @@ type Link struct {
 	Href    string   `xml:"href,attr"`
 }
 
-func makeLink(url string) Link {
+func MakeLink(url string) Link {
 	return Link{
 		Rel:  "alternate",
 		Type: "text/html",
@@ -38,6 +38,6 @@ type FeedEntry struct {
 	Id      string      `xml:"id"`
 	Updated time.Time   `xml:"updated"`
 	Summary string      `xml:"summary,omitempty"`
-	Author  string      `xml:"author>name"`
 	Content FeedContent `xml:"content"`
+	Author  string      `xml:"author>name"`
 }