Skip to content

Commit

Permalink
feat(amsf): add colors config
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Now the `primary_color` is deprecated, please replace all `site.primary_color` to `site.colors.theme` in your templates.
  • Loading branch information
sparanoid committed Jan 16, 2017
1 parent 8e6111c commit 5ba1094
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _app/_includes/_amsf.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
{% if amsf_page_theme_color != "" %}
{{ amsf_page_theme_color }}
{% else %}
{{ site.primary_color }}
{{ site.colors.theme }}
{% endif %}
{% endcapture %}

Expand Down
8 changes: 4 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ file: https://d349cztnlupsuf.cloudfront.net
# Default: https://d1bmx7s6749k4k.cloudfront.net
download: https://d1bmx7s6749k4k.cloudfront.net

# Primary color
# Colors
#
# Used by Safari mask-icon, Chrome Web App theme color
#
# Default "#ff00b4"
primary_color: "#ff00b4"
colors:
theme: "#ff00b4"
background: "#fff"

# Service Worker Precache
service_worker:
Expand Down

0 comments on commit 5ba1094

Please sign in to comment.