Introduce blorg: MVP static site generator
hugo is nice - but it's huge. I've never built a static site generator before and thought the world could use one more - it's not like there's already enough choice out there! No, but seriously. I love hugo and it has all the bells and whistles and you should definitely use that and not this. I just like reinventing the wheel to learn about stuff - and I like the 80/20 rule. This gives like 60% of what I want already and is tiny fraction of hugo in terms of LOC (hugo without it's bazillion dependencies is like 80k+ - this is like 500 and very likely won't ever grow above let's say 5k). Also org mode is awesome and why not use it as a configuration format as well. Let's see where this goes. YOLO.
This commit is contained in:
parent
5e50794af0
commit
30dd2794cf
16 changed files with 760 additions and 33 deletions
|
@ -2,6 +2,6 @@
|
|||
|
||||
for org_file in org/testdata/*.org; do
|
||||
echo $org_file
|
||||
./go-org $org_file html > org/testdata/$(basename $org_file .org).html
|
||||
./go-org $org_file org > org/testdata/$(basename $org_file .org).pretty_org
|
||||
./go-org render $org_file html > org/testdata/$(basename $org_file .org).html
|
||||
./go-org render $org_file org > org/testdata/$(basename $org_file .org).pretty_org
|
||||
done
|
||||
|
|
|
@ -34,7 +34,7 @@ for org_file in $org_files; do
|
|||
<h2><a id='${name}' href='#toc-${name}'>${name}</a></h2>
|
||||
<div class='source'>
|
||||
<pre class='org'>$(sed 's/&/\&/g; s/</\</g; s/>/\>/g;' $org_file)</pre>
|
||||
<div class='html'>$(./go-org $org_file html-chroma)</div>
|
||||
<div class='html'>$(./go-org render $org_file html-chroma)</div>
|
||||
</div>"
|
||||
done
|
||||
|
||||
|
@ -143,7 +143,7 @@ for org_file in $org_files; do
|
|||
<h2><a id='${name}' href='#toc-${name}'>${name}</a></h2>
|
||||
<div class='source'>
|
||||
<div class='html'>$(./gh-pages/goorgeous $org_file)</div>
|
||||
<div class='html'>$(./go-org $org_file html-chroma)</div>
|
||||
<div class='html'>$(./go-org render $org_file html-chroma)</div>
|
||||
</div>"
|
||||
done
|
||||
go_org_vs_goorgeous_examples+="</body></html>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue