From c6bf5f7c895287d2028f6024265913b59784a154 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Sun, 27 Sep 2020 17:45:13 -0500 Subject: Bring all of jekyll-text-theme _includes into site --- _includes/article/footer/author-profile.html | 47 ++++++++++++++++++++++++++++ _includes/article/footer/custom.html | 3 ++ _includes/article/footer/license.html | 14 +++++++++ _includes/article/footer/subscribe.html | 6 ++++ _includes/article/top/custom.html | 3 ++ 5 files changed, 73 insertions(+) create mode 100644 _includes/article/footer/author-profile.html create mode 100644 _includes/article/footer/custom.html create mode 100644 _includes/article/footer/license.html create mode 100644 _includes/article/footer/subscribe.html create mode 100644 _includes/article/top/custom.html (limited to '_includes/article') diff --git a/_includes/article/footer/author-profile.html b/_includes/article/footer/author-profile.html new file mode 100644 index 0000000..8b0d72d --- /dev/null +++ b/_includes/article/footer/author-profile.html @@ -0,0 +1,47 @@ +{%- assign _author = include.author -%} + +{%- if _author.type == 'organization' -%} + {%- assign _author_itemtype = 'http://schema.org/Organization' -%} +{%- else -%} + {%- assign _author_itemtype = 'http://schema.org/Person' -%} +{%- endif -%} + +
+ {%- if _author.avatar -%} + {%- if _author.url -%} + + {%- endif -%} + {%- include snippets/get-nav-url.html path=_author.avatar -%} + {%- assign _author_avatar = __return -%} + + {%- if _author.url -%} + + {%- endif -%} + {%- endif -%} + + +
+ + {%- if _author.name -%} + +

+ {%- if _author.url -%} + + + {%- endif -%} + {{ _author.name }} + {%- if _author.url -%} + + {%- endif -%} +

+ {%- endif -%} + + {%- if _author.bio -%} +

{{ _author.bio }}

+ {%- endif -%} + + +
+
diff --git a/_includes/article/footer/custom.html b/_includes/article/footer/custom.html new file mode 100644 index 0000000..edcd06d --- /dev/null +++ b/_includes/article/footer/custom.html @@ -0,0 +1,3 @@ + + + diff --git a/_includes/article/footer/license.html b/_includes/article/footer/license.html new file mode 100644 index 0000000..a2c1535 --- /dev/null +++ b/_includes/article/footer/license.html @@ -0,0 +1,14 @@ +{%- include snippets/get-locale-string.html key='LICENSE_ANNOUNCE' -%} +{%- assign _license_announce = __return -%} + +{%- if include.license -%} + + {%-assign _license_name = '[NAME]' | replace: "[URL]", include.license.url | replace: "[NAME]", include.license.name -%} +
+

{{ _license_announce | replace: "[LICENSE]", _license_name }} + + {{ include.license.name }} + +

+
+{%- endif -%} diff --git a/_includes/article/footer/subscribe.html b/_includes/article/footer/subscribe.html new file mode 100644 index 0000000..cb9a169 --- /dev/null +++ b/_includes/article/footer/subscribe.html @@ -0,0 +1,6 @@ +{%- assign _paths_rss = site.paths.rss | default: site.data.variables.default.paths.rss -%} +{%- include snippets/get-nav-url.html path=_paths_rss -%} +{%- assign _paths_rss = __return -%} +{%- include snippets/get-locale-string.html key='SUBSCRIBE' -%} +{%- assign _locale_nav_subscribe = __return -%} +
{{ _locale_nav_subscribe }}
diff --git a/_includes/article/top/custom.html b/_includes/article/top/custom.html new file mode 100644 index 0000000..12f393d --- /dev/null +++ b/_includes/article/top/custom.html @@ -0,0 +1,3 @@ + + + -- cgit v1.2.3