- commit
- 33a200a7db70a94387b3dfa3372fdc7f7f006b37
- parent
- c9a802d970b0a7344f479630920862d3ff8ac496
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-11-03 12:03
no longer include content in feed - feed is much smaller - build can be simplified
Diffstat
M | .gitignore | 1 | - |
M | Makefile | 5 | +---- |
M | _templates/feed.xml | 1 | - |
M | posts.sh | 5 | ----- |
4 files changed, 1 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
@@ -3,5 +3,4 @@ build/**/*.md 3 3 build/**/*.css 4 4 build/feed.xml 5 5 _content/index.yml6 -1 _content/feed.yml7 6 _content/**/*.html
diff --git a/Makefile b/Makefile
@@ -39,10 +39,7 @@ build/%.gif: _content/%.gif 39 39 _content/index.yml: _content/posts/*/index.yml posts.sh $(MD_HTML) 40 40 ./posts.sh > $@ 41 4142 -1 _content/feed.yml: _content/posts/*/index.yml posts.sh $(MD_HTML)43 -1 ./posts.sh -b > $@44 -145 -1 build/feed.xml: _content/feed.yml _templates/feed.xml build.py-1 42 build/feed.xml: _content/index.yml _templates/feed.xml build.py 46 43 @mkdir -p $$(dirname $@) 47 44 python build.py _templates/feed.xml /dev/null _content/feed.yml > $@ 48 45
diff --git a/_templates/feed.xml b/_templates/feed.xml
@@ -14,7 +14,6 @@ 14 14 <link href="https://blog.ce9e.org{{url}}"/> 15 15 <id>https://blog.ce9e.org{{url}}</id> 16 16 <updated>{{date}}T00:00:00Z</updated>17 -1 <content type="html">{{body}}</content>18 17 </entry> 19 18 {{/posts}} 20 19 {{/blog}}
diff --git a/posts.sh b/posts.sh
@@ -5,13 +5,8 @@ echo " posts:" 5 5 6 6 ls _content/posts | tac | while read l; do 7 7 yml="_content/posts/$l/index.yml"8 -1 body="_content/posts/$l/index.html"9 8 echo " - url: /posts/$l/" 10 9 echo " title: $(grep 'title:' "$yml" | sed 's/title: //')" 11 10 echo " date: $(grep 'date:' "$yml" | sed 's/date: //')" 12 11 echo " tags: $(grep 'tags:' "$yml" | sed 's/tags: //')"13 -1 if [ "$1" = '-b' ]; then14 -1 echo " body: |"15 -1 sed 's/^/ /g' "$body"16 -1 fi17 12 done