Commit 7366c132 authored by Antoine Fauchié's avatar Antoine Fauchié

admin: modèle de page txt avec possibilité de noindex et de commentaires hypothesis

parent 90b2db38
......@@ -4,18 +4,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="generator" content="Jekyll http://jekyllrb.com/">
<link rel="manifest" href="/manifest.json">
{% if page.description %}<meta name="description" content="{{ page.description }}" />{% else %}
<meta name="description" content="{{ site.description }}" />{% endif %}
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}" />{% else %}
<meta name="keywords" content="web, gestion de projet, systèmes d'information, design, architecture de l'information, livre, livre numérique, ebook, typographie, Antoine Fauchié" />{% endif %}
{% if page.robots == "non" %}<meta name="robots" content="noindex" />{% endif %}
{% if page.description %}<meta name="description" content="{{ page.description }}" />{% else %}<meta name="description" content="{{ site.description }}" />{% endif %}
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}" />{% else %}<meta name="keywords" content="web, gestion de projet, systèmes d'information, design, architecture de l'information, livre, livre numérique, ebook, typographie, Antoine Fauchié" />{% endif %}
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
<meta property="DC.creator" content="Fauchié, Antoine" />
<meta property="DC.publisher" content="Fauchié, Antoine" />
<meta property="DC.language" content="fr" />{% if page.title == "Home" %}
<meta property="DC.title" content="{{ site.title }} - {{ site.tagline }}" />{% else %}
<meta property="DC.title" content="{{ page.title }} - {{ site.title }}" />{% endif %}
{% if page.description %}<meta property="DC.description" content="{{ page.description }}" />{% else %}
<meta property="DC.description" content="{{ site.description }}" />{% endif %}
<meta property="DC.language" content="fr" />
{% if page.title == "Home" %}<meta property="DC.title" content="{{ site.title }} - {{ site.tagline }}" />{% else %}<meta property="DC.title" content="{{ page.title }} - {{ site.title }}" />{% endif %}
{% if page.description %}<meta property="DC.description" content="{{ page.description }}" />{% else %}<meta property="DC.description" content="{{ site.description }}" />{% endif %}
<meta property="DC.rights" content="CC BY-SA" />
<meta property="DC.date" content="{{ page.date }}" />
<meta property="og:title" content="{{ page.title }}"/>
......@@ -24,13 +21,12 @@
<meta property="og:site_name" content="quaternum"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="{% if page.image %}{{ page.image }}{% else %}https://www.quaternum.net/images/qtrnm.png{% endif %}" />
<!-- https://schema.org/Article -->
<meta property="description" content="{{ page.description }}">
<meta property="article:published" content="{{ page.date }}">
<meta property="article:created" content="{{ page.date }}">
<meta property="article:author" content="Fauchié, Antoine">
<!-- twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:domain" content="quaternum.net" />
<meta name="twitter:creator" content="@antoinentl"/>
......@@ -40,7 +36,7 @@
<meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
<meta name="twitter:url" content="https://www.quaternum.net{{ page.url }}"/>
<meta name="twitter:image" content="{% if page.image %}{{ page.image }}{% else %}https://www.quaternum.net/images/qtrnm.png{% endif %}" />
<title>{% if page.title == "Home" %}{{ site.title }} - {{ site.tagline }}{% else %}{{ page.title }} - {{ site.title }}{% endif %}</title>
<title>{% if page.title == "Home" %}{{ site.title }} – {{ site.tagline }}{% else %}{{ page.title }} – {{ site.title }}{% endif %}</title>
<link rel="icon" type="image/png" href="/images/favicon.png" sizes="32x32">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
<link rel="stylesheet" href="{{ site.baseurl }}public/css/style.css">
......
......@@ -17,7 +17,9 @@
</div>
</div>
</header>
<main>{{ content }}
<main>
<h1 class="post-title">{{ page.title }}</h1>
{{ content }}
<div class="modif">
–– <a href="{{ site.repo_url}}/blob/master/{{ page.path }}">Modifier cette page</a><a href="{{ site.repo_url}}/commits/master/{{ page.path }}">Historique des changements</a>
</div>
......@@ -31,5 +33,6 @@
navigator.serviceWorker.register('/serviceworker.js');
}
</script>
{% if page.hypothesis == "oui" %}<script src="https://hypothes.is/embed.js" async></script>{% endif %}
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment