96 lines
2.6 KiB
HTML
96 lines
2.6 KiB
HTML
{% macro social_links(social_config) %}
|
|
{% if social_config.facebook %}
|
|
<a class="link" href='https://facebook.com/{{social_config.facebook}}' target='_blank'>
|
|
<span class='icon'>
|
|
<i class='fab fa-facebook'></i>
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
{% if social_config.twitter %}
|
|
<a class="link" href='https://twitter.com/{{social_config.twitter}}' target='_blank'>
|
|
<span class='icon'>
|
|
<i class='fab fa-twitter'></i>
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
{% if social_config.linkedin %}
|
|
<a class="link" href='https://www.linkedin.com/in/{{social_config.linkedin}}' target='_blank'>
|
|
<span class='icon'>
|
|
<i class='fab fa-linkedin'></i>
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
{% if social_config.github %}
|
|
<a class="link" href='https://github.com/{{social_config.github}}' target='_blank'>
|
|
<span class='icon'>
|
|
<i class='fab fa-github'></i>
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
{% if social_config.stackoverflow %}
|
|
<a class="link" href='https://stackoverflow.com/users/{{social_config.stackoverflow}}' target='_blank'>
|
|
<span class='icon'>
|
|
<i class='fab fa-stack-overflow'></i>
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
{% if social_config.keybase %}
|
|
<a class="link" href='https://keybase.io/{{social_config.keybase}}' target='_blank'>
|
|
<span class='icon'>
|
|
<i class='fab fa-keybase'></i>
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
{% endmacro %}
|
|
|
|
|
|
{% macro page_publish_metadata(page) %}
|
|
<p class='has-text-grey'>
|
|
<span class='icon'>
|
|
<i class='fas fa-user'></i>
|
|
</span>
|
|
{{ config.extra.author.name }}
|
|
published on
|
|
<span class='icon'>
|
|
<i class='far fa-calendar-alt'></i>
|
|
</span>
|
|
<time datetime='{{page.date}}'>{{ page.date | date(format='%B %d, %Y') }}</time>
|
|
</p>
|
|
{% endmacro %}
|
|
|
|
{% macro page_content_metadata(page) %}
|
|
<p class='has-text-grey'>
|
|
<span class='icon'>
|
|
<i class='far fa-clock'></i>
|
|
</span>
|
|
{{page.reading_time}} min,
|
|
<span class='icon'>
|
|
<i class='fas fa-pencil-alt'></i>
|
|
</span>
|
|
{{page.word_count}} words
|
|
</p>
|
|
{% endmacro %}
|
|
|
|
|
|
{% macro render_categories(categories) %}
|
|
<p>
|
|
<span class="has-text-black has-text-weight-normal">Categories:</span>
|
|
{% for category in categories %}
|
|
<a class='link has-text-weight-light' href='{{ get_taxonomy_url(kind='categories', name=category) }}'>
|
|
<span class='icon is-small'><i class='fas fa-folder fa-xs'></i></span>{{ category }}
|
|
</a>
|
|
{% endfor %}
|
|
</p>
|
|
{% endmacro %}
|
|
|
|
|
|
{% macro render_tags(tags) %}
|
|
<p>
|
|
<span class="has-text-black has-text-weight-normal">Tags:</span>
|
|
{% for tag in tags %}
|
|
<a class='link has-text-weight-light' href='{{ get_taxonomy_url(kind='tags', name=tag) }}'>
|
|
<span class='icon is-small'><i class='fas fa-tag fa-xs'></i></span>{{ tag }}
|
|
</a>
|
|
{% endfor %}
|
|
</p>
|
|
{% endmacro %} |