diff --git a/.gitignore b/.gitignore index 7248d34..0c3a883 100644 --- a/.gitignore +++ b/.gitignore @@ -226,3 +226,4 @@ ENV/ /site # End of https://www.gitignore.io/api/hugo,node,python,jetbrains +static/src/scss/highlight.css diff --git a/Makefile b/Makefile index 411003a..7889d47 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ build: install rm -rf $(OUTPUT_DIR) rm -rf $(STATIC_BUILD) mkdir -p $(STATIC_BUILD)/js $(STATIC_BUILD)/css + hugo gen chromastyles --style=tango > $(STATIC_SRC)/scss/highlight.css $(NODE_BIN)/browserify $(STATIC_SRC)/js/index.js -o $(STATIC_BUILD)/js/app.js $(NODE_BIN)/node-sass $(STATIC_SRC)/scss/style.scss $(STATIC_BUILD)/css/style.css --source-map-embed cp -r $(BASEDIR)/node_modules/font-awesome/fonts $(STATIC_BUILD)/fonts diff --git a/layouts/shortcodes/gist.html b/layouts/shortcodes/gist.html index c75d0d3..e4f27f3 100644 --- a/layouts/shortcodes/gist.html +++ b/layouts/shortcodes/gist.html @@ -1,3 +1,15 @@ {{ $id := default (.Get 0) .Page.Params.gist }} {{ $data := getJSON "https://api.github.com/gists/" $id }} - + +{{ range $i, $e := $data.files }} +