-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5b95d5
commit df99c1a
Showing
14 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#footer { | ||
background: #f3f3f3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,37 @@ | ||
{% extends 'partials/base.html.twig' %} | ||
|
||
{% block content %} | ||
<div class="col-sm-12"> | ||
{{ page.content }} | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
{{ page.content }} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{# List 3 latest childpages of /home as posts #} | ||
{% block latestPosts %} | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
|
||
{% for post in page.find('/home').children.order('date', 'desc').slice(0, 3) %} | ||
|
||
{{dump(post.header.publish_date)}} | ||
|
||
<h2>{{ post.title }}</h2> | ||
{% if post.summary %} | ||
{{ post.summary(200) }} | ||
{% else %} | ||
<em>No summary available</em> | ||
{% endif %} | ||
|
||
{% if post.header.publish_date %} | ||
<div class="row"> | ||
<div class="col-sm-12 mtl mbl">Created at {{ post.header.publish_date }}</div> | ||
</div> | ||
{% endif %} | ||
|
||
{% endfor %} | ||
|
||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="clearfix"></div> | ||
<footer id="footer"> | ||
<footer id="footer" class="pal mtl"> | ||
// footer | ||
</footer> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.