What are you working on? - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
(28-02-2021, 11:36 PM)freem Wrote: I'm curious. What do you do in 50 lines of code? for FILE in *; do cat $header $FILE $footer > $FILE.html; done ?- Compile template files with markdown content (and variables) into html files - Generate an index and feed (atom) file for the posts - Skip non-changed posts/assets from being processed - Generate a "contents" section with headers of the blog post I have another 15LOC shell script which adds a bit more complexity (uses some hooks inside "blog") to add syntax highlighting of code, adds quick-svg-icons and alike. |
|||