summaryrefslogtreecommitdiff
path: root/apps/blagh/jsonfeed.tpl
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2024-04-07 13:25:49 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2024-04-07 13:25:49 +0200
commit9cb56dabb676391a9382731347e8d2b07b9437a5 (patch)
tree95302f041497679202722d9896ec1386bed2d86c /apps/blagh/jsonfeed.tpl
parent0a37a1cc5909e11098963267edc9654b85e7ce16 (diff)
big cleanup
Diffstat (limited to 'apps/blagh/jsonfeed.tpl')
-rw-r--r--apps/blagh/jsonfeed.tpl35
1 files changed, 0 insertions, 35 deletions
diff --git a/apps/blagh/jsonfeed.tpl b/apps/blagh/jsonfeed.tpl
deleted file mode 100644
index fd97ed4..0000000
--- a/apps/blagh/jsonfeed.tpl
+++ /dev/null
@@ -1,35 +0,0 @@
-{
-"version": "https://jsonfeed.org/version/1",
-"title": "%($siteTitle%)",
-"home_page_url": "%($"base_url%)",
-"feed_url": "%($"base_url^$"req_path%)",
-"items": [
-%{
-fn statpost {
- f = $1
- post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
- title=`{read $f/index.md}
- #ifs=() { summary=`{cat $f/index.md | crop_text 1024 ... | $formatter } }
- ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter| sed 's/"/\\"/g' | tr -d '\012' } } }
-}
-%}
-% #for(f in `{get_post_list $blagh_root$blagh_dirs}) {
-%
-% postlist=`{get_post_list $blagh_root$blagh_dirs}
-% postcount=0
-% for(f in $postlist) {
-% statpost $f
- {
- "id": "%($post_uri%)",
- "url": "%($post_uri%)",
- "title": "%($title%)",
- "content_html": "%($summary%)"
- }
-% postcount = `{echo $postcount 1+p | dc}
-% if (! ~ $#postlist $postcount) { echo , }
-% }
-]
-}
-
-% exit
-