diff options
-rw-r--r-- | Makefile | 6 | ||||
-rwxr-xr-x | compile_emoji_sedstring.sh | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,5 @@ RSYNC_DESTINATION=root@eug-vs.xyz:/var/www/website +BROWSER=brave MARKDOWN=gfm+emoji STYLESHEET=/style.css @@ -18,7 +19,10 @@ all: $(HTML) %.html: %.md @echo $@ - @cat $< | sed "$(LINK_SEDSTRING) $(EMOJI_SEDSTRING)" | pandoc $(PANDOC_ARGS) > $@ + @sed "$(LINK_SEDSTRING) $(EMOJI_SEDSTRING)" $< | pandoc $(PANDOC_ARGS) > $@ + +open: $(HTML) + $(BROWSER) index.html deploy: $(HTML) rsync -zarv --exclude=".git" --exclude="*.md" . $(RSYNC_DESTINATION) diff --git a/compile_emoji_sedstring.sh b/compile_emoji_sedstring.sh index 2a71715..ef22247 100755 --- a/compile_emoji_sedstring.sh +++ b/compile_emoji_sedstring.sh @@ -3,5 +3,5 @@ cd public/emoji; for EMOJI in *; do BASENAME=${EMOJI%.*} - echo "s|:${BASENAME}:|<img src=\\\"/public/emoji/${EMOJI}\\\" height=\\\"24px\\\" style=\\\"margin-bottom: -4px\\\">|g; " + echo "s|:${BASENAME}:|<img src=\\\"public/emoji/${EMOJI}\\\" height=\\\"24px\\\" style=\\\"margin-bottom: -4px\\\">|g; " done |