aboutsummaryrefslogtreecommitdiff
path: root/_includes/author.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/author.html')
-rw-r--r--_includes/author.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/_includes/author.html b/_includes/author.html
new file mode 100644
index 0000000..8652c82
--- /dev/null
+++ b/_includes/author.html
@@ -0,0 +1,17 @@
+{%- assign author = site.data.authors[page.author] -%}
+
+{%- if author -%}
+
+ by 
+
+{%- unless author.email == empty -%}
+<a href="mailto:{{- author.email | strip | url_encode -}}?subject={{- page.title | default: site.title | strip | normalize_whitespace | uri_escape -}}">{{- author.name | strip | normalize_whitespace | xml_escape -}}</a>
+{%- endunless -%}
+
+{%- if author.email == empty -%}
+{{- author.name | strip | normalize_whitespace | xml_escape -}}
+{%- endif -%}
+
+&nbsp;
+
+{%- endif -%} \ No newline at end of file