File tree 5 files changed +47
-65
lines changed
5 files changed +47
-65
lines changed Original file line number Diff line number Diff line change 1
- ---
2
- theme:
3
- name: orionrobots
4
- ---
5
1
{% comment %}{% capture BASE_PATH %}{% if eleventy.env.runMode == "serve" %}{% else %}{{ site.production_url }}{% endif %}{% endcapture %}{% endcomment %}
6
2
{% capture BASE_PATH %}{{ site .production_url }}{% endcapture %}
7
3
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ theme .name }}{% endcapture %}
@@ -59,8 +55,31 @@ theme:
59
55
{% include nav .liquid %}
60
56
<!-- Content -->
61
57
<div class =" row" >
62
- {% block content %}{% endblock %}
63
- {{ content }}
58
+ <div id =" col-main" class =" content {{ content_class }}" >
59
+ <div class =" gcse-searchresults" ></div >
60
+ <nav class =" row g-0 border rounded tag-row" >
61
+ <div class =" row g-0" >
62
+ {% unless tags == empty %}
63
+ <nav >
64
+ {% assign tags_list = tags %}
65
+ {% include tags_list %}
66
+ </nav >
67
+ {% endunless %}
68
+ </div >
69
+ <div class =" row g-0" >{% include social-sharing %}</div >
70
+ </nav >
71
+ <h2 class =" page-header" >{{ title }} {% if tagline %}<small >{{tagline }}</small >{% endif %}</h2 >
72
+ <div class =" row-fluid post-full" >
73
+ <div class =" span12" >
74
+ {% block post_info %}{% endblock %}
75
+ </div >
76
+ </div >
77
+ <article >
78
+ {% block content %}{% endblock %}
79
+ {{ content }}
80
+ </article >
81
+ </div >
82
+ {% block side_bar %}{% endblock %}
64
83
</div >
65
84
<footer id =" bottom" >
66
85
<div class =" row" id =" footer-left" >
@@ -99,4 +118,6 @@ theme:
99
118
</script >
100
119
<script id =" MathJax-script" async src =" https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" ></script >
101
120
{% endif %}
121
+ {% block footer_scripts %}
122
+ {% endblock %}
102
123
</html >
Original file line number Diff line number Diff line change 1
- ---
2
- theme :
3
- name : orionrobots
4
- layout: common
5
- ---
6
- <article id =" col-main" class =" content col-md-8" >
7
- <div class =" gcse-searchresults" ></div >
8
- <nav class =" row g-0 border rounded tag-row" >
9
- <div class =" row g-0" >
10
- {% unless tags == empty %}
11
- <nav >
12
- {% assign tags_list = tags %}
13
- {% include tags_list %}
14
- </nav >
15
- {% endunless %}
16
- </div >
17
- <div class =" row g-0" >{% include social-sharing %}</div >
18
- </nav >
19
- <h2 class =" page-header" >{{ title }} {% if tagline %}<small >{{tagline }}</small >{% endif %}</h2 >
20
- {{ content }}
1
+ {% assign content_class ="col-md-8" %}
2
+
3
+ {% layout layouts /common %}
4
+
5
+ {% block content %}
21
6
{% if comments %}
22
7
{% include disqus_thread %}
23
8
{% endif %}
9
+ {% endblock %}
24
10
25
- </ article >
11
+ {% block side_bar %}
26
12
<aside class =" col-md-4" >
27
13
{% include sidebar-book .liquid %}
28
- {% comment %}{% include sidebar_ads.liquid %}{% endcomment %}
29
14
</aside >
15
+ {% endblock %}
16
+
17
+ {% block footer_scripts %}
30
18
<script >
31
19
const newSlug = " {{ date | date: '%Y-%m-%d' }}-{{ slug }}" ;
32
20
document .addEventListener (" DOMContentLoaded" , function (event ) {
33
21
document .addPostAdminButton (newSlug);
34
22
});
35
23
</script >
24
+ {% endblock %}
Original file line number Diff line number Diff line change 1
1
---
2
- layout: page
2
+ layout: default
3
3
---
4
4
{{ content }}
Original file line number Diff line number Diff line change 1
- ---
2
- theme :
3
- name : orionrobots
4
- layout: common
5
- date: Last Modified
6
- ---
7
- <article id =" col-main" class =" content col-md-12" >
8
- <div class =" gcse-searchresults" ></div >
9
- <nav class =" row g-0 border rounded tag-row" >
10
- <div class =" row g-0" >
11
- {% unless tags == empty %}
12
- <nav >
13
- {% assign tags_list = tags %}
14
- {% include tags_list %}
15
- </nav >
16
- {% endunless %}
17
- </div >
18
- <div class =" row g-0" >{% include social-sharing %}</div >
19
- </nav >
20
- <h2 class =" page-header" >{{ title }} {% if tagline %}<small >{{tagline }}</small >{% endif %}</h2 >
21
- {{ content }}
22
- </article >
1
+ {% assign content_class ="col-md-12" %}
2
+ {% layout layouts /common %}
Original file line number Diff line number Diff line change 1
- ---
2
- layout: default
3
- ---
4
- <div class =" row-fluid post-full" >
5
- <div class =" span12" >
6
- <div class =" date" >
7
- <time >{{ page .date | date_to_long_string }}</time >
8
- <div class =" author" >by {{ page .author | default: author | default: "Danny Staple" }}</div >
9
- </div >
10
-
11
- <article class =" content" >
12
- {{ content }}
13
- </article >
14
- </div >
1
+ {% layout layouts /default %}
2
+ {% block post_info %}
3
+ <div class =" date text-secondary" >
4
+ <time class =" d-inline" >{{ page .date | date_to_long_string }}</time >
5
+ <div class =" author d-inline" >by {{ page .author | default: author | default: "Danny Staple" }}</div >
15
6
</div >
7
+ {% endblock %}
You can’t perform that action at this time.
0 commit comments