From e62e7bb6b14555c9bbe5d40d217103984f4f80e6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 27 Oct 2019 09:57:37 -0400 Subject: Rewrite progress --- _includes/author-profile.html | 263 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 _includes/author-profile.html (limited to '_includes/author-profile.html') diff --git a/_includes/author-profile.html b/_includes/author-profile.html new file mode 100644 index 0000000..b7d6214 --- /dev/null +++ b/_includes/author-profile.html @@ -0,0 +1,263 @@ +{% assign author = page.author | default: page.authors[0] | default: site.author %} +{% assign author = site.data.authors[author] | default: author %} + +
+ + {% if author.avatar %} +
+ {% if author.avatar contains "://" %} + {% assign author_src = author.avatar %} + {% else %} + {% assign author_src = author.avatar | relative_url %} + {% endif %} + + {% if author.home %} + {% if author.home contains "://" %} + {% assign author_link = author.home %} + {% else %} + {% assign author_link = author.home | relative_url %} + {% endif %} + + {{ author.name }} + + {% else %} + {{ author.name }} + {% endif %} +
+ {% endif %} + +
+ {% if author.home %} +

{{ author.name }}

+ {% else %} +

{{ author.name }}

+ {% endif %} + {% if author.bio %} +
+ {{ author.bio | markdownify }} +
+ {% endif %} +
+ +
+ + +
+
-- cgit v1.2.3