summaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: 69e836a8465ce85b816a45d82a15068a2cd215d6 (plain) (blame)
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
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width initial-scale=1">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">

		<title>{% if page.title %}{{ page.title }} - {% endif %}{{ config.title }}</title>

		<!-- Open Graph stuff -->
		{% block opengraph %}
			<meta name="description" content="{{ page.extra['opengraph']['desc'] | default(value=trans(key='description', lang=lang)) }}">
			<meta property="og:description" content="{{ page.extra['opengraph']['desc'] | default(value=trans(key='description', lang=lang)) }}">
			<meta property="og:title" content="{{ page.title | default(value=config.title) }}">
			<meta property="og:type" content="article">
			<meta property="og:url" content="{{ page.permalink | default(value=section.permalink | safe) | safe }}">
			{% if page.extra['opengraph']['img'] %}
				<meta property="og:image" content="{{ current_url | safe }}{{ page.extra['opengraph']['img'] | safe }}">
			{% endif %}

			<meta name="twitter:card" content="summary_large_image">
			<meta property="twitter:domain" content="volse.net">
			<meta property="twitter:url" content="{{ page.permalink | default(value=section.permalink | safe) | safe }}">
			<meta property="twitter:title" content="{{ page.title | default(value=config.title) }}">
			<meta property="twitter:description" content="{{ page.extra['opengraph']['desc'] | default(value=trans(key='description', lang=lang)) }}">
			{% if page.extra['opengraph']['img'] %}
				<meta property="twitter:image" content="{{ current_url | safe }}{{ page.extra['opengraph']['img'] | safe }}">
			{% endif %}
		{% endblock opengraph %}
		<meta property="og:site_name" content="{{ config.title }}">


		<link rel="stylesheet" type="text/css" href="{{ get_url(path='/styles.css') | safe }}">
		<link rel="alternate"
					type="application/atom+xml"
					href="{{ get_url(path='/feed.xml') | safe }}"
				  title="Rabalder atom feed (Norwegian)">
		<link rel="alternate"
					type="application/atom+xml"
					href="{{ get_url(path='en/feed.xml') | safe }}"
				  title="Rabalder atom feed (English)">
	</head>

	<body>

		<header id="site-header" class="site-header">
			<div class="site-title">
				<a href="{{ get_url(path='@/_index.md', lang=lang) | safe }}">
					<img src="{{ get_url(path='/rabalder-2am.png') | safe }}" alt="{{ config.title }}">
				</a>
			</div>
			<div class="site-bar">
				<div class="site-description">{{ trans(key="description", lang=lang) }}</div>
				<div class="language">{% block language %}{% endblock language %}</div>
			</div>
		</header>

		<div class="page-content">
			<div class="wrapper">
				{% block content %}
				{% endblock content %}
			</div>
		</div>

		{#% include footer.html %#}

	</body>

</html>