1- ---
2- theme:
3- name: orionrobots
4- ---
51{% comment %}{% capture BASE_PATH %}{% if eleventy.env.runMode == "serve" %}{% else %}{{ site.production_url }}{% endif %}{% endcapture %}{% endcomment %}
62{% capture BASE_PATH %}{{ site .production_url }}{% endcapture %}
73{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ theme .name }}{% endcapture %}
@@ -25,9 +21,16 @@ theme:
2521 <meta name =" og:site_name" property =" og:site_name" content =" Orionrobots" />
2622 <meta property =" og:type" name =" og:type" content =" article" />
2723 <meta name =" og:title" property =" og:title" content =" {{ title }} | {{ site_title }} - {{ site_tagline }}" />
28- {% if description %}
29- <meta name =" og:description" property =" og:description" content =" {{ description }}" />
30- {% endif %}
24+ {% capture real_description -%}
25+ {% if description -%}
26+ {{ description }}
27+ {%- else -%}
28+ {{ content | strip_html | strip_newlines | truncatewords: 50 }}
29+ {%- endif -%}
30+ {%- endcapture %}
31+ <meta name =" og:description" property =" og:description" content =" {{ real_description }}" />
32+ <meta name =" description" content =" {{ real_description }}" >
33+
3134 {% if thumbnail %}
3235 <meta name =" og:image" property =" og:image" content =" {{ BASE_PATH }}/{% thumbnail_from_path thumbnail %}" />
3336 <meta name =" twitter:image" content =" {{ BASE_PATH }}/{% thumbnail_from_path thumbnail %}" />
@@ -38,11 +41,9 @@ theme:
3841
3942 <meta name =" viewport" content =" width=device-width, initial-scale=1" >
4043 <title >{{ title }} | {{ site_title }} - {{ site_tagline }}</title >
41- {% if description %}<meta name =" description" content =" {{ description }}" >{% endif %}
4244 <meta name =" author" content =" {{ author | default: "Danny Staple" }}" >
4345 <meta name =" article:author" property =" article:author" content =" {{ author | default: "Danny Staple" }}" >
4446
45-
4647 <script type =" text/javascript" src =" /dist/bundle.js" ></script >
4748 {% capture css %}{% include css /bootstrap-style .css %}{% endcapture %}
4849 <style >{{ css | cssmin }}
@@ -56,9 +57,35 @@ theme:
5657 <body class =" template" >
5758 <div class =" container" >
5859 <!-- Header -->
59- {% include nav .liquid %}
60+ {% include nav .liquid %}
6061 <!-- Content -->
61- {{ content }}
62+ <div class =" row" >
63+ <div id =" col-main" class =" content {{ content_class }}" >
64+ <div class =" gcse-searchresults" ></div >
65+ <nav class =" row g-0 border rounded tag-row" >
66+ <div class =" row g-0" >
67+ {% unless tags == empty %}
68+ <nav >
69+ {% assign tags_list = tags %}
70+ {% include tags_list %}
71+ </nav >
72+ {% endunless %}
73+ </div >
74+ <div class =" row g-0" >{% include social-sharing %}</div >
75+ </nav >
76+ <h2 class =" page-header" >{{ title }} {% if tagline %}<small >{{tagline }}</small >{% endif %}</h2 >
77+ <div class =" row-fluid post-full" >
78+ <div class =" span12" >
79+ {% block post_info %}{% endblock %}
80+ </div >
81+ </div >
82+ <article >
83+ {% block content %}{% endblock %}
84+ {{ content }}
85+ </article >
86+ </div >
87+ {% block side_bar %}{% endblock %}
88+ </div >
6289 <footer id =" bottom" >
6390 <div class =" row" id =" footer-left" >
6491 <div class =" co-lg-12" >
@@ -83,4 +110,19 @@ theme:
83110 </footer >
84111 </div >
85112 </body >
113+ {% if using_mathjax %}
114+ <script >
115+ MathJax = {
116+ tex: {
117+ inlineMath: [[' $' , ' $' ]]
118+ },
119+ svg: {
120+ fontCache: ' global'
121+ }
122+ };
123+ </script >
124+ <script id =" MathJax-script" async src =" https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" ></script >
125+ {% endif %}
126+ {% block footer_scripts %}
127+ {% endblock %}
86128</html >
0 commit comments