diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-08 15:59:08 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-08 15:59:08 +0200 |
| commit | b770912b5e296a2b79166063094ebbb43fb36c4c (patch) | |
| tree | 0215ba96c17c9ff0bdfabb23f38c1a269b68b662 | |
| parent | 61c2d688c65e375fcaa563d3e27c4f180ce7cc4c (diff) | |
| download | mitjafelicijan.com-b770912b5e296a2b79166063094ebbb43fb36c4c.tar.gz | |
Added openring
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile | 21 | ||||
| -rw-r--r-- | templates/base.html | 14 | ||||
| -rw-r--r-- | templates/includes/.gitkeep | 0 | ||||
| -rw-r--r-- | templates/openring.html | 14 |
5 files changed, 41 insertions, 9 deletions
| @@ -1,2 +1,3 @@ | |||
| 1 | public/ | 1 | public/ |
| 2 | templates/includes/openring.html | ||
| 2 | .DS_Store \ No newline at end of file | 3 | .DS_Store \ No newline at end of file |
| @@ -2,10 +2,25 @@ MAKEFLAGS=-j4 | |||
| 2 | 2 | ||
| 3 | # Using: https://github.com/mitjafelicijan/jbmafp | 3 | # Using: https://github.com/mitjafelicijan/jbmafp |
| 4 | 4 | ||
| 5 | build: | 5 | dev: |
| 6 | jbmafp --build | 6 | jbmafp --build --server |
| 7 | |||
| 8 | openring: | ||
| 9 | openring -l 165 -n 8 -p 1 \ | ||
| 10 | -s https://jcs.org/rss \ | ||
| 11 | -s https://chotrin.org/rss.xml \ | ||
| 12 | -s https://drewdevault.com/feed.xml \ | ||
| 13 | -s https://offbeatpursuit.com/blog/index.rss \ | ||
| 14 | -s https://mirzapandzo.com/rss.xml \ | ||
| 15 | -s https://journal.valeriansaliou.name/rss/ \ | ||
| 16 | -s https://neil.computer/rss/ \ | ||
| 17 | -s https://solar.lowtechmagazine.com/posts/index.xml \ | ||
| 18 | < templates/openring.html \ | ||
| 19 | > templates/includes/openring.html | ||
| 7 | 20 | ||
| 8 | deploy: | 21 | build: openring |
| 9 | jbmafp --build | 22 | jbmafp --build |
| 23 | |||
| 24 | deploy: build | ||
| 10 | rsync -az --delete public/ root@mitjafelicijan.com:/var/www/html/mitjafelicijan.com/ | 25 | rsync -az --delete public/ root@mitjafelicijan.com:/var/www/html/mitjafelicijan.com/ |
| 11 | ssh root@mitjafelicijan.com chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf | 26 | ssh root@mitjafelicijan.com chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf |
diff --git a/templates/base.html b/templates/base.html index c4dfa3b..abee062 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -173,21 +173,23 @@ | |||
| 173 | {{ block "content" . }}{{ end }} | 173 | {{ block "content" . }}{{ end }} |
| 174 | </main> | 174 | </main> |
| 175 | 175 | ||
| 176 | <section> | ||
| 177 | <hr> | ||
| 178 | {{ template "openring.html" }} | ||
| 179 | </section> | ||
| 180 | |||
| 176 | <footer> | 181 | <footer> |
| 177 | <hr> | 182 | <hr> |
| 178 | <p><big><strong>Want to comment or have something to add?</strong></big></p> | 183 | <p><big><strong>Want to comment or have something to add?</strong></big></p> |
| 179 | <p> | 184 | <p> |
| 180 | You can write me an email | 185 | You can write me an email |
| 181 | at <a href="mailto:m@mitjafelicijan.com">m@mitjafelicijan.com</a> or | 186 | at <a href="mailto:m@mitjafelicijan.com">m@mitjafelicijan.com</a> or |
| 182 | catch up with me <a href="https://telegram.me/mitjafelicijan" | 187 | catch up with me <a href="https://telegram.me/mitjafelicijan" target="_blank">on Telegram</a>. |
| 183 | target="_blank">on Telegram</a>. | ||
| 184 | </p> | 188 | </p> |
| 185 | <hr> | 189 | <hr> |
| 186 | <p>This website does not track you. Content is made available under | 190 | <p>This website does not track you. Content is made available under |
| 187 | the <a href="https://creativecommons.org/licenses/by/4.0/" | 191 | the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noreferrer">CC BY 4.0 license</a> unless specified |
| 188 | target="_blank" rel="noreferrer">CC BY 4.0 license</a> unless specified | 192 | otherwise. Blog is also available as <a href="/index.xml" target="_blank">RSS feed</a>. |
| 189 | otherwise. Blog is also available as <a href="/index.xml" | ||
| 190 | target="_blank">RSS feed</a>. | ||
| 191 | </p> | 193 | </p> |
| 192 | </footer> | 194 | </footer> |
| 193 | </body> | 195 | </body> |
diff --git a/templates/includes/.gitkeep b/templates/includes/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/templates/includes/.gitkeep | |||
diff --git a/templates/openring.html b/templates/openring.html new file mode 100644 index 0000000..37776ab --- /dev/null +++ b/templates/openring.html | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | <h2>Posts from blogs I follow around the net</h2> | ||
| 2 | |||
| 3 | <ul> | ||
| 4 | {{ range .Articles }} | ||
| 5 | <li> | ||
| 6 | <a href="{{ .Link }}" target="_blank" rel="noopener">{{ .Title }}</a> | ||
| 7 | <div>{{ .Summary }} — <a href="{{ .SourceLink }}">{{ .SourceTitle }}</a> | ||
| 8 | </li> | ||
| 9 | {{ end }} | ||
| 10 | </ul> | ||
| 11 | |||
| 12 | <p> | ||
| 13 | <a href="https://git.sr.ht/~sircmpwn/openring">Generated with openring.</a> | ||
| 14 | </p> | ||
