-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce layouts - use common parts with blocks
- Loading branch information
1 parent
f631bf7
commit 363458f
Showing
5 changed files
with
47 additions
and
65 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 |
---|---|---|
@@ -1,35 +1,24 @@ | ||
--- | ||
theme : | ||
name : orionrobots | ||
layout: common | ||
--- | ||
<article id="col-main" class="content col-md-8"> | ||
<div class="gcse-searchresults"></div> | ||
<nav class="row g-0 border rounded tag-row"> | ||
<div class="row g-0"> | ||
{% unless tags == empty %} | ||
<nav> | ||
{% assign tags_list = tags %} | ||
{% include tags_list %} | ||
</nav> | ||
{% endunless %} | ||
</div> | ||
<div class="row g-0">{% include social-sharing %}</div> | ||
</nav> | ||
<h2 class="page-header">{{ title }} {% if tagline %}<small>{{tagline}}</small>{% endif %}</h2> | ||
{{ content }} | ||
{% assign content_class="col-md-8" %} | ||
|
||
{% layout layouts/common %} | ||
|
||
{% block content %} | ||
{% if comments %} | ||
{% include disqus_thread %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
</article> | ||
{% block side_bar %} | ||
<aside class="col-md-4"> | ||
{% include sidebar-book.liquid %} | ||
{% comment %}{% include sidebar_ads.liquid %}{% endcomment %} | ||
</aside> | ||
{% endblock %} | ||
|
||
{% block footer_scripts %} | ||
<script> | ||
const newSlug = "{{ date | date: '%Y-%m-%d' }}-{{ slug }}"; | ||
document.addEventListener("DOMContentLoaded", function(event) { | ||
document.addPostAdminButton(newSlug); | ||
}); | ||
</script> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
layout: page | ||
layout: default | ||
--- | ||
{{ 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,22 +1,2 @@ | ||
--- | ||
theme : | ||
name : orionrobots | ||
layout: common | ||
date: Last Modified | ||
--- | ||
<article id="col-main" class="content col-md-12"> | ||
<div class="gcse-searchresults"></div> | ||
<nav class="row g-0 border rounded tag-row"> | ||
<div class="row g-0"> | ||
{% unless tags == empty %} | ||
<nav> | ||
{% assign tags_list = tags %} | ||
{% include tags_list %} | ||
</nav> | ||
{% endunless %} | ||
</div> | ||
<div class="row g-0">{% include social-sharing %}</div> | ||
</nav> | ||
<h2 class="page-header">{{ title }} {% if tagline %}<small>{{tagline}}</small>{% endif %}</h2> | ||
{{ content }} | ||
</article> | ||
{% assign content_class="col-md-12" %} | ||
{% layout layouts/common %} |
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,15 +1,7 @@ | ||
--- | ||
layout: default | ||
--- | ||
<div class="row-fluid post-full"> | ||
<div class="span12"> | ||
<div class="date"> | ||
<time>{{ page.date | date_to_long_string }}</time> | ||
<div class="author">by {{ page.author | default: author | default: "Danny Staple" }}</div> | ||
</div> | ||
|
||
<article class="content"> | ||
{{ content }} | ||
</article> | ||
</div> | ||
{% layout layouts/default %} | ||
{% block post_info %} | ||
<div class="date text-secondary"> | ||
<time class="d-inline">{{ page.date | date_to_long_string }}</time> | ||
<div class="author d-inline">by {{ page.author | default: author | default: "Danny Staple" }}</div> | ||
</div> | ||
{% endblock %} |