-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbase.njk
More file actions
135 lines (131 loc) · 6.47 KB
/
base.njk
File metadata and controls
135 lines (131 loc) · 6.47 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
<!doctype html>
<html lang="{{ site.language }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% set titre = metatitle or title %}
<title>{{ titre | striptags | replace(' ', ' ') | replace(' ', ' ') }} — {{ site.name }}</title>
<link rel="preload" as="font" href="/assets/fonts/bello-pro.woff2">
<link rel="preload" as="font" href="/assets/fonts/museo-slab-300.woff2">
{%- if comments > 0 -%}
<link rel="preconnect" href="https://secure.gravatar.com/">
{%- endif -%}
<link rel="stylesheet" href="/assets/styles.min.css" media="all">
<link rel="stylesheet" href="/assets/impression.min.css" media="print">
{% set desc = metadescription or description or excerpt %}
<meta name="description" content="{{ desc | striptags | replace(' ', ' ') | replace(' ', ' ') }}">
<meta name="generator" content="{{ eleventy.generator }}">
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="author" href="/humans.txt" type="text/plain">
<meta property="fediverse:creator" content="@ffoodd@mamot.fr">
<link rel="alternate" type="application/rss+xml" title="{{ site.name }} | Flux RSS" href="/feed/index.xml">
{%- if alternate %}
<link rel="alternate" hreflang="en" href="{{ alternate }}">
{%- endif %}
{%- if canonical %}
<link rel="canonical" href="{{ canonical }}">
{%- endif %}
{%- set slug = post.data.permalink | replace("/index.html", "") -%}
{%- set comments = collections.comments | comments(slug) | length -%}
{%- if pagination.href.previous %}
<link rel="prev" href="{{ pagination.href.prev }}">
{%- endif %}
{%- if pagination.href.next %}
<link rel="next" href="{{ pagination.href.next }}">
{%- endif %}
</head>
<body class="tk-museo-slab" itemscope itemtype="https://schema.org/WebPage">
{%- block skiplinks %}
<a class="skip scroll pa1 inbl smaller print-hidden" href="#content">Aller au contenu</a>
{%- endblock %}
<div class="row">
<nav class="col txtright pt8 w-33 pl0 pr0 print-hidden" id="nav" role="navigation" aria-label="Menu principal">
<ul class="menu aside p-reset m-reset ul-reset">
<li class="tk-bello-pro h1-like m-reset{% if title === 'Accueil' %} current-menu-item current_page_item{% endif %}">
<a href="/"{% if title === 'Accueil' %} aria-current="page"{% endif %}>ffoodd</a>
</li>
<li class="h3-like m-reset{% if title === 'Journal' %} current-menu-item current_page_item{% endif %}">
<a href="/journal/"{% if title === 'Journal' %} aria-current="page"{% endif %}>Journal</a>
</li>
<li class="h3-like m-reset{% if title === 'Parcours' %} current-menu-item current_page_item{% endif %}">
<a href="/travaux/"{% if title === 'Parcours' %} aria-current="page"{% endif %}>Parcours</a>
</li>
<li class="h3-like m-reset{% if title === 'En ce moment' %} current-menu-item current_page_item{% endif %}">
<a href="/now/"{% if title === 'En ce moment' %} aria-current="page"{% endif %}>En ce moment</a>
</li>
</ul>
</nav>
<main class="col w--site pl3 pb3 pr3" id="content" role="main" role="main" itemprop="mainContentOfPage">
<div class="logo print-hidden">
<img src="/assets/img/embossed-ffoodd.png" alt="" id="logo" width="144" height="144">
</div>
<header class="center pt1 mb1" role="banner">
<h1 class="mb0 mt0 tk-bello-pro" itemprop="name">{{ title | safe }}</h1>
{%- block breadcrumb %}
{% include 'partials/breadcrumb.njk' %}
{%- endblock %}
{%- if description %}
<h2 class="h3-like {% if layout === 'template/archive.njk' %}m-reset pb1{% else %}description{% endif %}" itemprop="description">{{ description | safe }}</h2>
{%- endif %}
</header>
{%- block content %}
<article role="article" itemscope itemtype="https://schema.org/Article">
<div itemprop="articleBody">
{{ content | safe }}
</div>
</article>
{%- endblock -%}
{%- block comments %}{% endblock -%}
{%- block latest %}{% endblock -%}
</main>
{%- block aside -%}
<aside class="col pt8 pl0 pr0 print-hidden" role="complementary">
<div class="aside pt2 pr3 pb1 pl2">
<h3 class="tk-bello-pro h2-like m-reset">À regarder ailleurs</h3>
<div class="textwidget">
<ul>
{%- for talk in talks | selectattr('replay') %}
{%- if (loop.index0 === 0 and not prevTitle) or (loop.index <= 4 and prevTitle != talk.title) %}
<li>
{%- if talk.replay -%}
<a href="{{ talk.replay }}">
{{ talk.title | safe }}
{%- if "youtube.com" in talk.replay %} (sur YouTube){% elseif "vimeo.com" in talk.replay %} (sur Viméo){% endif -%}
</a>
{%- else -%}
<a href="{{ talk.link }}">{{ talk.title | safe }}</a>
{%- endif -%}
</li>
{%- endif -%}
{%- set prevTitle = talk.title -%}
{%- endfor %}
</ul>
</div>
</div>
</aside>
{%- endblock %}
</div>
<footer class="mw--site mod txtcenter center" role="contentinfo" itemscope itemtype="https://schema.org/Person">
<ul class="ffeeeedd--contact ul-reset p-reset mt0 print-hidden">
{%- for contactPoint in contactPoints -%}
<li class="inbl pa1" itemscope itemprop="contactPoint">
<a class="skip inbl ir ffeeeedd--sprite ffeeeedd--sprite__{{ contactPoint.name | lower }}" href="{{ contactPoint.url }}" itemprop="url"
{%- if contactPoint.name === 'Mastodon' %} rel="me"{% endif -%}
title="{% if contactPoint.name === "RSS" %}La vie en #ffoodd | Flux RSS{% else %}Gaël Poupard sur {{ contactPoint.name }}{% endif %}">
<span itemprop="name">{{ contactPoint.name }}</span>
</a>
</li>
{%- endfor -%}
</ul>
<p class="small">
© {% year %} {{ site.name }} — Design et intégration par <span itemprop="name">{{ site.author.name }}</span> — <a href="/mentions-legales/">Mentions légales</a>
<br>
Sauf mention contraire, l’ensemble du contenu est sous <a rel="license" href="creativecommons.org/licenses/by-nc-sa/4.0/fr/">Licence <abbr lang="en" title="Creative Commons">CC</abbr> <abbr lang="en" title="Attribution">BY</abbr>-<abbr lang="en" title="Non Commercial">NC</abbr>-<abbr lang="en" title="Share Alike">SA</abbr></a>.
</p>
<meta itemprop="jobTitle" content="Webdesigner et intégrateur web">
<meta itemprop="worksFor" content="onepoint">
</footer>
{%- block script -%}{%- endblock -%}
</body>
</html>