Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 53 additions & 11 deletions _includes/layouts/common.liquid
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
theme:
name: orionrobots
---
{% comment %}{% capture BASE_PATH %}{% if eleventy.env.runMode == "serve" %}{% else %}{{ site.production_url }}{% endif %}{% endcapture %}{% endcomment %}
{% capture BASE_PATH %}{{ site.production_url }}{% endcapture %}
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ theme.name }}{% endcapture %}
Expand All @@ -25,9 +21,16 @@ theme:
<meta name="og:site_name" property="og:site_name" content="Orionrobots" />
<meta property="og:type" name="og:type" content="article" />
<meta name="og:title" property="og:title" content="{{ title }} | {{ site_title }} - {{ site_tagline }}" />
{% if description %}
<meta name="og:description" property="og:description" content="{{ description }}" />
{% endif %}
{% capture real_description -%}
{% if description -%}
{{ description }}
{%- else -%}
{{ content | strip_html | strip_newlines | truncatewords: 50 }}
{%- endif -%}
{%- endcapture %}
<meta name="og:description" property="og:description" content="{{ real_description }}" />
<meta name="description" content="{{ real_description }}">

{% if thumbnail %}
<meta name="og:image" property="og:image" content="{{ BASE_PATH }}/{% thumbnail_from_path thumbnail %}" />
<meta name="twitter:image" content="{{ BASE_PATH }}/{% thumbnail_from_path thumbnail %}" />
Expand All @@ -38,11 +41,9 @@ theme:

<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }} | {{ site_title }} - {{ site_tagline }}</title>
{% if description %}<meta name="description" content="{{ description }}">{% endif %}
<meta name="author" content="{{ author | default: "Danny Staple"}}">
<meta name="article:author" property="article:author" content="{{ author | default: "Danny Staple"}}">


<script type="text/javascript" src="/dist/bundle.js"></script>
{% capture css %}{% include css/bootstrap-style.css %}{% endcapture %}
<style>{{ css | cssmin }}
Expand All @@ -56,9 +57,35 @@ theme:
<body class="template">
<div class="container">
<!-- Header -->
{% include nav.liquid %}
{% include nav.liquid %}
<!-- Content -->
{{ content }}
<div class="row">
<div id="col-main" class="content {{ content_class }}">
<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>
<div class="row-fluid post-full">
<div class="span12">
{% block post_info %}{% endblock %}
</div>
</div>
<article>
{% block content %}{% endblock %}
{{ content }}
</article>
</div>
{% block side_bar %}{% endblock %}
</div>
<footer id="bottom">
<div class="row" id="footer-left">
<div class="co-lg-12">
Expand All @@ -83,4 +110,19 @@ theme:
</footer>
</div>
</body>
{% if using_mathjax %}
<script>
MathJax = {
tex: {
inlineMath: [['$', '$']]
},
svg: {
fontCache: 'global'
}
};
</script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
{% endif %}
{% block footer_scripts %}
{% endblock %}
</html>
60 changes: 17 additions & 43 deletions _includes/layouts/default.liquid
Original file line number Diff line number Diff line change
@@ -1,50 +1,24 @@
---
theme :
name : orionrobots
layout: common
---
<div class="row">
<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 }}
{% if comments %}
{% include disqus_thread %}
{% endif %}
{% assign content_class="col-md-8" %}

</article>
<aside class="col-md-4">
{% include sidebar-book.liquid %}
{% comment %}{% include sidebar_ads.liquid %}{% endcomment %}
</aside>
</div>
{% if using_mathjax %}
<script>
MathJax = {
tex: {
inlineMath: [['$', '$']]
},
svg: {
fontCache: 'global'
}
};
</script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
{% endif %}
{% layout layouts/common %}

{% block content %}
{% if comments %}
{% include disqus_thread %}
{% endif %}
{% endblock %}

{% block side_bar %}
<aside class="col-md-4">
{% include sidebar-book.liquid %}
</aside>
{% endblock %}

{% block footer_scripts %}
<script>
const newSlug = "{{ date | date: '%Y-%m-%d' }}-{{ slug }}";
document.addEventListener("DOMContentLoaded", function(event) {
document.addPostAdminButton(newSlug);
});
</script>
{% endblock %}
2 changes: 1 addition & 1 deletion _includes/layouts/gallery.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
layout: page
layout: default
---
{{ content }}
39 changes: 2 additions & 37 deletions _includes/layouts/index.liquid
Original file line number Diff line number Diff line change
@@ -1,37 +1,2 @@
---
theme :
name : orionrobots
layout: common
date: Last Modified
---
<div class="row">
<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>
</div>
{% if using_mathjax %}
<script>
MathJax = {
tex: {
inlineMath: [['$', '$']]
},
svg: {
fontCache: 'global'
}
};
</script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
{% endif %}
{% assign content_class="col-md-12" %}
{% layout layouts/common %}
20 changes: 6 additions & 14 deletions _includes/layouts/post.liquid
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 %}
1 change: 0 additions & 1 deletion content/2014/01/2014-01-30-my_plan.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
date: '2014-01-30'
description: What I plan to do first with the CNC
layout: default
tags:
- cnc projects
- plans
Expand Down
2 changes: 1 addition & 1 deletion content/2014/02/2014-02-03-unboxing-and-setup.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
date: '2014-02-03'
description: CNC Mill Unboxing and Setup
layout: default

tags:
- cnc projects
- stepper motors
Expand Down
2 changes: 1 addition & 1 deletion content/2014/02/2014-02-04-connecting-it-to-grbl.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Connecting my CNC 3020 to grbl
description: Connecting my CNC 3020 to grbl
tags: [cnc projects, arduino, grbl, electronics, parallel port]
layout: default

---

## Connections
Expand Down
2 changes: 1 addition & 1 deletion content/2014/02/2014-02-05-teardown.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
date: '2014-02-05'
description: Getting inside the CNC Machine electronics
layout: default

tags:
- cnc projects
- electronics
Expand Down
2 changes: 1 addition & 1 deletion content/2014/02/2014-02-06-it-moves.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: '2014-02-06'
layout: default

tags:
- cnc projects
- electronics
Expand Down
2 changes: 1 addition & 1 deletion content/2014/02/2014-02-07-real-test-new-plan-disaster.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
date: '2014-02-07'
description: An exciting day, but going to need to replace a part of it
layout: default

tags:
- cnc projects
- electronics
Expand Down
2 changes: 1 addition & 1 deletion content/2014/05/2014-05-09-cam-programs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: '2014-05-09'
layout: default

tags:
- cnc projects
- cam
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: '2014-05-16'
layout: default

tags:
- cnc projects
- cam
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside The Control Box
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target0.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - The Power and Spindle Board
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target1.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - Close up showing discretes and connectors
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target10.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - Closer view of stepper board
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target2.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - Close up showing IC numbers
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target3.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - The Stepper Motor Board - With Toshiba Stepper Controllers
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target4.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - Caps, connectors and flyback diodes
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target5.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - DC/DC converters, Optocouplers and schmitt trigger buffers
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target6.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - Closer view of stepper board
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target7.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - Closer view of stepper board
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target8.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - Closer view of stepper board
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/inside__control_box/target9.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: Inside CNC mill control box - Closer view of stepper board
tags: [electronics]
date: 2014-02-05
Expand Down
2 changes: 1 addition & 1 deletion galleries/unboxing_pictures/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: gallery
title: CNC Mill Unboxing Pictures
date: 2014-02-06
---
Expand Down
Loading
Loading