summaryrefslogtreecommitdiff
path: root/_includes/article/footer/author-profile.html
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2020-09-27 17:45:13 -0500
committerKarl Hallsby <karl@hallsby.com>2020-09-27 17:45:13 -0500
commitc6bf5f7c895287d2028f6024265913b59784a154 (patch)
tree3a298df17d9472a679411dd81ea00a1239652477 /_includes/article/footer/author-profile.html
parent50dafcddc0392b99b228824274b1b97d0e72e423 (diff)
Bring all of jekyll-text-theme _includes into site
Diffstat (limited to '_includes/article/footer/author-profile.html')
-rw-r--r--_includes/article/footer/author-profile.html47
1 files changed, 47 insertions, 0 deletions
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 -%}
+
+<div itemscope itemtype="{{ _author_itemtype }}" class="author-profile card card--flat item">
+ {%- if _author.avatar -%}
+ {%- if _author.url -%}
+ <a href="{{ _author.url }}" class="item__image">
+ {%- endif -%}
+ {%- include snippets/get-nav-url.html path=_author.avatar -%}
+ {%- assign _author_avatar = __return -%}
+ <img class="author-profile__avatar" itemprop="image" src="{{ _author_avatar }}" />
+ {%- if _author.url -%}
+ </a>
+ {%- endif -%}
+ {%- endif -%}
+
+
+ <div class="item__content">
+
+ {%- if _author.name -%}
+ <meta itemprop="name" content="{{ _author.name }}">
+ <p class="author-profile__name">
+ {%- if _author.url -%}
+ <meta itemprop="url" content="{{ _author.url }}">
+ <a href="{{ _author.url }}">
+ {%- endif -%}
+ {{ _author.name }}
+ {%- if _author.url -%}
+ </a>
+ {%- endif -%}
+ </p>
+ {%- endif -%}
+
+ {%- if _author.bio -%}
+ <p itemprop="description">{{ _author.bio }}</p>
+ {%- endif -%}
+ <div class="author-profile__links">
+ {%- include author-links.html author=_author -%}
+ </div>
+
+ </div>
+</div>