Commit b083464e authored by PoroCYon's avatar PoroCYon

fix docroot stuff

parent cca222b3
......@@ -59,12 +59,16 @@ out/feed/%.xml: obj/%.xml.pre obj/%.list.xml tpl/%.xml.post
@if ! [ -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
cat $^ > "$@"
# the input file is first used as template, so variables in the file are
# replaced by the preprocessor as well!
out/blog.html: src/blog.md obj/postlist.html $(TPL_SHARED) tpl/template-blog.html
$(PANDOC) $(PDFLAGS) -f $(PDMARKDOWN) --template=tpl/template-blog.html -A obj/postlist.html -t html "$<" -o "$@"
$(PANDOC) $(PDFLAGS) -f html -t plain --template="$<" /dev/null | \
$(PANDOC) $(PDFLAGS) -f $(PDMARKDOWN) --template=tpl/template-blog.html -A obj/postlist.html -t html -o "$@"
out/%.html: src/%.md $(TPL_SHARED) tpl/template.html
@if ! [ -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
$(PANDOC) $(PDFLAGS) -f $(PDMARKDOWN) --template=tpl/template.html -t html "$<" -o "$@"
$(PANDOC) $(PDFLAGS) -f html -t plain --template="$<" /dev/null | \
$(PANDOC) $(PDFLAGS) -f $(PDMARKDOWN) --template=tpl/template.html -t html -o "$@"
out/stc/style-%.css: sty/style-%.scss $(STY_SHARED) sty/solarized-%.scss out/stc/
$(SCSSC) -t compact -M "$<" "$@"
......
......@@ -10,15 +10,15 @@ title: home
* [Reddit](https://reddit.com/user/PoroCYon)
* [TCF](https://forums.terraria.org/index.php?members/.479/)
* 'PoroCYon' on a bunch of IRC networks, and 'pcy' on smaller ones
* [PGP key](/pcy.gpg.asc)
* [PGP key]($docroot$/pcy.gpg.asc)
## useful stuff hosted here
* [undertale.rawr.ws mirror](/undertale)
* [undertale.rawr.ws mirror]($docroot$/undertale)
## other stuff that's here as well
* [I maintain a list of sites blocked by HvU](/hvu.html)
* [I maintain a list of sites blocked by HvU]($docroot$/hvu.html)
## more stuff, not hosted here
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment