diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-01-27 15:10:46 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-01-27 15:10:46 +0100 |
| commit | 95df760bc1571071a7f6b9f626ecd4e5e3b34adc (patch) | |
| tree | d7bf0eae94653d3d1d8828b31f6dea37a8f5992c /template/openring.tmpl | |
| parent | 0d4d604fe6482052fe7724b04299474f8a820780 (diff) | |
| download | mitjafelicijan.com-95df760bc1571071a7f6b9f626ecd4e5e3b34adc.tar.gz | |
Adde openring
Diffstat (limited to 'template/openring.tmpl')
| -rw-r--r-- | template/openring.tmpl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/template/openring.tmpl b/template/openring.tmpl new file mode 100644 index 0000000..43ad6a2 --- /dev/null +++ b/template/openring.tmpl | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | <section class="webring top-margin"> | ||
| 2 | <h4>Articles from blogs I follow around the net</h3> | ||
| 3 | <section> | ||
| 4 | {{range .Articles}} | ||
| 5 | <article> | ||
| 6 | <a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a> | ||
| 7 | <p class="summary">{{.Summary}}</p> | ||
| 8 | <small> | ||
| 9 | via <a href="{{.SourceLink}}">{{.SourceTitle}}</a> | ||
| 10 | </small> | ||
| 11 | <small>{{.Date | datef "January 2, 2006"}}</small> | ||
| 12 | </article> | ||
| 13 | {{end}} | ||
| 14 | </section> | ||
| 15 | <p class="attribution"> | ||
| 16 | Generated by | ||
| 17 | <a href="https://git.sr.ht/~sircmpwn/openring">openring</a> | ||
| 18 | </p> | ||
| 19 | </section> | ||
| 20 | |||
| 21 | <style> | ||
| 22 | .webring article { | ||
| 23 | margin-block-end: 30px; | ||
| 24 | } | ||
| 25 | .webring article:last-child { | ||
| 26 | margin-block-end: 10px; | ||
| 27 | } | ||
| 28 | .webring article .summary { | ||
| 29 | margin: 0; | ||
| 30 | } | ||
| 31 | .webring .attribution { | ||
| 32 | font-size: small; | ||
| 33 | } | ||
| 34 | </style> | ||
