add /feeds
This commit is contained in:
parent
fc21078a17
commit
00273025e1
|
@ -69,6 +69,7 @@ func LoadPosts(path string, prepend string) (Posts, error) {
|
||||||
SlidesLink string `yaml:"slides_link"`
|
SlidesLink string `yaml:"slides_link"`
|
||||||
Image string
|
Image string
|
||||||
Thumb string
|
Thumb string
|
||||||
|
Show string
|
||||||
}
|
}
|
||||||
var result Posts
|
var result Posts
|
||||||
|
|
||||||
|
|
|
@ -260,6 +260,7 @@ func Build() (*Site, error) {
|
||||||
s.renderTemplatePage("index.html", nil).ServeHTTP(w, r)
|
s.renderTemplatePage("index.html", nil).ServeHTTP(w, r)
|
||||||
})
|
})
|
||||||
s.mux.Handle("/metrics", promhttp.Handler())
|
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("/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("/signalboost", middleware.Metrics("signalboost", s.renderTemplatePage("signalboost.html", s.SignalBoost)))
|
||||||
s.mux.Handle("/resume", middleware.Metrics("resume", s.renderTemplatePage("resume.html", s.Resume)))
|
s.mux.Handle("/resume", middleware.Metrics("resume", s.renderTemplatePage("resume.html", s.Resume)))
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
{{ template "scripts" . }}
|
{{ template "scripts" . }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<header>
|
<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>
|
</header>
|
||||||
|
|
||||||
<div class="snowframe">
|
<div class="snowframe">
|
||||||
|
|
|
@ -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 }}
|
Loading…
Reference in New Issue