/
index.html
114 lines (102 loc) · 5.88 KB
/
index.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
{% import "macros.html" as macro %}
<!DOCTYPE html>
<html lang="en" itemscope itemtype="http://schema.org/Blog">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
{% block seo %}
<link rel="apple-touch-icon" sizes="57x57" href="{{ get_url(path="apple-icon-57x57.png", trailing_slash=false) }}">
<link rel="apple-touch-icon" sizes="60x60" href="{{ get_url(path="/apple-icon-60x60.png", trailing_slash=false) }}">
<link rel="apple-touch-icon" sizes="72x72" href="{{ get_url(path="/apple-icon-72x72.png", trailing_slash=false) }}">
<link rel="apple-touch-icon" sizes="76x76" href="{{ get_url(path="/apple-icon-76x76.png", trailing_slash=false) }}">
<link rel="apple-touch-icon" sizes="114x114" href="{{ get_url(path="/apple-icon-114x114.png", trailing_slash=false) }}">
<link rel="apple-touch-icon" sizes="120x120" href="{{ get_url(path="/apple-icon-120x120.png", trailing_slash=false) }}">
<link rel="apple-touch-icon" sizes="144x144" href="{{ get_url(path="/apple-icon-144x144.png", trailing_slash=false) }}">
<link rel="apple-touch-icon" sizes="152x152" href="{{ get_url(path="/apple-icon-152x152.png", trailing_slash=false) }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ get_url(path="/apple-icon-180x180.png", trailing_slash=false) }}">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" type="image/png" sizes="192x192" href="{{ get_url(path="/android-icon-192x192.png", trailing_slash=false) }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ get_url(path="/favicon-32x32.png", trailing_slash=false) }}">
<link rel="icon" type="image/png" sizes="96x96" href="{{ get_url(path="/favicon-96x96.png", trailing_slash=false) }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ get_url(path="/favicon-16x16.png", trailing_slash=false) }}">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<meta name="description" itemprop="about" content="{{config.description}}">
<meta name="keywords" itemprop="keywords" content="{{config.extra.keywords}}">
<meta itemprop="headline" content="{{config.title}}"/>
{% if config.extra.educational_use %}
<meta itemprop="educationalUse" content="{{config.extra.educational_use}}" />
{% endif %}
{% if config.extra.copyright_year %}
<meta itemprop="copyrightYear" content="{{config.extra.copyright_year}}" />
{% endif %}
<!-- Social Media -->
<meta property="og:title" content="{{config.title}}{% block ogtitle %}{% endblock ogtitle %}">
<meta property="og:description" content="{% block ogdesc %}{{config.description}}{% endblock ogdesc %}">
<meta property="og:image" content="{% block ogimg %}{{config.extra.og_image}}{% endblock ogimg %}">
<meta property="og:url" content="{% block ogurl %}{{config.base_url}}{% endblock ogurl%}">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:site_name" content="{{config.extra.og_site_name}}">
<meta name="twitter:image:alt" content="{% block ogaltimg %}{{config.extra.og_alt_image}}{% endblock ogaltimg %}">
{% if config.extra.fb_app_id %}
<meta property="fb:app_id" content="{{config.extra.fb_app_id}}" />
{% endif %}
{% if config.extra.twitter_username %}
<meta name="twitter:site" content="{{config.extra.twitter_username}}">
{% endif %}
{% endblock seo %}
{% if config.generate_rss %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") }}">
{% endif %}
{% block css %}
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600|Source+Code+Pro">
<link rel="stylesheet" href="{{ get_url(path="site.css", trailing_slash=false) }}">
{% endblock css %}
</head>
<body>
{{ macro::organization(itemprop=false) }}
<header class="header">
<div class="container">
<a class="title" href="{{config.base_url}}">
{% block header_title %}
{% if config.extra.blog_logo %}
<img src="{{ get_url(path=config.extra.blog_logo, trailing_slash=false) }}" alt="">
{% endif %}
{% if config.extra.blog_title %}
<h1 >{{config.extra.blog_title}}</h1>
{% endif %}
{% endblock header_title %}
</a>
</div>
</header>
<div class="container padding-header">
{% block content %}
<main class="main">
{% for page in paginator.pages %}
{{ macro::post(page=page) }}
{% endfor %}
{{ macro::post_nav(ref=paginator, extra=config.extra) }}
</main>
{% endblock content %}
{% block sidebar %}
<aside class="sidebar">
{% for sidebar in config.extra.sidebar %}
<h3>{{ sidebar.name }}</h3>
<ul class="base-list">
{% for item in sidebar.urls %}
<li>
<a href="{{item.url}}">{{item.name}}</a>
</li>
{% endfor %}
</ul>
{% endfor %}
</aside>
{% endblock sidebar %}
</div>
</body>
</html>