aboutsummaryrefslogtreecommitdiff
path: root/_includes/author.html
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-02-14 13:48:55 +0300
committerValentin Popov <valentin@popov.link>2024-02-14 13:48:55 +0300
commit631ca196c9bbc7fc3eeef4cce6bd9a6463ef74d1 (patch)
tree43fae88532a2c9dcf998ed14661d5d8380eb544f /_includes/author.html
parentd863b358a6570e397414b21d71e6236561ea8519 (diff)
downloadpopov.link-631ca196c9bbc7fc3eeef4cce6bd9a6463ef74d1.tar.xz
popov.link-631ca196c9bbc7fc3eeef4cce6bd9a6463ef74d1.zip
Set up the RSS feed and the authors of the posts
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 -%}
+
+&nbsp;by&nbsp;
+
+{%- 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