aboutsummaryrefslogtreecommitdiff
path: root/site.tmpl
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2019-10-22 03:58:39 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2019-10-22 03:58:39 +0200
commit6c07fd9c8cb6834ebc34ac40b0572456a3f9abae (patch)
tree1d5f02fe9c87e5888fa419c98b2e2d9a49af7071 /site.tmpl
parent28dd784a088a35739cdfdc4ce79f8ee6d50bf816 (diff)
downloadmitjafelicijan.com-6c07fd9c8cb6834ebc34ac40b0572456a3f9abae.tar.gz
Removed friendly urls and added prism code highlighting
Diffstat (limited to 'site.tmpl')
-rw-r--r--site.tmpl14
1 files changed, 11 insertions, 3 deletions
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 }}