From 95df760bc1571071a7f6b9f626ecd4e5e3b34adc Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 27 Jan 2021 15:10:46 +0100 Subject: Adde openring --- Makefile | 20 +++++++++++++++++-- openring-build.html | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ template/index.html | 25 +++++++++++++++--------- template/openring.tmpl | 34 +++++++++++++++++++++++++++++++++ template/post.html | 29 ++++++++++++++++++++++++++++ template/style.css | 18 ++++++++++++++++- 6 files changed, 166 insertions(+), 12 deletions(-) create mode 100644 openring-build.html create mode 100644 template/openring.tmpl diff --git a/Makefile b/Makefile index 186a58c..ac6aae3 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,19 @@ -deploy: +provision: + cd ~/Junk + git clone https://git.sr.ht/~sircmpwn/openring + cd openring + go build + go install + +build: + openring -n 4 -p 2 \ + -s https://drewdevault.com/feed.xml \ + -s https://danluu.com/atom.xml \ + < template/openring.tmpl \ + > template/openring-build.html + alternator --build - cd public && scp -r * root@165.22.87.180:/var/www/html/mitjafelicijan.com/ \ No newline at end of file + rm template/openring-build.html + +deploy: build + cd public && scp -r * root@165.22.87.180:/var/www/html/mitjafelicijan.com/ diff --git a/openring-build.html b/openring-build.html new file mode 100644 index 0000000..12e0589 --- /dev/null +++ b/openring-build.html @@ -0,0 +1,52 @@ +
+

Articles from blogs I follow around the net

+
+ +
+

+ Open source means surrendering your monopoly over commercial exploitation +

+

Participation in open source requires you to surrender your monopoly over +commercial exploitation. This is a profound point about free and open source +software which seems to be causing a lot of companies to struggle with their +understanding of the philosoph…

+ + via Drew DeVault's blog + + January 20, 2021 +
+ +
+

+ Generated by + openring +

+
+ diff --git a/template/index.html b/template/index.html index 7727f3b..a566d95 100755 --- a/template/index.html +++ b/template/index.html @@ -21,20 +21,23 @@ +
+
-

Side projects

+

Side projects I work on

+ +
+ + {{template "openring-build.html"}} {{template "_includes.html"}} 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 @@ +
+

Articles from blogs I follow around the net

+
+ {{range .Articles}} + + {{end}} +
+

+ Generated by + openring +

+
+ + diff --git a/template/post.html b/template/post.html index b59bb38..3247d8f 100755 --- a/template/post.html +++ b/template/post.html @@ -24,6 +24,35 @@ {{.Content}} + + {{if .Listing}} +
+ ➝ Get in contact with me via email. +
+ +
+ + {{if .Posts}} + + {{end}} + +
+ + {{template "openring-build.html"}} + {{end}} + {{template "_includes.html"}} diff --git a/template/style.css b/template/style.css index 5aee568..26913fb 100755 --- a/template/style.css +++ b/template/style.css @@ -6,7 +6,7 @@ --link-color: #111111; --link-color-hover: #111111; - --label-color: #828282; + --label-color: #5f5f5f; --border-color: #eeeeee; @@ -222,6 +222,10 @@ blockquote p { margin-top: 60px; } +.top-margin-huge { + margin-top: 100px; +} + code { background: rgb(255, 241, 177); padding: 2px 5px; @@ -249,6 +253,18 @@ time { font-size: 90%; } +/* article */ + +article a { + overflow-wrap: break-word; + word-wrap: break-word; + -webkit-hyphens: auto; + -ms-hyphens: auto; + -moz-hyphens: auto; + hyphens: auto; +} + + /* footer */ .footer { -- cgit v1.2.3