aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/partials
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2022-08-27 14:05:48 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2022-08-27 14:05:48 +0200
commit9f5454bda6299db43a4e9de5b3716471388b81d9 (patch)
tree1ceedf64a4517a372d70efc2b6f4bbd9478ce792 /themes/simple/layouts/partials
parente728c3a2cbd06d95cd1226d3b23473816bd0d67e (diff)
downloadmitjafelicijan.com-9f5454bda6299db43a4e9de5b3716471388b81d9.tar.gz
Move blog to Hugo
Diffstat (limited to 'themes/simple/layouts/partials')
-rw-r--r--themes/simple/layouts/partials/footer.html14
-rw-r--r--themes/simple/layouts/partials/head.html175
-rw-r--r--themes/simple/layouts/partials/header.html18
3 files changed, 207 insertions, 0 deletions
diff --git a/themes/simple/layouts/partials/footer.html b/themes/simple/layouts/partials/footer.html
new file mode 100644
index 0000000..6e7ec9c
--- /dev/null
+++ b/themes/simple/layouts/partials/footer.html
@@ -0,0 +1,14 @@
1<footer class="container-blog text-gray-400 text-sm mb-12">
2 This website does not track you.
3 Content is made available under the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noreferrer" class="underline hover:text-gray-800">CC BY 4.0 license</a> unless specified otherwise.
4 Blog feed is available as <a href="/index.xml" target="_blank" class="underline hover:text-gray-800">RSS</a> feed.
5</footer>
6
7<!-- katex math library -->
8<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
9<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script>
10<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
11
12
13<!-- Fathom - beautiful, simple website analytics -->
14<script src="https://cdn.usefathom.com/script.js" data-site="XHQARKXP" defer></script>
diff --git a/themes/simple/layouts/partials/head.html b/themes/simple/layouts/partials/head.html
new file mode 100644
index 0000000..716b1f0
--- /dev/null
+++ b/themes/simple/layouts/partials/head.html
@@ -0,0 +1,175 @@
1<meta charset="UTF-8">
2<meta name="theme-color" content="#ffffff">
3<meta name="viewport" content="width=device-width, initial-scale=1.0">
4
5<script src="https://cdn.tailwindcss.com"></script>
6
7<link rel="alternate" type="application/rss+xml" href="/index.xml">
8
9<link
10 href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL69vf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv76+/8LBwQkAAAAAAAAAAAAAAAC+vb3/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL+9vf/Bv78JAAAAAAAAAAAAAAAAu7q6/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC7ubr/vr29CAAAAAAAAAAAy8nJAZ6foP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnqGj/6GipAoAAAAAHLjU/xcXHf/BwsL/I8XY/yPK3v8XGiD/IbjL/yPF2f8XGiD/Fxkf/yLF2f8gnK3/Fxog/62ztv8fwNf/FRcd/x271v8mz93/GRsi/xkXHf8p097/GiIp/xobIv8p0t3/KdPe/xocIv8fYmr/KNPe/xoZH/8aHCL/J87c/xy81/8VFx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gb(255, 241, 177);
24 color: #000;
25 }
26
27 ::-moz-selection {
28 background: rgb(255, 241, 177);
29 color: #000;
30 }
31
32 article img {
33 max-width: 120%;
34 width: 120%;
35 position: relative;
36 left: -10%;
37 margin: 40px auto;
38 display: block;
39 border-radius: 5px;
40 }
41
42 article p {
43 display: block;
44 margin-block-start: 1em;
45 margin-block-end: 1em;
46 margin-inline-start: 0px;
47 margin-inline-end: 0px;
48 }
49
50 article ol {
51 display: block;
52 list-style-type: decimal;
53 margin-block-start: 1em;
54 margin-block-end: 1em;
55 margin-inline-start: 0px;
56 margin-inline-end: 0px;
57 padding-inline-start: 40px;
58 }
59
60 article ol>li>ol {
61 margin-block-start: 0 !important;
62 margin-block-end: 0 !important;
63 padding-inline-start: 20px;
64 }
65
66 article ul {
67 display: block;
68 list-style-type: disc;
69 margin-block-start: 1em;
70 margin-block-end: 1em;
71 margin-inline-start: 0px;
72 margin-inline-end: 0px;
73 padding-inline-start: 40px;
74 }
75
76 article code {
77 font-family: monospace;
78 background: rgb(255, 241, 177);
79 border-radius: 5px;
80 padding: 2px 8px;
81 font-weight: 500;
82 }
83
84 article pre {
85 background: unset;
86 padding: unset;
87
88 overflow-x: auto;
89 background: #f8f8f8 !important;
90 padding: 15px 20px;
91 border-radius: 5px;
92
93 margin-block-start: 40px;
94 margin-block-end: 40px;
95 }
96
97 article pre>code {
98 background: unset;
99 padding: unset;
100 font-weight: 400;
101 }
102
103 article h2 {
104 font-size: 180%;
105 line-height: 1.2em;
106 font-weight: 700;
107 margin-block-start: 40px;
108 margin-block-end: 20px;
109 }
110
111 article h3 {
112 margin-block-start: 30px;
113 margin-block-end: 20px;
114 font-size: 160%;
115 line-height: 1.2em;
116 font-weight: 700;
117 }
118
119 table {
120 width: 100%;
121 }
122
123 table,
124 th,
125 td {
126 border: 1px solid black;
127 text-align: left;
128 }
129
130 th,
131 td {
132 padding: 5px 10px;
133 }
134
135 article blockquote {
136 margin-left: 40px;
137 position: relative;
138 margin-block-start: 30px;
139 margin-block-end: 30px;
140 margin-right: 0;
141 }
142
143 article blockquote:before {
144 content: ' ';
145 background-image: url('/general/alert-light.svg');
146 background-size: 30px 30px;
147 height: 30px;
148 width: 30px;
149 position: absolute;
150 left: -40px;
151 top: 6px;
152 }
153
154 article blockquote p {
155 padding-left: 10px;
156 }
157
158 article video {
159 max-width: 100%;
160 margin: 30px auto;
161 display: block;
162 border-radius: 5px;
163 background: #f8f8f8 !important;
164 }
165
166 article audio {
167 width: 100%;
168 outline: none;
169 }
170
171 article .katex-display {
172 margin-block-start: 40px;
173 margin-block-end: 40px;
174 }
175</style>
diff --git a/themes/simple/layouts/partials/header.html b/themes/simple/layouts/partials/header.html
new file mode 100644
index 0000000..e234615
--- /dev/null
+++ b/themes/simple/layouts/partials/header.html
@@ -0,0 +1,18 @@
1<div class="container-blog">
2 <header class="flex py-4 mt-4 mb-6">
3 <h3 class="flex-grow">
4 <a href="/" itemprop="url" class="text-xl font-bold hover:bg-yellow-200">Mitja Felicijan</a>
5 </h3>
6
7 <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="flex items-center gap-1">
8 <meta itemprop="name" content="Main Menu">
9
10 <a href="https://git.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-200">Git</a>
11 <a href="https://files.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-200">Files</a>
12 <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-200">CV</a>
13 <a href="/books.html" class="font-medium px-2 hover:bg-yellow-200">Books</a>
14
15 <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-200">RSS</a>
16 </nav>
17 </header>
18</div>