Skip to content

Commit ae63734

Browse files
author
Matthieu Oger
committed
Tutorial layout: add new metadatas.
1 parent 1025314 commit ae63734

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

_layouts/tutorial.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
</head>
88
<body>
99
<div class="page tutorial" id="page">
10-
1110
<!-- reduced header -->
1211
<header class="page-header">
1312
<nav>
@@ -57,12 +56,21 @@
5756

5857
<!-- post layout -->
5958
<article class="entry">
59+
{% if page.show_ads == nil or page.show_ads == true %}
6060
{% include ad.html %}
61+
{% endif %}
6162

6263
<h2 class="entry__title">
6364
<a href="{{ page.url | remove: 'index.html' }}" title="{{ page.title }}">{{ page.title }}</a>
6465
</h2>
6566

67+
{% if page.subtitle %}
68+
<h3 class="entry__subtitle">
69+
{{ page.subtitle }}
70+
</h3>
71+
{% endif %}
72+
73+
{% if page.show_metadata == nil or page.show_metadata == true %}
6674
<aside class="entry__metadata">
6775
{% include author.html %}
6876

@@ -72,6 +80,7 @@ <h2 class="entry__title">
7280
</p>
7381
</section>
7482
</aside>
83+
{% endif %}
7584

7685
<section class="entry__content">
7786
{{ content }}
@@ -109,8 +118,11 @@ <h2 class="entry__title">
109118
</footer>
110119
</div>
111120

112-
{% include ga.html %}
121+
{% if page.show_ads == nil or page.show_ads == true %}
113122
{% include fusionads.html %}
123+
{% endif %}
124+
125+
{% include ga.html %}
114126
{% include js.html %}
115127
</body>
116128
</html>

0 commit comments

Comments
 (0)