This commit is contained in:
Yann Esposito (Yogsototh) 2024-01-20 23:37:16 +01:00
parent 87385bda86
commit ce8c0c0689
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -15,34 +15,33 @@ For every file in ~_src~ directory create an associated generated file in ~_site
For example: For example:
#+begin_src #+begin_src
_src/ ------------> _site/ _src/ ---------------> _site/
index.md -- pandoc --> index.html index.md - md-to-html -> index.html
about.org -- pandoc --> about.html about.org - org-to-html -> about.html
yolo.html ---- cp ----> yolo.html yolo.html - cp -> yolo.html
post/01.md -- pandoc --> post/01.html post/01.md - md-to-html -> post/01.html
post/02.org -- pandoc --> post/02.html post/02.org - md-to-html -> post/02.html
img/logo.png - imgoptim -> img/logo.webp img/logo.png - png-to-webp -> img/logo.webp
css/main.sass - less+min -> css/main.css css/main.sass - sass-to-css -> css/main.css
js/main.js - minimize -> js/main.js js/main.js - js-to-js -> js/main.js
#+end_src #+end_src
Another mechanism is building meta files. Another mechanism is building intermediate files.
#+begin_src #+begin_src
phase 1: phase 1:
_src/ ------------> _site/ _src/ ----------------------> _cache/
post/01.md - md-cache-rss.json -> post/01.rss.json
post/02.org - org-cache-rss.json -> post/02.rss.json
... ...
post/01.md -- pandoc --> post/01.html post/42.org - org-cache-rss.json -> post/42.rss.json
post/02.org -- pandoc --> post/02.html
..
post/42.org -- pandoc --> post/42.html
phase 2: phase 2:
_site/ \ _site/ _cache/ --------------------> _site/
index.md | ... **/*rss.json - all-rss.json-gen -> rss.xml
post/01.html | sitemap.html **/*.kwds - all-kwds-gen -> keywords-index.html
... > rss.xml -> keyword-1.html
post/20.html | archive.html -> keyword-2.html
... | -> ...
post/42.html / -> keyword-n.html
#+end_src #+end_src