cyberfreedom/layouts/shortcodes/git-information.html

17 lines
539 B
HTML
Raw Normal View History

<h3>Git History </h3>
{{$url := "https://code.gabe.rocks/gabriel/cyberfreedom.rss"}}
{{ with resources.GetRemote $url}}
{{with .Err}}
{{else}}
{{ $data := . | transform.Unmarshal }}
{{with $data.channel.item}}
{{range first 3 .}}
<p><a href="{{.link}}">{{.pubDate | time.Format "Jan 02 2006"}}</a> - {{.author}}
</p>
{{end}}
{{end}}
{{end}}
{{else}}
<p>No Data</p>
{{end}}
<p><a href="https://code.gabe.rocks/gabriel/cyberfreedom.rss">Feed</a></p>