From bcf9b230be6d74c71567fd0771b31d47d8dd39c7 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 21 Jan 2021 17:22:53 -0700 Subject: build the blog with nix --- src/_includes/footer.html | 7 ++++++ src/_includes/google-analytics.html | 12 +++++++++++ src/_includes/head.html | 18 ++++++++++++++++ src/_includes/header.html | 36 +++++++++++++++++++++++++++++++ src/_includes/image.html | 43 +++++++++++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+) create mode 100644 src/_includes/footer.html create mode 100644 src/_includes/google-analytics.html create mode 100644 src/_includes/head.html create mode 100644 src/_includes/header.html create mode 100644 src/_includes/image.html (limited to 'src/_includes') diff --git a/src/_includes/footer.html b/src/_includes/footer.html new file mode 100644 index 0000000..f66a879 --- /dev/null +++ b/src/_includes/footer.html @@ -0,0 +1,7 @@ + + diff --git a/src/_includes/google-analytics.html b/src/_includes/google-analytics.html new file mode 100644 index 0000000..e9afb20 --- /dev/null +++ b/src/_includes/google-analytics.html @@ -0,0 +1,12 @@ + + diff --git a/src/_includes/head.html b/src/_includes/head.html new file mode 100644 index 0000000..9ea6d45 --- /dev/null +++ b/src/_includes/head.html @@ -0,0 +1,18 @@ + + + + + {%- seo -%} + + + + + + + {%- feed_meta -%} + {%- if jekyll.environment == 'production' and site.google_analytics -%} + {%- include google-analytics.html -%} + {%- endif -%} + + + diff --git a/src/_includes/header.html b/src/_includes/header.html new file mode 100644 index 0000000..888a8dc --- /dev/null +++ b/src/_includes/header.html @@ -0,0 +1,36 @@ + diff --git a/src/_includes/image.html b/src/_includes/image.html new file mode 100644 index 0000000..8875050 --- /dev/null +++ b/src/_includes/image.html @@ -0,0 +1,43 @@ +
+ + + {%- if include.width %} + {%- for targetWidth in site.img_widths reversed -%} + {% if include.width <= targetWidth %}{% continue %}{% endif %} + {%- if targetWidth > 1000 %} + 500 %} + + {%- endfor %} + {%- endif %} + {{ include.descr }} + + + {%- if include.descr %}
{{ include.descr }}{%- endif %} +
-- cgit v1.2.3