add content + modif html

This commit is contained in:
2019-01-30 12:24:08 +01:00
parent 858bff0f81
commit fd2eac3dc4
46 changed files with 454 additions and 205 deletions
@@ -23,10 +23,8 @@
{% endblock %}
{% block body %}
<section id="body-wrapper" class="section blog-listing">
<section class="container {{ grid_size }}">
<section id="body-wrapper">
{% embed 'partials/layout.html.twig' with {blog: page} %}
{% block item %}
<div class="bricklayer">
@@ -43,9 +41,6 @@
{% endblock %}
{% endembed %}
</section>
</section>
<script>
//Bricklayer
@@ -23,31 +23,25 @@
{% block javascripts %}
{% do assets.addJs('jquery', 101) %}
{% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/script_k.js', {group:'bottom'}) %}
{% endblock %}
{{ assets.js()|raw }}
{% endblock head %}
</head>
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
<body id="top">
{% block header %}
<header class="section">
<h1>{{ site.title }}</h1>
<nav class="dropmenu animated">
{% block header_navigation %}
{% include 'partials/navigation.html.twig' %}
{% endblock %}
</nav>
<header>
<a href="/"><h1>{{ site.title }}</h1></a>
</header>
{% endblock %}
<section id="start">
{% block body %}
<section class="container {{ grid_size }}">
<section>
{% block content %}{% endblock %}
</section>
@@ -55,10 +49,6 @@
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}
{% endblock %}
</section>
@@ -1,6 +1,4 @@
<div class="content-item h-entry">
<div>
{% if not hero_image_name %}
<div class="content-title text-center">
@@ -21,13 +19,9 @@
{{ image.html }}
{% endfor %}
</div>
</div>
<p class="prev-next text-center">
{% if not page.isLast %}
<a class="btn" href="{{ page.prevSibling.url }}"><i class="fa fa-angle-left"></i> {{ 'THEME_QUARK.BLOG.ITEM.PREV_POST'|t }}</a>
{% endif %}
@@ -1,17 +1,16 @@
<div class="card">
{% set image = page.media.images|first %}
{% if image %}
<div class="card-image">
<a href="{{ page.url }}">{{ image.cropZoom(800,400).html }}</a>
</div>
{% endif %}
<div class="card-header">
<div class="card-image">
<a href="{{ page.url }}">{{ image.cropZoom(800,400).html }}</a>
</div>
<div class="card-title">
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
</div>
</div>
<div class="card-footer">
{% include 'partials/blog/taxonomy.html.twig' %}
</div>
{% endif %}
<div class="card-header">
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
</div>
<div class="card-footer">
{% include 'partials/blog/taxonomy.html.twig' %}
</div>
</div>
@@ -1,11 +1,11 @@
{% set title_level = title_level ?: 'h2' %}
{% if page.header.link %}
<{{ title_level }} class="p-name mt-1">
<{{ title_level }}>
{% if page.header.continue_link is not same as(false) %}
<a href="{{ page.url }}"><i class="fa fa-angle-double-right u-url"></i></a>
<a href="{{ page.url }}"><i></i></a>
{% endif %}
<a href="{{ page.header.link }}" class="u-url">{{ page.title }}</a>
<a href="{{ page.header.link }}">{{ page.title }}</a>
</{{ title_level }}>
{% else %}
<{{ title_level }} class="p-name mt-1"><a href="{{ page.url }}" class="u-url">{{ page.title }}</a></{{ title_level }}>
<{{ title_level }}><a href="{{ page.url }}">{{ page.title }}</a></{{ title_level }}>
{% endif %}
@@ -11,4 +11,3 @@
</div>
{% endif %}
</div>
@@ -43,12 +43,18 @@
{% endif %}
<div class="sidebar-left">
</div>
<div class="sidebar-right">
{% set options = { items: {'@page': '/projets' } } %}
{% set options = { items: {'@page': '/contact' } } %}
{% set my_collection = page.collection(options) %}
<ul>
{% for p in my_collection %}
<a href="{{p.url}}"><li>{{ p.title }}</li></a>
{% endfor %}
</ul>
</div>
<div class="sidebar-right">
{% set options = { items: {'@page': '/projets' } } %}
{% set my_collection = page.collection(options) %}
<ul>
{% for p in my_collection %}
<a href="{{p.url}}"><li>{{ p.title }}</li></a>
@@ -1,10 +1,8 @@
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% if taxlist %}
<span class="tags">
{% for tax,value in taxlist[taxonomy] %}
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
<a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
<a class="label {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
{% endfor %}
</span>
{% endif %}