cyberfreedom/layouts/shortcodes/git-information.html
Gabriel 6dc9b74062 large overhaul
1) Git history
2) Remote data feed working!
3) issues taxonomy setup
2024-02-04 01:21:11 -05:00

17 lines
No EOL
539 B
HTML

<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>