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:
#+begin_src
_src/ ------------> _site/
index.md -- pandoc --> index.html
about.org -- pandoc --> about.html
yolo.html ---- cp ----> yolo.html
post/01.md -- pandoc --> post/01.html
post/02.org -- pandoc --> post/02.html
img/logo.png - imgoptim -> img/logo.webp
css/main.sass - less+min -> css/main.css
js/main.js - minimize -> js/main.js
_src/ ---------------> _site/
index.md - md-to-html -> index.html
about.org - org-to-html -> about.html
yolo.html - cp -> yolo.html
post/01.md - md-to-html -> post/01.html
post/02.org - md-to-html -> post/02.html
img/logo.png - png-to-webp -> img/logo.webp
css/main.sass - sass-to-css -> css/main.css
js/main.js - js-to-js -> js/main.js
#+end_src
Another mechanism is building meta files.
Another mechanism is building intermediate files.
#+begin_src
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/02.org -- pandoc --> post/02.html
..
post/42.org -- pandoc --> post/42.html
post/42.org - org-cache-rss.json -> post/42.rss.json
phase 2:
_site/ \ _site/
index.md | ...
post/01.html | sitemap.html
... > rss.xml
post/20.html | archive.html
... |
post/42.html /
_cache/ --------------------> _site/
**/*rss.json - all-rss.json-gen -> rss.xml
**/*.kwds - all-kwds-gen -> keywords-index.html
-> keyword-1.html
-> keyword-2.html
-> ...
-> keyword-n.html
#+end_src