aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--firebase.json2
-rw-r--r--site.tmpl14
-rw-r--r--src/static/style.css4
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
3compile: 3compile:
4 $(GS) config 4 $(GS) config
5 5
6w: 6dev:
7 -rm public -rf 7 -rm public -rf
8 $(GS) -w config 8 $(GS) -w config
9 9
diff --git a/firebase.json b/firebase.json
index b71896f..06f8172 100644
--- a/firebase.json
+++ b/firebase.json
@@ -1,7 +1,7 @@
1{ 1{
2 "hosting": { 2 "hosting": {
3 "public": "public", 3 "public": "public",
4 "cleanUrls": true, 4 "cleanUrls": false,
5 "ignore": [ 5 "ignore": [
6 "firebase.json", 6 "firebase.json",
7 "tmp/", 7 "tmp/",
diff --git a/site.tmpl b/site.tmpl
index dc7bb97..dee3e7e 100644
--- a/site.tmpl
+++ b/site.tmpl
@@ -8,13 +8,14 @@
8 <meta name="google-site-verification" content="{{ html .Site.Other.Google_verification }}"> 8 <meta name="google-site-verification" content="{{ html .Site.Other.Google_verification }}">
9 <meta http-equiv="X-UA-Compatible" content="ie=edge"> 9 <meta http-equiv="X-UA-Compatible" content="ie=edge">
10 <meta name=description content="{{ html .Site.Other.Description }}"> 10 <meta name=description content="{{ html .Site.Other.Description }}">
11 11
12 <meta name="author" content="{{ html .Site.Other.Author }}"> 12 <meta name="author" content="{{ html .Site.Other.Author }}">
13 <link rel="alternate" type="application/atom+xml" title="{{ html .Site.Other.Title }} feed" href="{{ .Rel "feed.atom" }}"> 13 <link rel="alternate" type="application/atom+xml" title="{{ html .Site.Other.Title }} feed" href="{{ .Rel "feed.atom" }}">
14 <title>{{ .Site.Other.Title }}{{ if .Title }}: {{ .Title }}{{ end }}</title> 14 <title>{{ .Site.Other.Title }}{{ if .Title }}: {{ .Title }}{{ end }}</title>
15 <link rel="stylesheet" type="text/css" href="{{ .Rel "static/style.css" }}"> 15 <link rel="stylesheet" type="text/css" href="{{ .Rel "static/style.css" }}">
16 16
17 <link rel="icon" type="image/png" href="{{ .Rel "static/avatar-64x64.png" }}"> 17 <link rel="icon" type="image/png" href="{{ .Rel "static/avatar-64x64.png" }}">
18
18 </head> 19 </head>
19 <body> 20 <body>
20 <main> 21 <main>
@@ -30,7 +31,7 @@
30{{ define "navigation" }} 31{{ define "navigation" }}
31 <nav> 32 <nav>
32 <a href="/">{{ html .Site.Other.Author }}</a> 33 <a href="/">{{ html .Site.Other.Author }}</a>
33 <a href="/curriculum-vitae">Curriculum Vitae</a> 34 <a href="/curriculum-vitae.html">Curriculum Vitae</a>
34 <a href="https://twitter.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Twitter</a> 35 <a href="https://twitter.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Twitter</a>
35 <a href="https://github.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Github</a> 36 <a href="https://github.com/mitjafelicijan" target="_blank" rel="noopener nofollow">Github</a>
36 </nav> 37 </nav>
@@ -50,6 +51,7 @@
50 {{ template "header" . }} 51 {{ template "header" . }}
51 {{ template "navigation" . }} 52 {{ template "navigation" . }}
52 {{ .Content }} 53 {{ .Content }}
54 {{ template "prism" . }}
53 {{ template "mathjax" . }} 55 {{ template "mathjax" . }}
54 {{ template "footer" . }} 56 {{ template "footer" . }}
55{{ end }} 57{{ end }}
@@ -92,4 +94,10 @@
92 gtag('js', new Date()); 94 gtag('js', new Date());
93 gtag('config', 'UA-12769079-10'); 95 gtag('config', 'UA-12769079-10');
94 </script> 96 </script>
95{{ end }} \ No newline at end of file 97{{ end }}
98
99{{ define "prism" }}
100 <link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism-solarizedlight.min.css" rel="stylesheet">
101 <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/components/prism-core.min.js"></script>
102 <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/plugins/autoloader/prism-autoloader.min.js"></script>
103{{ 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 {
78 color: #000; 78 color: #000;
79} 79}
80 80
81code[class*=language-] {
82 font-size: 14px !important;
83}
84
81@media only screen and (max-width:480px) { 85@media only screen and (max-width:480px) {
82 nav { 86 nav {
83 text-align: center; 87 text-align: center;