slider for blog details
This commit is contained in:
@@ -31,11 +31,11 @@
|
||||
|
||||
<header id="header">
|
||||
<div class="container">
|
||||
<div class="logo" {% if not Data.slider %}style="max-width: 400px;"{% endif %}>
|
||||
<div class="logo" {% if not Data.slider and not Data.details.slider %}style="max-width: 400px;"{% endif %}>
|
||||
<a href="{{ "/"|relative_path }}">
|
||||
<picture>
|
||||
<source media="(max-width: 768px)" srcset="project-files/img/logo_text.png">
|
||||
<img src="project-files/img/logo{% if not Data.slider %}_text{% endif %}.png" alt="mark2web Logo">
|
||||
<img src="project-files/img/logo{% if not Data.slider and not Data.details.slider %}_text{% endif %}.png" alt="mark2web Logo">
|
||||
</picture>
|
||||
</a>
|
||||
</div>
|
||||
@@ -52,6 +52,7 @@
|
||||
|
||||
<!-- ========== Slider ========== -->
|
||||
<section class="slider white_arrows" data-dots="true" data-arrows="true">
|
||||
{% block slider %}
|
||||
{% for sl in Data.slider %}
|
||||
<div class="slide">
|
||||
<img
|
||||
@@ -62,6 +63,7 @@
|
||||
alt="{{ sl.alt }}" style="opacity:{{ sl.opacity|default:1 }}">
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock slider %}
|
||||
</section>
|
||||
|
||||
<!-- ========== Navigation ========== -->
|
||||
@@ -124,7 +126,7 @@
|
||||
<pre>{{ Data|json:"pretty" }}</pre>
|
||||
|
||||
<h3>NavMap</h3>
|
||||
<pre>{{ NavMap|json: "pretty" }}</pre>
|
||||
<pre>{{ NavMap|json:"pretty" }}</pre>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user