aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2024-03-09 14:03:10 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2024-03-09 14:03:10 +0100
commita40d80be378e46a6c490e1b99b0d8f4acd968503 (patch)
tree3043d5ceb8e2daba75a43ed1d25586868e000f7d
parent384235475fa9578d52210c2f80d18c3cfec00813 (diff)
downloadmitjafelicijan.com-a40d80be378e46a6c490e1b99b0d8f4acd968503.tar.gz
Style fixes and added feed.json
-rw-r--r--_layouts/base.html3
-rw-r--r--feed.json61
-rw-r--r--vault.md2
3 files changed, 65 insertions, 1 deletions
diff --git a/_layouts/base.html b/_layouts/base.html
index cd7d8a9..57d447c 100644
--- a/_layouts/base.html
+++ b/_layouts/base.html
@@ -14,6 +14,7 @@
14 {% seo title=false %} 14 {% seo title=false %}
15 15
16 <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="/feed.xml"> 16 <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="/feed.xml">
17 <link rel="alternate" type="application/json" title="{{ site.title | escape }}" href="/feed.json" />
17 18
18 <style> 19 <style>
19 :root { 20 :root {
@@ -47,7 +48,7 @@
47 font-family: sans-serif; 48 font-family: sans-serif;
48 line-height: 1.4rem; 49 line-height: 1.4rem;
49 font-size: 16px; 50 font-size: 16px;
50 margin: 0 auto; 51 /* margin: 0 auto; */
51 } 52 }
52 53
53 hr { 54 hr {
diff --git a/feed.json b/feed.json
new file mode 100644
index 0000000..110f216
--- /dev/null
+++ b/feed.json
@@ -0,0 +1,61 @@
1---
2layout: null
3---
4{
5 "version": "https://jsonfeed.org/version/1",
6 "title": "{{ site.title | xml_escape }}",
7 "home_page_url": "{{ "/" | absolute_url }}",
8 "feed_url": "{{ "/feed.json" | absolute_url }}",
9 "description": {{ site.description | jsonify }},
10 "icon": "{{ "/apple-touch-icon.png" | absolute_url }}",
11 "favicon": "{{ "/favicon.ico" | absolute_url }}",
12 "expired": false,
13 {% if site.author %}
14 "author": {% if site.author.name %} {
15 "name": "{{ site.author.name }}",
16 "url": {% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},
17 "avatar": {% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}
18 },{% else %}"{{ site.author }}",{% endif %}
19 {% endif %}
20"items": [
21 {% for post in site.posts limit:500 %}
22 {
23 "id": "{{ post.url | absolute_url | sha1 }}",
24 "title": {{ post.title | jsonify }},
25 "summary": {{ post.seo_description | jsonify }},
26 "content_text": {{ post.content | strip_html | strip_newlines | jsonify }},
27 "content_html": {{ post.content | strip_newlines | jsonify }},
28 "url": "{{ post.url | absolute_url }}",
29 {% if post.image.size > 1 %}"image": {{ post.image | jsonify }},{% endif %}
30 {% if post.link.size > 1 %}"external_url": "{{ post.link }}",{% endif %}
31 {% if post.banner.size > 1 %}"banner_image": "{{ post.banner }}",{% endif %}
32 {% if post.tags.size > 1 %}"tags": {{ post.tags | jsonify }},{% endif %}
33 {% if post.enclosure.size > 1 %}"attachments": [
34 {
35 "url": "{{ post.enclosure }}",
36 "mime_type": "{{ post.enclosure_type }}",
37 "size_in_bytes": "{{ post.enclosure_length }}"
38 },{% endif %}
39 "date_published": "{{ post.date | date_to_xmlschema }}",
40 "date_modified": "{{ post.date | date_to_xmlschema }}",
41 {% if post.author %}
42 "author": {% if post.author.name %} {
43 "name": "{{ post.author.name }}",
44 "url": {% if post.author.url %}"{{ post.author.url }}"{% else %}null{% endif %},
45 "avatar": {% if post.author.avatar %}"{{ post.author.avatar }}"{% else %}null{% endif %}
46 }
47 {% else %}"{{ post.author }}"{% endif %}
48 {% else %}
49 "author": {% if site.author.name %} {
50 "name": "{{ site.author.name }}",
51 "url": {% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},
52 "avatar": {% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}
53 }
54 {% else %}
55 "{{ site.author }}"
56 {% endif %}
57 {% endif %}
58 }{% if forloop.last == false %},{% endif %}
59 {% endfor %}
60 ]
61}
diff --git a/vault.md b/vault.md
index e9eb998..a9736ad 100644
--- a/vault.md
+++ b/vault.md
@@ -76,6 +76,7 @@ Be kind, this server is bandwidth limited.
76 - [simulator.go](https://mitjafelicijan.fra1.digitaloceanspaces.com/haphazard/simulator.go) 76 - [simulator.go](https://mitjafelicijan.fra1.digitaloceanspaces.com/haphazard/simulator.go)
77 - [standard-ml.pdf](https://mitjafelicijan.fra1.digitaloceanspaces.com/haphazard/standard-ml.pdf) 77 - [standard-ml.pdf](https://mitjafelicijan.fra1.digitaloceanspaces.com/haphazard/standard-ml.pdf)
78 - [staticserver.txt](https://mitjafelicijan.fra1.digitaloceanspaces.com/haphazard/staticserver.txt) 78 - [staticserver.txt](https://mitjafelicijan.fra1.digitaloceanspaces.com/haphazard/staticserver.txt)
79- [neptune](https://mitjafelicijan.fra1.digitaloceanspaces.com/neptune)
79- papers 80- papers
80 - affective-computing 81 - affective-computing
81 - [Theories-Methods-and-Current-Research-on-Emotions.pdf](https://mitjafelicijan.fra1.digitaloceanspaces.com/papers/affective-computing/Theories-Methods-and-Current-Research-on-Emotions.pdf) 82 - [Theories-Methods-and-Current-Research-on-Emotions.pdf](https://mitjafelicijan.fra1.digitaloceanspaces.com/papers/affective-computing/Theories-Methods-and-Current-Research-on-Emotions.pdf)
@@ -361,6 +362,7 @@ Be kind, this server is bandwidth limited.
361 - [sapi-0.1.0-linux-arm64.tar.gz](https://mitjafelicijan.fra1.digitaloceanspaces.com/public-projects/simpleapi/sapi-0.1.0-linux-arm64.tar.gz) 362 - [sapi-0.1.0-linux-arm64.tar.gz](https://mitjafelicijan.fra1.digitaloceanspaces.com/public-projects/simpleapi/sapi-0.1.0-linux-arm64.tar.gz)
362- sandbox 363- sandbox
363 - [data.json](https://mitjafelicijan.fra1.digitaloceanspaces.com/sandbox/data.json) 364 - [data.json](https://mitjafelicijan.fra1.digitaloceanspaces.com/sandbox/data.json)
365- [tarballs](https://mitjafelicijan.fra1.digitaloceanspaces.com/tarballs)
364- video 366- video
365 - [Building the Simplest Possible Linux System - Rob Landley.webm](https://mitjafelicijan.fra1.digitaloceanspaces.com/video/Building the Simplest Possible Linux System - Rob Landley.webm) 367 - [Building the Simplest Possible Linux System - Rob Landley.webm](https://mitjafelicijan.fra1.digitaloceanspaces.com/video/Building the Simplest Possible Linux System - Rob Landley.webm)
366 - [Go webserver, HTMX Integration, Template Fragments.webm](https://mitjafelicijan.fra1.digitaloceanspaces.com/video/Go webserver, HTMX Integration, Template Fragments.webm) 368 - [Go webserver, HTMX Integration, Template Fragments.webm](https://mitjafelicijan.fra1.digitaloceanspaces.com/video/Go webserver, HTMX Integration, Template Fragments.webm)