Adds support for meta theme-color (#692)

This commit is contained in:
Amy Troschinetz 2020-08-07 19:13:54 -07:00 committed by GitHub
parent c4a397509c
commit ed31f79fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,6 @@
## Unreleased version ## Unreleased version
- Adds support for custom meta-theme site color. (#692)
- Add support for `site-css` config parameter to provide site-level CSS files. (#695) - Add support for `site-css` config parameter to provide site-level CSS files. (#695)
- Add support for `description` YAML parameter to provide a more detailed meta description (#690) - Add support for `description` YAML parameter to provide a more detailed meta description (#690)

View File

@ -101,6 +101,11 @@ footer-link-col: "#404040"
#footer-img: "/assets/img/bgimage.png" #footer-img: "/assets/img/bgimage.png"
#page-img: "/assets/img/bgimage.png" #page-img: "/assets/img/bgimage.png"
# Customize the site coloration for your website. This is used by various applications,
# for example many mobile browsers will use this color in their user interface elements
# when users view your website.
#custom-site-color: ""
# You can also include any number of additional CSS assets in every page on your site # You can also include any number of additional CSS assets in every page on your site
#site-css: #site-css:
# - "/assets/css/my-style.css" # - "/assets/css/my-style.css"

View File

@ -14,6 +14,10 @@
<meta name="description" content="{{ page.subtitle }}"> <meta name="description" content="{{ page.subtitle }}">
{% endif %} {% endif %}
{% if site.custom-site-color %}
<meta name="theme-color" content="{{ site.custom-site-color }}">
{% endif %}
<link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}"> <link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}">
{% include gtag.html %} {% include gtag.html %}