aboutsummaryrefslogtreecommitdiff
path: root/yapyap
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2022-01-29 08:01:26 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2022-01-29 08:01:26 +0100
commit496e9d847185d7be88ff865e1b9ff55f91ae7d3d (patch)
treed5a820704628bde9b6111101041d8270af2d0081 /yapyap
parent29231c17524aa55ff5915b207d1e697c709b7073 (diff)
downloadmitjafelicijan.com-496e9d847185d7be88ff865e1b9ff55f91ae7d3d.tar.gz
Added updates to YapYap
Diffstat (limited to 'yapyap')
-rw-r--r--yapyap/feed.yaml22
-rw-r--r--yapyap/template.xml6
-rw-r--r--yapyap/theme.xsl4
-rw-r--r--yapyap/yapyap.xml38
4 files changed, 62 insertions, 8 deletions
diff --git a/yapyap/feed.yaml b/yapyap/feed.yaml
index a347a92..5470cab 100644
--- a/yapyap/feed.yaml
+++ b/yapyap/feed.yaml
@@ -5,6 +5,26 @@ feed:
5 5
6posts: 6posts:
7 7
8 - text: My first post! It has to start somewhere! 8 - text: |
9 Containers are wonderful, but they come with a lot of baggage. And because they are in their nature layered, the images require quite a lot of space and also a lot of additional software to handle them. They are not as lightweight as they seem, and many popular images require 500 MB plus disk space.
10 The idea of running this as PID 1 would result in a significantly smaller footprint, as we will see later in the post.
11 https://mitjafelicijan.com/running-golang-application-as-pid1.html
9 date: Sat, 29 Jan 2022 08:00:00 EST 12 date: Sat, 29 Jan 2022 08:00:00 EST
13 image: /assets/yapyap/pid1.jpg
14
15 - text: |
16 A while ago I bought a small eInk display Inky pHAT and I have a bunch of Raspberry Pi's Zero lying around that I really need to use.
17 A cool, simple evening project using some of the parts I had lying at home.
18 https://mitjafelicijan.com/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html
19 date: Sat, 29 Jan 2022 08:00:00 EST
20 image: /assets/world-clock/world-clock.jpg
21
22 - text: |
23 A simple microblogging platform that you host yourself and is a valid RSS feed.
24 Done with XSL (The Extensible Stylesheet Language).
25 https://git.mitjafelicijan.com/yapyap.git/
26 date: Sat, 29 Jan 2022 08:00:00 EST
27
28 - text: It has to start somewhere! 🖖
29 date: Fri, 28 Jan 2022 08:00:00 EST
10 image: /assets/yapyap/hello.png 30 image: /assets/yapyap/hello.png
diff --git a/yapyap/template.xml b/yapyap/template.xml
index e90cabb..04bfcab 100644
--- a/yapyap/template.xml
+++ b/yapyap/template.xml
@@ -10,9 +10,9 @@
10 10
11 {{ range $i, $e := .Posts }} 11 {{ range $i, $e := .Posts }}
12 <item> 12 <item>
13 13
14 <guid>aaa{{ $i }}</guid> 14 <guid>{{ $i }}</guid>
15 <description>{{ .Text }}</description> 15 <description>{{ .Text | nl2br }}</description>
16 <pubDate>{{ .Date }}</pubDate> 16 <pubDate>{{ .Date }}</pubDate>
17 17
18 {{if .Image }} 18 {{if .Image }}
diff --git a/yapyap/theme.xsl b/yapyap/theme.xsl
index b2fefc0..387eb52 100644
--- a/yapyap/theme.xsl
+++ b/yapyap/theme.xsl
@@ -134,7 +134,7 @@
134 <h1><xsl:value-of select="rss/channel/title" /></h1> 134 <h1><xsl:value-of select="rss/channel/title" /></h1>
135 <p> 135 <p>
136 <a target="_blank"> 136 <a target="_blank">
137 137
138 <xsl:attribute name="href"> 138 <xsl:attribute name="href">
139 <xsl:value-of select="rss/channel/link" /> 139 <xsl:value-of select="rss/channel/link" />
140 </xsl:attribute> 140 </xsl:attribute>
@@ -165,7 +165,7 @@
165 165
166 <section> 166 <section>
167 <xsl:if test="description"> 167 <xsl:if test="description">
168 <p><xsl:value-of select="description" /></p> 168 <p><xsl:copy-of select="description" /></p>
169 </xsl:if> 169 </xsl:if>
170 170
171 <xsl:if test="pubDate"> 171 <xsl:if test="pubDate">
diff --git a/yapyap/yapyap.xml b/yapyap/yapyap.xml
index bbde2f3..b80e14d 100644
--- a/yapyap/yapyap.xml
+++ b/yapyap/yapyap.xml
@@ -10,12 +10,46 @@
10 10
11 11
12 <item> 12 <item>
13
14 <guid>0</guid>
15 <description>Containers are wonderful, but they come with a lot of baggage. And because they are in their nature layered, the images require quite a lot of space and also a lot of additional software to handle them. They are not as lightweight as they seem, and many popular images require 500 MB plus disk space.<br/><br/>The idea of running this as PID 1 would result in a significantly smaller footprint, as we will see later in the post.<br/><br/>https://mitjafelicijan.com/running-golang-application-as-pid1.html</description>
16 <pubDate>Sat, 29 Jan 2022 08:00:00 EST</pubDate>
17
18
19 <enclosure url="/assets/yapyap/pid1.jpg" type="image/jpeg" />
13 20
14 <guid>aaa0</guid> 21
15 <description>My first post! It has to start somewhere!</description> 22 </item>
23
24 <item>
25
26 <guid>1</guid>
27 <description>A while ago I bought a small eInk display Inky pHAT and I have a bunch of Raspberry Pi's Zero lying around that I really need to use.<br/><br/>A cool, simple evening project using some of the parts I had lying at home.<br/><br/>https://mitjafelicijan.com/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html</description>
16 <pubDate>Sat, 29 Jan 2022 08:00:00 EST</pubDate> 28 <pubDate>Sat, 29 Jan 2022 08:00:00 EST</pubDate>
17 29
18 30
31 <enclosure url="/assets/world-clock/world-clock.jpg" type="image/jpeg" />
32
33
34 </item>
35
36 <item>
37
38 <guid>2</guid>
39 <description>A simple microblogging platform that you host yourself and is a valid RSS feed.<br/><br/>Done with XSL (The Extensible Stylesheet Language).<br/><br/>https://git.mitjafelicijan.com/yapyap.git/</description>
40 <pubDate>Sat, 29 Jan 2022 08:00:00 EST</pubDate>
41
42
43
44 </item>
45
46 <item>
47
48 <guid>3</guid>
49 <description>It has to start somewhere! 🖖</description>
50 <pubDate>Fri, 28 Jan 2022 08:00:00 EST</pubDate>
51
52
19 <enclosure url="/assets/yapyap/hello.png" type="image/jpeg" /> 53 <enclosure url="/assets/yapyap/hello.png" type="image/jpeg" />
20 54
21 55