init
This commit is contained in:
@@ -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">{{ 'METADATA.IN_POST'|t }} {% 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>
|
||||
@@ -0,0 +1,74 @@
|
||||
<!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 %}{{ site.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('theme://vendors/fonts/css/all.min.css') %}
|
||||
{% do assets.addCss('theme://vendors/fontawesome/css/all.min.css') %}
|
||||
{% do assets.addCss('theme://css/main.css') %}
|
||||
{% do assets.addCss('theme://css/custom.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/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) %}
|
||||
|
||||
<!-- 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>{{ 'LINKS.RSS'|t }}</span></a>
|
||||
<div class="inner">
|
||||
<section class="copyright">{{ 'FOOTER.CONTENT'|t }} <a href="mailto:{{ site.email}}">{{ site.name }}</a> {{ "now"|date('Y') }} • {{ 'FOOTER.RIGHTS'|t }} <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons BY-SA</a></section>
|
||||
<section class="poweredby">{{ 'FOOTER.GRAV'|t }} <a href="http://getgrav.org" target="_blank"> Grav</a> {{ 'FOOTER.GRAV_THEME'|t }} <a href="https://git.guilo.ch/loicguib/custom-mediator-theme-grav" target="_blank"> Mediator modifié</a></section>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- footer end -->
|
||||
{% endblock %}
|
||||
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom')|raw }}
|
||||
{% endblock %}
|
||||
{% include 'partials/javascripts.html.twig' %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -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 }}">← {{ 'PAGINATION.OLDER'|t }}</a>
|
||||
{% endif %}
|
||||
<span class="page-number">Page {{ uri.currentPage }} {{ 'PAGINATION.OF'|t }} {{ pagination|length }}</span>
|
||||
{% if pagination.hasPrev %}
|
||||
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'/'}) %}
|
||||
<a class="newer-posts" href="{{ url }}">{{ 'PAGINATION.NEWER'|t }} →</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
@@ -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 }})">{{ 'ARTICLE.AUTHOR_LOGO'|t }}</div>
|
||||
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{ site.author.name }}</h4>
|
||||
{{ 'METADATA.ON_POST'|t }}
|
||||
<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">{{ 'METADATA.IN_POST'|t }} {% 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>
|
||||
Reference in New Issue
Block a user