-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from stuartmaxwell:update-templates
Sidebar only on djpress pages
- Loading branch information
Showing
5 changed files
with
37 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends 'base.html' %} | ||
{% load djpress_tags %} | ||
|
||
{% block main_classes %}main-sidebar{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<div> | ||
{% block djpress_content %}{% endblock %} | ||
</div> | ||
<aside class="hide-at-s"> | ||
<nav> | ||
<ul> | ||
<li><strong>Recent Posts</strong></li> | ||
</ul> | ||
<ul> | ||
{% get_recent_posts as posts %} | ||
{% for post in posts %} | ||
<li><a href="{{ post.url }}">{{ post.title }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
</aside> | ||
|
||
{% endblock content %} |
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,12 +1,12 @@ | ||
{% extends 'base.html' %} | ||
{% extends 'djpress/stuartmnz/base.html' %} | ||
{% load djpress_tags %} | ||
|
||
|
||
{% block content %} | ||
{% block djpress_content %} | ||
|
||
<article> | ||
{% post_title outer_tag="h1" %} | ||
{% post_content outer_tag="section" %} | ||
</article> | ||
|
||
{% endblock content %} | ||
{% endblock djpress_content %} |
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,9 +1,9 @@ | ||
{% extends 'base.html' %} | ||
{% extends 'djpress/stuartmnz/base.html' %} | ||
{% load djpress_tags %} | ||
|
||
|
||
{% block content %} | ||
{% block djpress_content %} | ||
|
||
{% include "djpress/stuartmnz/snippets/post_detail.html" %} | ||
|
||
{% endblock content %} | ||
{% endblock djpress_content %} |