We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29e4846 commit 584589bCopy full SHA for 584589b
themes/offby1/static/images/dark/headshot.png
1.24 MB
themes/offby1/static/images/light/headshot.png
1.52 MB
themes/offby1/templates/base.html.j2
@@ -55,10 +55,12 @@
55
<body class="{% block body_class %}{% endblock %}">
56
<header>
57
<div class="header-content">
58
- <div class="avatar">
59
- {# TODO: Add actual headshot image #}
60
- 👤
61
- </div>
+ <a href="{{ SITEURL }}/" class="avatar">
+ <picture>
+ <source srcset="{{ SITEURL }}/theme/images/dark/headshot.png" media="(prefers-color-scheme: dark)">
+ <img src="{{ SITEURL }}/theme/images/light/headshot.png" alt="{{ AUTHOR }}">
62
+ </picture>
63
+ </a>
64
<div class="site-title">
65
<a href="{{ SITEURL }}/" class="title-logo" role="img" aria-label="{{ SITENAME }}"></a>
66
<p class="tagline">{{ DESCRIPTION }}</p>
0 commit comments