diff --git a/_config.yml b/_config.yml index 4d0b8f5..b3e3562 100644 --- a/_config.yml +++ b/_config.yml @@ -68,3 +68,5 @@ exclude: - .git/ - LICENSE - newpost.sh + - webring.template + - create-webring.sh diff --git a/_includes/custom-head.html b/_includes/custom-head.html index 75c6e2c..172ec27 100644 --- a/_includes/custom-head.html +++ b/_includes/custom-head.html @@ -1,3 +1,4 @@ + diff --git a/_includes/custom-webring.html b/_includes/custom-webring.html new file mode 100644 index 0000000..b2dde84 --- /dev/null +++ b/_includes/custom-webring.html @@ -0,0 +1,59 @@ +
+
+

+ Articles from blogs I read + + Generated by + openring + +

+ +
+
diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..ca0157a --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,38 @@ +{%- include custom-webring.html -%} + diff --git a/about.markdown b/about.markdown index f7ed180..bfbd3b0 100644 --- a/about.markdown +++ b/about.markdown @@ -46,7 +46,7 @@ This means you are free to share the posts and modify them, provided that you at # Acknowledgement -This blog is built with [jekyll] and its [minima] theme. +This blog is built with [jekyll] and its [minima] theme. I used [openring] to generate others' blog posts from RSS feed. [fosstodon]: https://fosstodon.org/@huy_ngo [matrix]: https://matrix.to/#/@xarvos:matrix.org @@ -59,3 +59,4 @@ This blog is built with [jekyll] and its [minima] theme. [YAltaCV]: https://github.com/Huy-Ngo/YAltaCV [discord-meme-bot]: https://github.com/Huy-Ngo/discord-meme-bot [wikt-cli]: https://git.sr.ht/~huyngo/wikt-cli +[openring]: https://git.sr.ht/~sircmpwn/openring diff --git a/assets/css/webring.scss b/assets/css/webring.scss new file mode 100644 index 0000000..d36883f --- /dev/null +++ b/assets/css/webring.scss @@ -0,0 +1,21 @@ +--- +--- + +.webring { + margin-bottom: 1rem; + .attribution { + float: right; + font-size: .8rem; + line-height: 3; + } + + .footer-col.article { + padding: 0.5rem; + + margin: 0 0.5rem; + border: 0.01rem solid #333; + @media(max-width: 640px) { + margin: 0.5rem 0; + } + } +} diff --git a/create-webring.sh b/create-webring.sh new file mode 100755 index 0000000..9bd5d3b --- /dev/null +++ b/create-webring.sh @@ -0,0 +1,7 @@ +# Create webring +openring \ + -s https://drewdevault.com/feed.xml \ + -s https://stallman.org/rss/rss.xml \ + -s https://news.opensuse.org/feed/ \ + < webring.template \ + > _includes/custom-webring.html diff --git a/webring.template b/webring.template new file mode 100644 index 0000000..d107318 --- /dev/null +++ b/webring.template @@ -0,0 +1,25 @@ +
+
+

+ Articles from blogs I read + + Generated by + openring + +

+ +
+