This commit is contained in:
Loïc Guibert
2022-09-30 20:02:02 +01:00
commit 66dafc36c3
2561 changed files with 454489 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
<div class="article-item">
<header class="post-header">
{% if post.header.link %}
<h2 class="post-title" itemprop="name"><a href="{{ post.url }}" rel="bookmark" title="{{ post.title }}" itemprop="url"><i class="fa fa-angle-double-right"></i></a> <a href="{{ post.header.link }}">{{ post.title }}</a></h2>
{% else %}
<h2 class="post-title" itemprop="name"><a href="{{ post.url }}" itemprop="url">{{ post.title }}</a></h2>
{% endif %}
</header>
<section class="post-excerpt" itemprop="description">
<p>{{ post.content | striptags | truncate(200) }}</p>
</section>
<div class="post-meta">
<time datetime="{{ post.date | date(site.date_long) }}">{{ post.date | date(site.date_long) }}</time>
{% if post.taxonomy.tag|length > 0 %}
<span class="post-tags-set">in {% for tag in post.taxonomy.tag %}<span class="post-tag-{{tag}}"><a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tag }}">{{ tag }}</a></span>{%if not loop.last %} + {% endif %}{% endfor %}</span>
{% endif %}
</div>
</div>
</article>

View File

@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
<head>
<meta charset="utf-8">
<!-- (1) Optimize for mobile versions: http://goo.gl/EOpFl -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- (1) force latest IE rendering engine: bit.ly/1c8EiC9 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
{% include 'partials/metadata.html.twig' %}
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="canonical" href="{{ page.url() }}">
<link rel="shortcut icon" href="{{ theme_url }}/images/favicon.png">
{% block stylesheets %}
{% do assets.addCss('http://brick.a.ssl.fastly.net/Linux+Libertine:400,400i,700,700i/Open+Sans:400,400i,700,700i') %}
{% do assets.addCss('//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css') %}
{% do assets.addCss('theme://css/main.css') %}
{# {% do assets.addCss('theme://css/print.css') %} #}
{% endblock %}
{% block javascripts %}
{% do assets.add('jquery', {group: 'bottom', priority: 101}) %}
{% do assets.addJs('theme://js/jquery.fitvids.js', {group: 'bottom'}) %}
{% do assets.addJs('theme://js/readingTime.min.js', {group: 'bottom'}) %}
{% do assets.addJs('theme://js/index.js', {group: 'bottom'}) %}
{% endblock %}
{% block assets deferred %}
{{ assets.css()|raw }}
{{ assets.js()|raw }}
{% endblock %}
</head>
{% block body %}
<body>
{% endblock %}
{% set home = pages.find(config.system.home.alias) %}
{% block header %}
<a href="{{ base_url_relative }}" class="logo-readium"><span class="logo" style="background-image: url({{ uri.rootUrl() }}{{ site.logo }})"></span></a>
{% endblock %}
<!-- content start -->
{% block content %}
<div class="page-content">
<div class="wrapper">
{{ content|raw }}
</div>
</div>
{% endblock %}
<!-- content end -->
{% block footer %}
<!-- footer start -->
<footer class="site-footer">
<a class="subscribe" href="{{ base_url }}/blog.rss"> <span class="tooltip"> <i class="fa fa-rss"></i> Subscribe!</span></a>
<div class="inner">
<section class="copyright">All content copyright <a href="mailto:{{ site.email}}">{{ site.name }}</a> &copy; {{ "now"|date('Y') }} &bull; All rights reserved.</section>
<section class="poweredby">Made with <a href="http://getgrav.org"> Grav</a></section>
</div>
</footer>
<!-- footer end -->
{% endblock %}
{% block bottom %}
{{ assets.js('bottom')|raw }}
{% endblock %}
{% include 'partials/javascripts.html.twig' %}
</body>
</html>

View File

@@ -0,0 +1,15 @@
{% if base_url == '' %}
{% set base_url = '/' %}
{% endif %}
<nav class="pagination" role="navigation">
{% if pagination.hasNext %}
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl)|replace({'//':'/'}) %}
<a class="older-posts" href="{{ url }}">&larr; Older posts</a>
{% endif %}
<span class="page-number">Page {{ uri.currentPage }} of {{ pagination|length }}</span>
{% if pagination.hasPrev %}
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'/'}) %}
<a class="newer-posts" href="{{ url }}">Newer posts &rarr;</a>
{% endif %}
</nav>

View File

@@ -0,0 +1,21 @@
<div class="post-meta">
{% if page.header.link %}
<h1 class="post-title"><i class="fa fa-angle-double-right"></i> <a href="{{ page.header.link }}">{{ page.title }}</a></h1>
{% else %}
<h1 class="post-title">{{ page.title }}</h1>
{% endif %}
{% if page.template == 'post' %}
<div class="cf post-meta-text">
<div class="author-image" style="background-image: url({{ uri.rootUrl() }}{{ site.author.image }})">Blog Logo</div>
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{ site.author.name }}</h4>
on
<time datetime="{{ page.date | date(site.date_short) }}">{{ page.date | date(site.date_short) }}</time>
{% if page.taxonomy.tag|length > 0 %}
<span class="post-tags-set">in {% for tag in page.taxonomy.tag %}<span class="post-tag-{{tag}}"><a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tag }}">{{ tag }}</a></span>{%if not loop.last %} + {% endif %}{% endfor %}</span>
{% endif %}
</div>
<div style="text-align:center">
<a href="#topofpage" class="topofpage"><i class="fa fa-angle-down"></i></a>
</div>
{% endif %}
</div>