feat(meta header): add meta header author to header if exists in config.yml
This commit is contained in:
parent
6ee599856e
commit
24aa1e362b
|
@ -4,6 +4,7 @@ email: your-email@domain.com
|
||||||
url: https://example.github.io
|
url: https://example.github.io
|
||||||
description: "Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description."
|
description: "Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description."
|
||||||
skills: "Web Developer - Graphic Artist - User Experience Designer"
|
skills: "Web Developer - Graphic Artist - User Experience Designer"
|
||||||
|
meta_author: LastName FirstName
|
||||||
|
|
||||||
# Contact form: comment the line below if you want to stick with the default PHP contact form
|
# Contact form: comment the line below if you want to stick with the default PHP contact form
|
||||||
contact: static
|
contact: static
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="description" content="{{ site.description }}">
|
<meta name="description" content="{{ site.description }}">
|
||||||
|
{% if site.meta_author %}<meta name="author" content="{{ site.meta_author }}">{% endif %}
|
||||||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
|
||||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue