Compare commits

..

2 commits

Author SHA1 Message Date
f9f0709bce Icons from icomoon.io 2020-02-21 15:44:04 +01:00
cb6ff686db Add AUTHOR and SOCIAL on the first page 2020-02-21 15:22:41 +01:00
3 changed files with 60 additions and 12 deletions

View file

@ -218,7 +218,7 @@ th {
@font-face { @font-face {
font-family: 'icons'; font-family: 'icons';
src: url("../font/awesome/fa-solid-900.woff2") format("woff2"); src: url("../font/icon.woff") format("woff");
font-weight: normal; font-weight: normal;
font-style: normal font-style: normal
} }
@ -237,15 +237,15 @@ th {
font-variant: normal; font-variant: normal;
text-transform: none; text-transform: none;
line-height: 1em; line-height: 1em;
margin-left: .2em margin-left: .2em;
} }
.ic-star:before { .ic-star:before {
content: '\f004' content: '\e9d9'
} }
.ic-rss:before { .ic-rss:before {
content: '\f09e' content: '\ea9c'
} }
.ic-posts:before { .ic-posts:before {
@ -257,27 +257,38 @@ th {
} }
.ic-link:before { .ic-link:before {
content: '\f0c1' content: '\e9cb'
} }
.ic-arrow-right:before { .ic-arrow-right:before {
content: '\f061' content: '\ea3c'
} }
.ic-arrow-left:before { .ic-arrow-left:before {
content: '\f060' content: '\ea40'
} }
.ic-twitter:before { .ic-twitter:before {
content: '\f099' content: '\e904'
} }
.ic-mastodon:before { .ic-mastodon:before {
content: '\f4f6' content: '\e908'
}
.ic-linkedin:before {
content: '\e905'
}
.ic-git:before {
content: '\e906'
}
.ic-github:before {
content: '\e907'
} }
.ic-menu:before { .ic-menu:before {
content: '\f0c9' content: '\e9bd'
} }
@font-face { @font-face {
@ -1052,7 +1063,8 @@ img {
top: -2px; top: -2px;
margin: auto; margin: auto;
font-size: 0.625em; font-size: 0.625em;
line-height: 1.6em line-height: 1.6em;
top:1px
} }
#menu { #menu {
@ -1552,7 +1564,7 @@ img {
.post-author-bio span { .post-author-bio span {
position: relative; position: relative;
font-size: 0.8em; font-size: 1em;
display: inline-block; display: inline-block;
margin-top: 1.25em; margin-top: 1.25em;
margin-right: 1.25em; margin-right: 1.25em;

BIN
static/font/icon.woff Normal file

Binary file not shown.

View file

@ -52,6 +52,42 @@
</div> </div>
</header> </header>
<!-- Author info on first page -->
{% if not articles_page.has_previous() %}
<section id="blog-author" {% if selected_cover or selected_color %}class="has-cover"{% endif %} >
<div class="inner">
<aside class="post-author">
{% if PROFILE_IMAGE %}
<figure class="post-author-avatar">
<img src="/{{PROFILE_IMAGE}}" alt="{{AUTHOR}}" />
</figure>
{% endif %}
<div class="post-author-bio">
<h4 class="post-author-name">{{AUTHOR}}</h4>
{% if BIO %}
<p class="post-author-about">{{BIO}}</p>
{% endif %}
{% if LOCATION %}
<span class="post-author-location"><i class="ic ic-location"></i>
{{LOCATION}}
</span>
{% endif %}
<!-- Social linkes in alphabet order. -->
{% for name,link in SOCIAL %}
<span class="post-author-{{name}}">
<a target="_blank" href="{{link}}"><i class="ic ic-{{name}}"></i>{{name}}</a></span>
{% endfor %}
<span class="post-author-stats">
<i class="ic ic-posts"></i> {{ articles|count }}
{% if articles|count > 1 %} posts {% else %} post {% endif %}
</span>
</div>
<div class="clear"></div>
</aside>
</div>
</section>
{% endif %}
{% endblock header %} {% endblock header %}
{% block content %} {% block content %}