simplify author name config variable

This commit is contained in:
Dean Attali 2020-04-24 00:30:01 +00:00
parent da53b77037
commit 3cb1e1601c
4 changed files with 11 additions and 12 deletions

View File

@ -6,6 +6,9 @@ title: My website
# Short description of your site
description: A virtual proof that I'm awesome
# Your name to show in the footer
author: Some Person
# --- Local development options ---
# If your website is hosted locally rather than on GitHub, then you need to uncomment the next two parameters to set the url and baseurl
# *** If you're not sure what this mean, then leave this section as it is. Only modify the url and baseurl if you know what you're doing!***
@ -39,10 +42,6 @@ round-avatar: true
# --- Footer options --- #
# Change all these values or delete the ones you don't want.
author:
name: Some Person
# Select your active Social Network links.
# Uncomment the links you want to show in the footer and add your information to each link.
# You can reorder the items to define the link order.

View File

@ -1,7 +1,7 @@
<footer class="footer-min">
<div class="text-muted">
{% if site.author.name %}
{{ site.author.name }}
{% if site.author %}
{{ site.author }}
&nbsp;&nbsp;&bull;&nbsp;&nbsp;
{% endif %}
{% if page.date %}

View File

@ -25,8 +25,8 @@
{%- endfor -%}
</ul>
<p class="copyright text-muted">
{% if site.author.name %}
{{ site.author.name }}
{% if site.author %}
{{ site.author }}
&nbsp;&bull;&nbsp;
{% endif %}
{{ site.time | date: '%Y' }}

View File

@ -5,8 +5,8 @@
<title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator | default: '-' }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
{% if site.author.name %}
<meta name="author" content="{{ site.author.name }}" />
{% if site.author %}
<meta name="author" content="{{ site.author }}" />
{% endif %}
{% if page.subtitle %}
@ -96,8 +96,8 @@
<!-- Twitter summary cards -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@{{ site.author.twitter }}" />
<meta name="twitter:creator" content="@{{ site.author.twitter }}" />
<meta name="twitter:site" content="@{{ site.social-network-links.twitter }}" />
<meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}" />
{% if page.meta-title %}
<meta name="twitter:title" content="{{ page.meta-title }}" />