Skip to content
This repository was archived by the owner on Apr 7, 2019. It is now read-only.

Commit 16fe2ba

Browse files
committed
utilizing Template Inheritance for Templates
1 parent a1b1cf1 commit 16fe2ba

File tree

7 files changed

+81
-81
lines changed

7 files changed

+81
-81
lines changed

dist/_patterns/03-templates/00-homepage.twig

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="page" id="page">
2+
{% include "organisms-header" %}
3+
<div role="main">
4+
{% block content %}
5+
<p>Content Placeholder</p>
6+
{% endblock %}
7+
</div><!--End role=main-->
8+
{% include "organisms-footer" %}
9+
</div>

dist/_patterns/03-templates/01-blog.twig

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{% extends "templates-site" %}
2+
{% block content %}
3+
{% if emergency %}
4+
{% include "molecules-alert:error" %}
5+
{% endif %}
6+
{% if hero %}
7+
{% include "molecules-block-hero" %}
8+
{% endif %}
9+
10+
<div class="g g-3up">
11+
{% for tout in touts %}
12+
<div class="gi">
13+
{% include "molecules-block-inset" %}
14+
</div>
15+
{% endfor %}
16+
</div><!--end 3up-->
17+
18+
<hr/>
19+
20+
<div class="l-two-col">
21+
<div class="l-main">
22+
<section class="section latest-posts">
23+
<h2 class="section-title">Latest Posts</h2>
24+
<ul class="post-list">
25+
{% for post in latest_posts %}
26+
<li>{% include "molecules-media-block" %}</li>
27+
{% endfor %}
28+
</ul>
29+
<a href="#" class="text-btn">View more posts</a>
30+
</section>
31+
</div><!--end .l-main-->
32+
33+
<div class="l-sidebar">
34+
{% include "organisms-recent-tweets" %}
35+
</div><!--end .l-sidebar-->
36+
</div><!--end .l-two-col-->
37+
{% endblock %}

dist/_patterns/03-templates/02-article.twig

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% extends "templates-site" %}
2+
{% block content %}
3+
<h1 class="section-title">Our Outdoor Blog</h1>
4+
<div class="l-two-col">
5+
<div class="l-main">
6+
{% include "organisms-latest-posts" %}
7+
{% include "molecules-pagination" %}
8+
</div><!--end l-main-->
9+
10+
<div class="l-sidebar">
11+
{% include "organisms-recent-tweets" %}
12+
</div><!--end l-sidebar-->
13+
</div><!--end two-col-->
14+
{% endblock %}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% extends "templates-site" %}
2+
{% block content %}
3+
<div class="l-two-col">
4+
<div class="l-main">
5+
<article class="article">
6+
<header class="article-header">
7+
<h1>Article Headline Lorem ipsum dolor sit aweofij</h1>
8+
{% include "molecules-byline" %}
9+
</header>
10+
{% include "organisms-article-body" %}
11+
</article><!--end .article-->
12+
{% include "molecules-social-share" %}
13+
{% include "organisms-comment-thread" %}
14+
</div><!--end l-main-->
15+
16+
<div class="l-sidebar">
17+
{% include "organisms-related-posts" %}
18+
{% include "organisms-recent-tweets" %}
19+
</div><!--end l-sidebar-->
20+
</div><!--end l-two-col-->
21+
{% endblock %}

0 commit comments

Comments
 (0)