forked from Maxence-L/notenote.link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.html
86 lines (66 loc) · 2.79 KB
/
post.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
---
---
<!DOCTYPE html>
<html lang="fr">
<head>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="My linked notebook" property="og:site_name"/>
<meta content="My path to perpetual learning." property="og:description">
<meta content="{{ site.url }}/about/" property="article:author">
{%- if page.title -%}
<meta content="{{ page.title }}" property="og:title">
<meta content="article" property="og:type">
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
{%- else -%}
<meta content="website" property="og:type">
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
{%- endif -%}
<title>{{site.title}}</title>
<link rel="canonical" href="{{site.url}}{{page.url}}"/>
<link rel="apple-touch-icon" href="{{site.profile_pic}}">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"/>
<link rel="icon" href="{{site.favicon}}" type="image/png" sizes="16x16"/>
<link href="/assets/css/style.css" rel="stylesheet" media="all" class="default"/>
<!--[if IE]>
<link href="/assets/css/ie-target.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<!--<link href="/assets/css/prism.css" rel="stylesheet" />-->
<link rel="alternate" type="application/rss+xml" href="{{ site.url }}/feed.xml">
</script>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"></script>
</head>
<body>
<div class="container">
<div class = "box">
{%- include header.html -%}
{%- include feed.html -%}
{%- if page.content-type == "notes"
or page.content-type == "post"
or page.content-type == "eg" -%}
<main>
<h1>{{page.title}}</h1>
{%- include content.html -%}
<hr>
{%- include backlinks.html -%}
{%- include related.html -%}
</main>
{%- endif -%}
{%- include comments.html -%}
{%- include footer.html -%}
</div>
<button class="scroll-to-top" id="scroll-to-top"><i class="fa fa-chevron-up"></i></button>
</div>
<script>
document.getElementById("scroll-to-top").addEventListener("click", function() {
window.scrollTo({top: 0, left: 0, behavior: 'smooth'});
});
</script>
{%- include contextmenu.html -%}
</body>
</html>
{%- if page.content-type == "notes"
or page.content-type == "post" -%}
{%- if page.title != "Tags" -%}
<script>for(let h of document.querySelectorAll('h2[id],h3[id],h4[id]'))h.innerHTML+=` <a href="#${h.id}" aria-hidden="true">#</a>`</script>
{%- endif -%}
{%- endif -%}