From 6c07fd9c8cb6834ebc34ac40b0572456a3f9abae Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 22 Oct 2019 03:58:39 +0200 Subject: Removed friendly urls and added prism code highlighting --- Makefile | 2 +- firebase.json | 2 +- site.tmpl | 14 +++++++++++--- src/static/style.css | 4 ++++ 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 2411164..90e608e 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ GS ?= gostatic compile: $(GS) config -w: +dev: -rm public -rf $(GS) -w config diff --git a/firebase.json b/firebase.json index b71896f..06f8172 100644 --- a/firebase.json +++ b/firebase.json @@ -1,7 +1,7 @@ { "hosting": { "public": "public", - "cleanUrls": true, + "cleanUrls": false, "ignore": [ "firebase.json", "tmp/", diff --git a/site.tmpl b/site.tmpl index dc7bb97..dee3e7e 100644 --- a/site.tmpl +++ b/site.tmpl @@ -8,13 +8,14 @@ - + {{ .Site.Other.Title }}{{ if .Title }}: {{ .Title }}{{ end }} +
@@ -30,7 +31,7 @@ {{ define "navigation" }} @@ -50,6 +51,7 @@ {{ template "header" . }} {{ template "navigation" . }} {{ .Content }} + {{ template "prism" . }} {{ template "mathjax" . }} {{ template "footer" . }} {{ end }} @@ -92,4 +94,10 @@ gtag('js', new Date()); gtag('config', 'UA-12769079-10'); -{{ end }} \ No newline at end of file +{{ end }} + +{{ define "prism" }} + + + +{{ end }} diff --git a/src/static/style.css b/src/static/style.css index efb65c0..34cf942 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -78,6 +78,10 @@ th, td { color: #000; } +code[class*=language-] { + font-size: 14px !important; +} + @media only screen and (max-width:480px) { nav { text-align: center; -- cgit v1.2.3