diff options
-rw-r--r-- | layouts/partials/sidebar.html | 4 | ||||
-rw-r--r-- | static/css/hyde.css | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 9d57c7c..749eb7c 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,5 +1,9 @@ <aside class="sidebar container"> <header class="sidebar-about h-card vcard p-author" itemprop="author" itemscope itemtype="http://schema.org/Person"> + {{ if (isset .Site.Author "image") }} + <img class="u-photo" src="{{ .Site.Author.image }}" width=128 height=128 /> + {{ end }} + {{ if eq .Title .Site.Title }} <h1 class="site-title u-name fn" itemprop="name">{{ .Site.Title }}</h1> {{ else }} diff --git a/static/css/hyde.css b/static/css/hyde.css index 5d429db..cad1095 100644 --- a/static/css/hyde.css +++ b/static/css/hyde.css @@ -91,6 +91,13 @@ code,pre { display: block; } +.u-photo { + margin: auto; + margin-bottom: 1rem; + border: 2px solid white; + border-radius: 50%; +} + .contact-head { color: #fff; margin-bottom: 0; |