summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitignore3
-rw-r--r--Makefile24
-rw-r--r--deps.mk139
-rwxr-xr-xmkdeps.sh60
-rw-r--r--src/content/blog/categories.adoc1
-rw-r--r--src/content/pastebins/categories.adoc1
-rw-r--r--src/content/podcasts/categories.adoc1
-rw-r--r--src/content/screencasts/categories.adoc1
-rw-r--r--src/content/tils/categories.adoc1
9 files changed, 175 insertions, 56 deletions
diff --git a/.gitignore b/.gitignore
index 99f41e7..c7f4b9e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,9 @@
sortdata.txt
categories.txt
categories.xml
+categories.htmlheader
+categories.htmlfooter
+categories.htmllisting
index.htmlheader
index.htmlfooter
index.htmllisting
diff --git a/Makefile b/Makefile
index bd12b3a..7aea2f9 100644
--- a/Makefile
+++ b/Makefile
@@ -75,7 +75,8 @@ all:
include deps.mk
-sources.adoc = $(articles.adoc) $(indexes.adoc) $(pages.adoc)
+listings.adoc = $(categories.adoc) $(indexes.adoc)
+sources.adoc = $(articles.adoc) $(listings.adoc) $(pages.adoc)
sources.htmlbody = $(sources.adoc:.adoc=.htmlbody)
sources.html = $(sources.adoc:.adoc=.html)
sources.snippets = $(sources.adoc:.adoc=.snippets)
@@ -87,12 +88,13 @@ articles.indexentry = $(articles.adoc:.adoc=.indexentry)
articles.feedentry = $(articles.adoc:.adoc=.feedentry)
articles.sortdata = $(articles.adoc:.adoc=.sortdata)
articles.categorydata = $(articles.adoc:.adoc=.categorydata)
-indexes.htmlheader = $(indexes.adoc:.adoc=.htmlheader)
-indexes.htmlfooter = $(indexes.adoc:.adoc=.htmlfooter)
-indexes.htmllisting = $(indexes.adoc:.adoc=.htmllisting)
-indexes.html = $(indexes.adoc:.adoc=.html)
-categories.xml = $(categories.txt:.txt=.xml)
-categories.xml.gz = $(categories.txt:.txt=.xml.gz)
+listings.htmlheader = $(listings.adoc:.adoc=.htmlheader)
+listings.htmlfooter = $(listings.adoc:.adoc=.htmlfooter)
+listings.htmllisting = $(listings.adoc:.adoc=.htmllisting)
+listings.html = $(listings.adoc:.adoc=.html)
+categories.txt = $(categories.adoc:.adoc=.txt)
+categories.xml = $(categories.adoc:.adoc=.xml)
+categories.xml.gz = $(categories.adoc:.adoc=.xml.gz)
sources = \
$(sources.adoc) \
@@ -156,9 +158,9 @@ derived-assets = \
src/dyn.conf \
src/base.conf \
src/global.conf \
- $(indexes.htmlheader) \
- $(indexes.htmlfooter) \
- $(indexes.htmllisting) \
+ $(listings.htmlheader) \
+ $(listings.htmlfooter) \
+ $(listings.htmllisting) \
$(articles.indexentry) \
$(articles.feedentry) \
$(articles.sortdata) \
@@ -218,7 +220,7 @@ src/base.conf: src/dyn.conf src/static.conf
src/global.conf: src/base.conf
mkwb conf -G src/base.conf > $@
-$(indexes.html):
+$(listings.html):
cat $*.htmlheader $*.htmllisting $*.htmlbody $*.htmlfooter > $@
$(categories.txt):
diff --git a/deps.mk b/deps.mk
index eadf1ca..76dcd8c 100644
--- a/deps.mk
+++ b/deps.mk
@@ -68,6 +68,13 @@ articles.adoc = \
src/content/tils/2021/07/23/git-tls-gpg.adoc \
src/content/tils/2021/08/11/js-bigint-reviver.adoc \
+categories.adoc = \
+ src/content/blog/categories.adoc \
+ src/content/pastebins/categories.adoc \
+ src/content/podcasts/categories.adoc \
+ src/content/screencasts/categories.adoc \
+ src/content/tils/categories.adoc \
+
indexes.adoc = \
src/content/blog/index.adoc \
src/content/pastebins/index.adoc \
@@ -75,13 +82,6 @@ indexes.adoc = \
src/content/screencasts/index.adoc \
src/content/tils/index.adoc \
-categories.txt = \
- src/content/blog/categories.txt \
- src/content/pastebins/categories.txt \
- src/content/podcasts/categories.txt \
- src/content/screencasts/categories.txt \
- src/content/tils/categories.txt \
-
feeds.xml = \
src/content/blog/feed.xml \
src/content/pastebins/feed.xml \
@@ -183,6 +183,11 @@ src/content/pastebins/index.html.gz: src/content/pastebins/index.html
src/content/podcasts/index.html.gz: src/content/podcasts/index.html
src/content/screencasts/index.html.gz: src/content/screencasts/index.html
src/content/tils/index.html.gz: src/content/tils/index.html
+src/content/blog/categories.html.gz: src/content/blog/categories.html
+src/content/pastebins/categories.html.gz: src/content/pastebins/categories.html
+src/content/podcasts/categories.html.gz: src/content/podcasts/categories.html
+src/content/screencasts/categories.html.gz: src/content/screencasts/categories.html
+src/content/tils/categories.html.gz: src/content/tils/categories.html
src/content/about.snippets.gz: src/content/about.snippets
src/content/index.snippets.gz: src/content/index.snippets
src/content/blog/2018/07/17/guix-nixos.snippets.gz: src/content/blog/2018/07/17/guix-nixos.snippets
@@ -254,6 +259,11 @@ src/content/pastebins/index.snippets.gz: src/content/pastebins/index.snippets
src/content/podcasts/index.snippets.gz: src/content/podcasts/index.snippets
src/content/screencasts/index.snippets.gz: src/content/screencasts/index.snippets
src/content/tils/index.snippets.gz: src/content/tils/index.snippets
+src/content/blog/categories.snippets.gz: src/content/blog/categories.snippets
+src/content/pastebins/categories.snippets.gz: src/content/pastebins/categories.snippets
+src/content/podcasts/categories.snippets.gz: src/content/podcasts/categories.snippets
+src/content/screencasts/categories.snippets.gz: src/content/screencasts/categories.snippets
+src/content/tils/categories.snippets.gz: src/content/tils/categories.snippets
src/content/blog/categories.xml.gz: src/content/blog/categories.xml
src/content/pastebins/categories.xml.gz: src/content/pastebins/categories.xml
src/content/podcasts/categories.xml.gz: src/content/podcasts/categories.xml
@@ -336,6 +346,11 @@ src/content/pastebins/index.htmlbody src/content/pastebins/index.snippets src/co
src/content/podcasts/index.htmlbody src/content/podcasts/index.snippets src/content/podcasts/index.conf: src/content/podcasts/index.adoc
src/content/screencasts/index.htmlbody src/content/screencasts/index.snippets src/content/screencasts/index.conf: src/content/screencasts/index.adoc
src/content/tils/index.htmlbody src/content/tils/index.snippets src/content/tils/index.conf: src/content/tils/index.adoc
+src/content/blog/categories.htmlbody src/content/blog/categories.snippets src/content/blog/categories.conf: src/content/blog/categories.adoc
+src/content/pastebins/categories.htmlbody src/content/pastebins/categories.snippets src/content/pastebins/categories.conf: src/content/pastebins/categories.adoc
+src/content/podcasts/categories.htmlbody src/content/podcasts/categories.snippets src/content/podcasts/categories.conf: src/content/podcasts/categories.adoc
+src/content/screencasts/categories.htmlbody src/content/screencasts/categories.snippets src/content/screencasts/categories.conf: src/content/screencasts/categories.adoc
+src/content/tils/categories.htmlbody src/content/tils/categories.snippets src/content/tils/categories.conf: src/content/tils/categories.adoc
src/content/about.html: src/content/about.conf src/content/about.htmlbody
src/content/index.html: src/content/index.conf src/content/index.htmlbody
src/content/blog/2018/07/17/guix-nixos.html: src/content/blog/2018/07/17/guix-nixos.conf src/content/blog/2018/07/17/guix-nixos.htmlbody
@@ -407,6 +422,11 @@ src/content/pastebins/index.html: src/content/pastebins/index.conf src/content/p
src/content/podcasts/index.html: src/content/podcasts/index.conf src/content/podcasts/index.htmlbody
src/content/screencasts/index.html: src/content/screencasts/index.conf src/content/screencasts/index.htmlbody
src/content/tils/index.html: src/content/tils/index.conf src/content/tils/index.htmlbody
+src/content/blog/categories.html: src/content/blog/categories.conf src/content/blog/categories.htmlbody
+src/content/pastebins/categories.html: src/content/pastebins/categories.conf src/content/pastebins/categories.htmlbody
+src/content/podcasts/categories.html: src/content/podcasts/categories.conf src/content/podcasts/categories.htmlbody
+src/content/screencasts/categories.html: src/content/screencasts/categories.conf src/content/screencasts/categories.htmlbody
+src/content/tils/categories.html: src/content/tils/categories.conf src/content/tils/categories.htmlbody
src/content/about.updatedat-check: src/content/about.conf
src/content/index.updatedat-check: src/content/index.conf
@@ -479,6 +499,11 @@ src/content/pastebins/index.updatedat-check: src/content/pastebins/index.conf
src/content/podcasts/index.updatedat-check: src/content/podcasts/index.conf
src/content/screencasts/index.updatedat-check: src/content/screencasts/index.conf
src/content/tils/index.updatedat-check: src/content/tils/index.conf
+src/content/blog/categories.updatedat-check: src/content/blog/categories.conf
+src/content/pastebins/categories.updatedat-check: src/content/pastebins/categories.conf
+src/content/podcasts/categories.updatedat-check: src/content/podcasts/categories.conf
+src/content/screencasts/categories.updatedat-check: src/content/screencasts/categories.conf
+src/content/tils/categories.updatedat-check: src/content/tils/categories.conf
src/content/about.links-internal-check: src/content/about.links
src/content/index.links-internal-check: src/content/index.links
src/content/blog/2018/07/17/guix-nixos.links-internal-check: src/content/blog/2018/07/17/guix-nixos.links
@@ -550,6 +575,11 @@ src/content/pastebins/index.links-internal-check: src/content/pastebins/index.li
src/content/podcasts/index.links-internal-check: src/content/podcasts/index.links
src/content/screencasts/index.links-internal-check: src/content/screencasts/index.links
src/content/tils/index.links-internal-check: src/content/tils/index.links
+src/content/blog/categories.links-internal-check: src/content/blog/categories.links
+src/content/pastebins/categories.links-internal-check: src/content/pastebins/categories.links
+src/content/podcasts/categories.links-internal-check: src/content/podcasts/categories.links
+src/content/screencasts/categories.links-internal-check: src/content/screencasts/categories.links
+src/content/tils/categories.links-internal-check: src/content/tils/categories.links
src/content/about.caslinks: src/content/about.links
src/content/index.caslinks: src/content/index.links
src/content/blog/2018/07/17/guix-nixos.caslinks: src/content/blog/2018/07/17/guix-nixos.links
@@ -621,6 +651,11 @@ src/content/pastebins/index.caslinks: src/content/pastebins/index.links
src/content/podcasts/index.caslinks: src/content/podcasts/index.links
src/content/screencasts/index.caslinks: src/content/screencasts/index.links
src/content/tils/index.caslinks: src/content/tils/index.links
+src/content/blog/categories.caslinks: src/content/blog/categories.links
+src/content/pastebins/categories.caslinks: src/content/pastebins/categories.links
+src/content/podcasts/categories.caslinks: src/content/podcasts/categories.links
+src/content/screencasts/categories.caslinks: src/content/screencasts/categories.links
+src/content/tils/categories.caslinks: src/content/tils/categories.links
src/content/blog/2018/07/17/guix-nixos.feedentry: src/content/blog/2018/07/17/guix-nixos.conf src/content/blog/2018/07/17/guix-nixos.htmlbody
src/content/blog/2018/08/01/npm-ci-reproducibility.feedentry: src/content/blog/2018/08/01/npm-ci-reproducibility.conf src/content/blog/2018/08/01/npm-ci-reproducibility.htmlbody
@@ -820,16 +855,31 @@ src/content/pastebins/index.htmlheader src/content/pastebins/index.htmlfooter: s
src/content/podcasts/index.htmlheader src/content/podcasts/index.htmlfooter: src/content/podcasts/index.conf
src/content/screencasts/index.htmlheader src/content/screencasts/index.htmlfooter: src/content/screencasts/index.conf
src/content/tils/index.htmlheader src/content/tils/index.htmlfooter: src/content/tils/index.conf
+src/content/blog/categories.htmlheader src/content/blog/categories.htmlfooter: src/content/blog/categories.conf
+src/content/pastebins/categories.htmlheader src/content/pastebins/categories.htmlfooter: src/content/pastebins/categories.conf
+src/content/podcasts/categories.htmlheader src/content/podcasts/categories.htmlfooter: src/content/podcasts/categories.conf
+src/content/screencasts/categories.htmlheader src/content/screencasts/categories.htmlfooter: src/content/screencasts/categories.conf
+src/content/tils/categories.htmlheader src/content/tils/categories.htmlfooter: src/content/tils/categories.conf
src/content/blog/index.html: src/content/blog/index.htmlheader src/content/blog/index.htmlfooter
src/content/pastebins/index.html: src/content/pastebins/index.htmlheader src/content/pastebins/index.htmlfooter
src/content/podcasts/index.html: src/content/podcasts/index.htmlheader src/content/podcasts/index.htmlfooter
src/content/screencasts/index.html: src/content/screencasts/index.htmlheader src/content/screencasts/index.htmlfooter
src/content/tils/index.html: src/content/tils/index.htmlheader src/content/tils/index.htmlfooter
+src/content/blog/categories.html: src/content/blog/categories.htmlheader src/content/blog/categories.htmlfooter
+src/content/pastebins/categories.html: src/content/pastebins/categories.htmlheader src/content/pastebins/categories.htmlfooter
+src/content/podcasts/categories.html: src/content/podcasts/categories.htmlheader src/content/podcasts/categories.htmlfooter
+src/content/screencasts/categories.html: src/content/screencasts/categories.htmlheader src/content/screencasts/categories.htmlfooter
+src/content/tils/categories.html: src/content/tils/categories.htmlheader src/content/tils/categories.htmlfooter
src/content/blog/index.html: src/content/blog/index.htmllisting src/content/blog/index.htmlbody
src/content/pastebins/index.html: src/content/pastebins/index.htmllisting src/content/pastebins/index.htmlbody
src/content/podcasts/index.html: src/content/podcasts/index.htmllisting src/content/podcasts/index.htmlbody
src/content/screencasts/index.html: src/content/screencasts/index.htmllisting src/content/screencasts/index.htmlbody
src/content/tils/index.html: src/content/tils/index.htmllisting src/content/tils/index.htmlbody
+src/content/blog/categories.html: src/content/blog/categories.htmllisting src/content/blog/categories.htmlbody
+src/content/pastebins/categories.html: src/content/pastebins/categories.htmllisting src/content/pastebins/categories.htmlbody
+src/content/podcasts/categories.html: src/content/podcasts/categories.htmllisting src/content/podcasts/categories.htmlbody
+src/content/screencasts/categories.html: src/content/screencasts/categories.htmllisting src/content/screencasts/categories.htmlbody
+src/content/tils/categories.html: src/content/tils/categories.htmllisting src/content/tils/categories.htmlbody
@@ -859,11 +909,18 @@ articles.blog.categorydata = $(articles.blog.adoc:.adoc=.categorydata)
src/content/blog/sortdata.txt: deps.mk
printf '%s\n' $(articles.blog.sortdata) > $@
-src/content/blog/categories.txt src/content/blog/feed.xml src/content/blog/index.htmllisting: src/content/blog/sortdata.txt $(articles.blog.sortdata)
-src/content/blog/index.htmllisting: $(articles.blog.indexentry)
-src/content/blog/categories.txt: $(articles.blog.categorydata)
-src/content/blog/categories.xml: src/content/blog/categories.txt
+src/content/blog/feed.xml: src/content/blog/sortdata.txt
+src/content/blog/feed.xml: $(articles.blog.sortdata)
+src/content/blog/index.htmllisting: src/content/blog/sortdata.txt
+src/content/blog/index.htmllisting: $(articles.blog.sortdata)
+src/content/blog/categories.htmllisting: src/content/blog/sortdata.txt
+src/content/blog/categories.htmllisting: $(articles.blog.sortdata)
+src/content/blog/categories.txt: src/content/blog/sortdata.txt
+src/content/blog/categories.txt: $(articles.blog.sortdata)
+src/content/blog/index.htmllisting src/content/blog/categories.htmllisting: $(articles.blog.indexentry)
+src/content/blog/categories.htmllisting src/content/blog/categories.txt: $(articles.blog.categorydata)
src/content/blog/categories.txt src/content/blog/feed.xml: $(articles.blog.feedentry)
+src/content/blog/categories.xml: src/content/blog/categories.txt
articles.pastebins.adoc = \
@@ -897,11 +954,18 @@ articles.pastebins.categorydata = $(articles.pastebins.adoc:.adoc=.categorydata)
src/content/pastebins/sortdata.txt: deps.mk
printf '%s\n' $(articles.pastebins.sortdata) > $@
-src/content/pastebins/categories.txt src/content/pastebins/feed.xml src/content/pastebins/index.htmllisting: src/content/pastebins/sortdata.txt $(articles.pastebins.sortdata)
-src/content/pastebins/index.htmllisting: $(articles.pastebins.indexentry)
-src/content/pastebins/categories.txt: $(articles.pastebins.categorydata)
-src/content/pastebins/categories.xml: src/content/pastebins/categories.txt
+src/content/pastebins/feed.xml: src/content/pastebins/sortdata.txt
+src/content/pastebins/feed.xml: $(articles.pastebins.sortdata)
+src/content/pastebins/index.htmllisting: src/content/pastebins/sortdata.txt
+src/content/pastebins/index.htmllisting: $(articles.pastebins.sortdata)
+src/content/pastebins/categories.htmllisting: src/content/pastebins/sortdata.txt
+src/content/pastebins/categories.htmllisting: $(articles.pastebins.sortdata)
+src/content/pastebins/categories.txt: src/content/pastebins/sortdata.txt
+src/content/pastebins/categories.txt: $(articles.pastebins.sortdata)
+src/content/pastebins/index.htmllisting src/content/pastebins/categories.htmllisting: $(articles.pastebins.indexentry)
+src/content/pastebins/categories.htmllisting src/content/pastebins/categories.txt: $(articles.pastebins.categorydata)
src/content/pastebins/categories.txt src/content/pastebins/feed.xml: $(articles.pastebins.feedentry)
+src/content/pastebins/categories.xml: src/content/pastebins/categories.txt
articles.podcasts.adoc = \
@@ -914,11 +978,18 @@ articles.podcasts.categorydata = $(articles.podcasts.adoc:.adoc=.categorydata)
src/content/podcasts/sortdata.txt: deps.mk
printf '%s\n' $(articles.podcasts.sortdata) > $@
-src/content/podcasts/categories.txt src/content/podcasts/feed.xml src/content/podcasts/index.htmllisting: src/content/podcasts/sortdata.txt $(articles.podcasts.sortdata)
-src/content/podcasts/index.htmllisting: $(articles.podcasts.indexentry)
-src/content/podcasts/categories.txt: $(articles.podcasts.categorydata)
-src/content/podcasts/categories.xml: src/content/podcasts/categories.txt
+src/content/podcasts/feed.xml: src/content/podcasts/sortdata.txt
+src/content/podcasts/feed.xml: $(articles.podcasts.sortdata)
+src/content/podcasts/index.htmllisting: src/content/podcasts/sortdata.txt
+src/content/podcasts/index.htmllisting: $(articles.podcasts.sortdata)
+src/content/podcasts/categories.htmllisting: src/content/podcasts/sortdata.txt
+src/content/podcasts/categories.htmllisting: $(articles.podcasts.sortdata)
+src/content/podcasts/categories.txt: src/content/podcasts/sortdata.txt
+src/content/podcasts/categories.txt: $(articles.podcasts.sortdata)
+src/content/podcasts/index.htmllisting src/content/podcasts/categories.htmllisting: $(articles.podcasts.indexentry)
+src/content/podcasts/categories.htmllisting src/content/podcasts/categories.txt: $(articles.podcasts.categorydata)
src/content/podcasts/categories.txt src/content/podcasts/feed.xml: $(articles.podcasts.feedentry)
+src/content/podcasts/categories.xml: src/content/podcasts/categories.txt
articles.screencasts.adoc = \
@@ -931,11 +1002,18 @@ articles.screencasts.categorydata = $(articles.screencasts.adoc:.adoc=.categoryd
src/content/screencasts/sortdata.txt: deps.mk
printf '%s\n' $(articles.screencasts.sortdata) > $@
-src/content/screencasts/categories.txt src/content/screencasts/feed.xml src/content/screencasts/index.htmllisting: src/content/screencasts/sortdata.txt $(articles.screencasts.sortdata)
-src/content/screencasts/index.htmllisting: $(articles.screencasts.indexentry)
-src/content/screencasts/categories.txt: $(articles.screencasts.categorydata)
-src/content/screencasts/categories.xml: src/content/screencasts/categories.txt
+src/content/screencasts/feed.xml: src/content/screencasts/sortdata.txt
+src/content/screencasts/feed.xml: $(articles.screencasts.sortdata)
+src/content/screencasts/index.htmllisting: src/content/screencasts/sortdata.txt
+src/content/screencasts/index.htmllisting: $(articles.screencasts.sortdata)
+src/content/screencasts/categories.htmllisting: src/content/screencasts/sortdata.txt
+src/content/screencasts/categories.htmllisting: $(articles.screencasts.sortdata)
+src/content/screencasts/categories.txt: src/content/screencasts/sortdata.txt
+src/content/screencasts/categories.txt: $(articles.screencasts.sortdata)
+src/content/screencasts/index.htmllisting src/content/screencasts/categories.htmllisting: $(articles.screencasts.indexentry)
+src/content/screencasts/categories.htmllisting src/content/screencasts/categories.txt: $(articles.screencasts.categorydata)
src/content/screencasts/categories.txt src/content/screencasts/feed.xml: $(articles.screencasts.feedentry)
+src/content/screencasts/categories.xml: src/content/screencasts/categories.txt
articles.tils.adoc = \
@@ -970,8 +1048,15 @@ articles.tils.categorydata = $(articles.tils.adoc:.adoc=.categorydata)
src/content/tils/sortdata.txt: deps.mk
printf '%s\n' $(articles.tils.sortdata) > $@
-src/content/tils/categories.txt src/content/tils/feed.xml src/content/tils/index.htmllisting: src/content/tils/sortdata.txt $(articles.tils.sortdata)
-src/content/tils/index.htmllisting: $(articles.tils.indexentry)
-src/content/tils/categories.txt: $(articles.tils.categorydata)
-src/content/tils/categories.xml: src/content/tils/categories.txt
+src/content/tils/feed.xml: src/content/tils/sortdata.txt
+src/content/tils/feed.xml: $(articles.tils.sortdata)
+src/content/tils/index.htmllisting: src/content/tils/sortdata.txt
+src/content/tils/index.htmllisting: $(articles.tils.sortdata)
+src/content/tils/categories.htmllisting: src/content/tils/sortdata.txt
+src/content/tils/categories.htmllisting: $(articles.tils.sortdata)
+src/content/tils/categories.txt: src/content/tils/sortdata.txt
+src/content/tils/categories.txt: $(articles.tils.sortdata)
+src/content/tils/index.htmllisting src/content/tils/categories.htmllisting: $(articles.tils.indexentry)
+src/content/tils/categories.htmllisting src/content/tils/categories.txt: $(articles.tils.categorydata)
src/content/tils/categories.txt src/content/tils/feed.xml: $(articles.tils.feedentry)
+src/content/tils/categories.xml: src/content/tils/categories.txt
diff --git a/mkdeps.sh b/mkdeps.sh
index 19eb448..bb846c8 100755
--- a/mkdeps.sh
+++ b/mkdeps.sh
@@ -20,6 +20,10 @@ indexes() {
find src/collections/*/index.adoc | normalize
}
+categories() {
+ find src/collections/*/categories.adoc | normalize
+}
+
extras() {
find src/content/ -type f \
-name '*.flac' -or \
@@ -27,20 +31,25 @@ extras() {
-name '*.tar.gz'
}
+listings() {
+ indexes
+ categories
+}
+
files() {
pages
articles
- indexes
+ listings
}
-pages | varlist 'pages.adoc'
-articles | varlist 'articles.adoc'
-indexes | varlist 'indexes.adoc'
-indexes | sed 's|/index\.adoc$|/categories.txt|' | varlist 'categories.txt'
-indexes | sed 's|/index\.adoc$|/feed.xml|' | varlist 'feeds.xml'
-find src/content/img/ -name '*.svg' | varlist 'images.svg'
-extras | varlist 'sources.extras'
+pages | varlist 'pages.adoc'
+articles | varlist 'articles.adoc'
+categories | varlist 'categories.adoc'
+indexes | varlist 'indexes.adoc'
+indexes | sed 's|/index\.adoc$|/feed.xml|' | varlist 'feeds.xml'
+find src/content/img/ -name '*.svg' | varlist 'images.svg'
+extras | varlist 'sources.extras'
{
@@ -65,9 +74,9 @@ articles | sed 's/^\(.*\)\.adoc$/\1.sortdata:\t\1.conf/'
articles | sed 's/^\(.*\)\.adoc$/\1.categorydata:\t\1.conf/'
printf '\n'
-indexes | sed 's/^\(.*\)\.adoc$/\1.htmlheader\t\1.htmlfooter:\t\1.conf/'
-indexes | sed 's/^\(.*\)\.adoc$/\1.html:\t\1.htmlheader\t\1.htmlfooter/'
-indexes | sed 's/^\(.*\)\.adoc$/\1.html:\t\1.htmllisting\t\1.htmlbody/'
+listings | sed 's/^\(.*\)\.adoc$/\1.htmlheader\t\1.htmlfooter:\t\1.conf/'
+listings | sed 's/^\(.*\)\.adoc$/\1.html:\t\1.htmlheader\t\1.htmlfooter/'
+listings | sed 's/^\(.*\)\.adoc$/\1.html:\t\1.htmllisting\t\1.htmlbody/'
printf '\n'
for colllink in src/collections/*; do
@@ -86,13 +95,28 @@ for colllink in src/collections/*; do
printf '%s/sortdata.txt:\tdeps.mk\n' "$c"
printf '\tprintf %s $(articles.%s.sortdata) > $@\n\n' "'%s\n'" "$name"
- printf '%s/categories.txt\t%s/feed.xml\t%s/index.htmllisting:' \
- "$c" "$c" "$c"
- printf '\t%s/sortdata.txt\t$(articles.%s.sortdata)\n' "$c" "$name"
+ listings='
+ feed.xml
+ index.htmllisting
+ categories.htmllisting
+ categories.txt
+ '
+ for lst in $listings; do
+ printf '%s/%s:\t%s/sortdata.txt\n' "$c" "$lst" "$c"
+ printf '%s/%s:\t$(articles.%s.sortdata)\n' "$c" "$lst" "$name"
+ done
+
+ printf '%s/index.htmllisting\t' "$c"
+ printf '%s/categories.htmllisting:\t' "$c"
+ printf '$(articles.%s.indexentry)\n' "$name"
+
+ printf '%s/categories.htmllisting\t' "$c"
+ printf '%s/categories.txt:\t' "$c"
+ printf '$(articles.%s.categorydata)\n' "$name"
+
+ printf '%s/categories.txt\t' "$c"
+ printf '%s/feed.xml:\t' "$c"
+ printf '$(articles.%s.feedentry)\n' "$name"
- printf '%s/index.htmllisting:\t$(articles.%s.indexentry)\n' "$c" "$name"
- printf '%s/categories.txt:\t$(articles.%s.categorydata)\n' "$c" "$name"
printf '%s/categories.xml:\t%s/categories.txt\n' "$c" "$c"
- printf '%s/categories.txt\t%s/feed.xml:\t$(articles.%s.feedentry)\n' \
- "$c" "$c" "$name"
done
diff --git a/src/content/blog/categories.adoc b/src/content/blog/categories.adoc
new file mode 100644
index 0000000..f29acda
--- /dev/null
+++ b/src/content/blog/categories.adoc
@@ -0,0 +1 @@
+= Articles by category
diff --git a/src/content/pastebins/categories.adoc b/src/content/pastebins/categories.adoc
new file mode 100644
index 0000000..f29acda
--- /dev/null
+++ b/src/content/pastebins/categories.adoc
@@ -0,0 +1 @@
+= Articles by category
diff --git a/src/content/podcasts/categories.adoc b/src/content/podcasts/categories.adoc
new file mode 100644
index 0000000..f29acda
--- /dev/null
+++ b/src/content/podcasts/categories.adoc
@@ -0,0 +1 @@
+= Articles by category
diff --git a/src/content/screencasts/categories.adoc b/src/content/screencasts/categories.adoc
new file mode 100644
index 0000000..f29acda
--- /dev/null
+++ b/src/content/screencasts/categories.adoc
@@ -0,0 +1 @@
+= Articles by category
diff --git a/src/content/tils/categories.adoc b/src/content/tils/categories.adoc
new file mode 100644
index 0000000..f29acda
--- /dev/null
+++ b/src/content/tils/categories.adoc
@@ -0,0 +1 @@
+= Articles by category