Skip to content

Commit

Permalink
add /feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Xe committed Jun 19, 2020
1 parent fc21078 commit 0027302
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/site/internal/blog/blog.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func LoadPosts(path string, prepend string) (Posts, error) {
SlidesLink string `yaml:"slides_link"`
Image string
Thumb string
Show string
}
var result Posts

Expand Down
1 change: 1 addition & 0 deletions cmd/site/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func Build() (*Site, error) {
s.renderTemplatePage("index.html", nil).ServeHTTP(w, r)
})
s.mux.Handle("/metrics", promhttp.Handler())
s.mux.Handle("/feeds", middleware.Metrics("feeds", s.renderTemplatePage("feeds.html", nil)))
s.mux.Handle("/patrons", middleware.Metrics("patrons", s.renderTemplatePage("patrons.html", s.patrons)))
s.mux.Handle("/signalboost", middleware.Metrics("signalboost", s.renderTemplatePage("signalboost.html", s.SignalBoost)))
s.mux.Handle("/resume", middleware.Metrics("resume", s.renderTemplatePage("resume.html", s.Resume)))
Expand Down
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
{{ template "scripts" . }}
<div class="container">
<header>
<p><a href="/">Christine Dodrill</a> - <a href="/blog">Blog</a> - <a href="/contact">Contact</a> - <a href="/gallery">Gallery</a> - <a href="/resume">Resume</a> - <a href="/talks">Talks</a> - <a href="/signalboost">Signal Boost</a> | <a target="_blank" rel="noopener noreferrer" href="https://graphviz.christine.website">GraphViz</a> - <a target="_blank" rel="noopener noreferrer" href="https://when-then-zen.christine.website/">When Then Zen</a></p>
<p><a href="/">Christine Dodrill</a> - <a href="/blog">Blog</a> - <a href="/contact">Contact</a> - <a href="/gallery">Gallery</a> - <a href="/resume">Resume</a> - <a href="/talks">Talks</a> - <a href="/signalboost">Signal Boost</a> - <a href="/feeds">Feeds</a> | <a target="_blank" rel="noopener noreferrer" href="https://graphviz.christine.website">GraphViz</a> - <a target="_blank" rel="noopener noreferrer" href="https://when-then-zen.christine.website/">When Then Zen</a></p>
</header>

<div class="snowframe">
Expand Down
14 changes: 14 additions & 0 deletions templates/feeds.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{ define "title" }}
<title>Feeds - Christine Dodrill</title>
{{ end }}

{{ define "content" }}
<h1>Feeds</h1>

<ul>
<li>Blog: <a href="/blog.rss">RSS</a> - <a href="/blog.json">JSONFeed</a></li>
<li>Twitter: <a href="https://rssbox.herokuapp.com/twitter/2573767249/theprincessxena">RSS</a></li>
<li>Mastodon: <a href="https://mst3k.interlinked.me/users/cadey.rss">RSS</a></li>
</ul>

{{ end }}

0 comments on commit 0027302

Please sign in to comment.