Skip to content
Snippets Groups Projects
Commit 2bdb0ad1 authored by Eloi Perdereau's avatar Eloi Perdereau
Browse files

fixes

parent 9ca36a22
No related branches found
No related tags found
1 merge request!5Big fat update, mostly cms configuration
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
{% if page.header.overlay_image contains "://" %} {% if page.header.overlay_image contains "://" %}
{% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %} {% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
{% elsif page.overlay_image %} {% elsif page.header.overlay_image %}
{% capture overlay_img_path %}{{ page.header.overlay_image | relative_url }}{% endcapture %} {% capture overlay_img_path %}{{ page.header.overlay_image | relative_url }}{% endcapture %}
{% endif %} {% endif %}
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
<div class="page__hero{% if page.header.type == 'overlay' %}--overlay{% endif %}" <div class="page__hero{% if page.header.type == 'overlay' %}--overlay{% endif %}"
style="{% if page.header.type == 'overlay' %} style="{% if page.header.type == 'overlay' %}
{% if page.header.overlay_color %} {% if page.header.color %}
background-color: {{ page.header.overlay_color | default: 'transparent' }}; background-color: {{ page.header.color | default: 'transparent' }};
{% endif %} {% endif %}
{% if page.header.overlay_image %} {% if page.header.overlay_image %}
background-image: background-image:
......
...@@ -26,15 +26,13 @@ layout: default ...@@ -26,15 +26,13 @@ layout: default
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %} {% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
<div class="page__inner-wrap"> <div class="page__inner-wrap">
{% unless page.header.overlay_color or page.overlay_image or author.banner %} {% unless page.header.type == 'overlay' %}
{% unless page.no_title %}
<header> <header>
{% if page.title %}<h1 id="page-title" class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %} {% if page.title %}<h1 id="page-title" class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
{% if page.read_time %} {% if page.read_time %}
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p> <p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
{% endif %} {% endif %}
</header> </header>
{% endunless %}
{% endunless %} {% endunless %}
<section class="page__content" itemprop="text"> <section class="page__content" itemprop="text">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment