-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_template.html
122 lines (111 loc) · 3.73 KB
/
index_template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<title>alifeee - {{ tabtitle }}</title>
<!-- browser metas -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="{{ description }}" />
<!-- embed metas - https://ogp.me/ -->
<meta property="og:title" content="{{ title }}" />
<meta property="og:type" content="website" />
<meta property="og:site" content="alifeee's blog" />
<meta property="og:url" content="https://blog.alifeee.co.uk/{{ slug }}" />
<meta
property="og:image"
content="https://blog.alifeee.co.uk/{{ slug }}/og-image.png"
/>
<meta property="og:description" content="{{ description }}" />
<meta property="og:locale" content="en_GB" />
<!-- styling -->
<!-- favicon -->
<link rel="icon" type="image/png" href="../favicon.png" />
<!-- stylesheets -->
<link rel="stylesheet" href="../stylesheet.css" />
<!-- fonts -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Josefin+Sans|Roboto"
/>
<!-- libraries -->
<!-- zero-md: https://github.com/zerodevx/zero-md -->
<script type="module" src="../zero-md.js"></script>
<!-- anchorjs: https://github.com/bryanbraun/anchorjs (zero-md must be no-shadow mode)-->
<script type="module">
import "https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js";
document.addEventListener("zero-md-rendered", function (event) {
let tags = ["h2", "h3", "h4", "h5", "h6"];
anchors.add("#content " + tags.join(", #content "));
});
</script>
<!-- word-count component from word-count.js -->
<script src="../word-count.js"></script>
<!-- htmx -->
<script
src="https://unpkg.com/htmx.org@1.9.8"
integrity="sha384-rgjA7mptc2ETQqXoYC3/zJvkU7K/aP44Y+z7xQuJiVnB/422P/Ak+F/AqFR7E4Wr"
crossorigin="anonymous"
></script>
<!-- extra scripts -->
{{ scripts }}
</head>
<body>
<header>
<a href="../">
<h1>alifeee's blog</h1>
</a>
<a id="rss" href="../feed.xml">
<img alt="_RSS_" src="../icons/rss.svg" />
</a>
</header>
<main>
<section id="content">
<zero-md src="./{{ mdfile}}" no-shadow>
<template data-merge="append">
<link rel="stylesheet" href="../stylesheet_md.css" />
</template>
</zero-md>
</section>
<hr />
<section id="comments">
<h2>Comments</h2>
<p>
Email me →
<a href="mailto:alifeee.web@outlook.com">alifeee.web@outlook.com</a>
:)
</p>
<p>
Message me on any social media →
<a href="https://linktr.ee/alifeee">https://linktr.ee/alifeee</a> :)
</p>
</section>
<section id="similar">
<h1>
Similar posts
<a
href="https://github.com/alifeee/blog?tab=readme-ov-file#similar-posts"
>(?)</a
>
</h1>
<div hx-get="./similar.html" hx-trigger="load" hx-swap="afterend"></div>
</section>
</main>
<footer>
<div class="links">
<a href="https://github.com/alifeee/blog">
<img alt="_GitHub_" src="./icons/github.svg" />
<span class="text">GitHub</span>
</a>
<a href="https://linktr.ee/alifeee">
<img alt="_Linktree_" src="./icons/linktree-logo-icon.svg" />
<span class="text">Linktree</span>
</a>
<a href="mailto:alifeee.web@outlook.com">
<img alt="_Email_" src="./icons/envelope-solid.svg" />
<span class="text">Email</span>
</a>
</div>
<a class="backlink" href="../">Back to main page</a>
</footer>
</body>
</html>