commit: 4c7a0029a975ac8e88cc0620ebca842aadc79971
parent 24e0ca2f0fa15a45df2540c99f509ae4ff701622
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 21 Aug 2020 15:02:49 -0400
Fix webring issues
Diffstat:
3 files changed, 39 insertions(+), 23 deletions(-)
diff --git a/.build.yml b/.build.yml
@@ -12,6 +12,22 @@ tasks:
cd hugo
go build --tags extended
sudo cp hugo /usr/local/bin/
+- openring: |
+ curl -O https://yukari.sr.ht/openring
+ chmod +x openring
+ cd drewdevault.com
+ ../openring \
+ -s https://emersion.fr/blog/rss.xml \
+ -s http://way-cooler.org/feed.xml \
+ -s https://danluu.com/atom.xml \
+ -s https://os.phil-opp.com/rss.xml \
+ -s https://blog.golang.org/feed.atom \
+ -s https://aphyr.com/posts.atom \
+ -s https://sourcehut.org/blog/index.xml \
+ -s https://100r.co/links/rss.xml \
+ -s https://tonsky.me/blog/atom.xml \
+ < _includes/webring-in.template \
+ > _includes/webring-out.html
- build: |
cd drewdevault.com
/usr/local/bin/hugo
diff --git a/layouts/partials/webring-in.html b/layouts/partials/webring-in.html
@@ -1,23 +0,0 @@
-<section class="webring">
- <h2>
- Articles from blogs I read
- <small class="attribution">
- Generated by
- <a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
- </small>
- </h2>
- <section class="articles">
- {{range .Articles}}
- <div class="article">
- <h4 class="title">
- <a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a>
- </h4>
- <p class="summary">{{.Summary}}</p>
- <small class="source">
- via <a href="{{.SourceLink}}">{{.SourceTitle}}</a>
- </small>
- <small class="date">{{.Date}}</small>
- </div>
- {{end}}
- </section>
-</section>
diff --git a/layouts/partials/webring-in.template b/layouts/partials/webring-in.template
@@ -0,0 +1,23 @@
+<section class="webring">
+ <h2>
+ Articles from blogs I read
+ <small class="attribution">
+ Generated by
+ <a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
+ </small>
+ </h2>
+ <section class="articles">
+ {{range .Articles}}
+ <div class="article">
+ <h4 class="title">
+ <a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a>
+ </h4>
+ <p class="summary">{{.Summary}}</p>
+ <small class="source">
+ via <a href="{{.SourceLink}}">{{.SourceTitle}}</a>
+ </small>
+ <small class="date">{{.Date | date}}</small>
+ </div>
+ {{end}}
+ </section>
+</section>