Skip to content

Commit 741f737

Browse files
authored
Adds configuration for additional site css (daattali#695)
1 parent 3021233 commit 741f737

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ footer-link-col: "#404040"
101101
#footer-img: "/assets/img/bgimage.png"
102102
#page-img: "/assets/img/bgimage.png"
103103

104+
# You can also include any number of additional CSS assets in every page on your site
105+
#site-css:
106+
# - "/assets/css/my-style.css"
107+
104108
# --- Web Statistics Section --- #
105109

106110
# Fill in your Google Analytics gtag.js ID to track your website using gtag

_includes/head.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
{% endfor %}
4545
{% endif %}
4646

47+
{% if site.site-css %}
48+
{% for css in site.site-css %}
49+
<link rel="stylesheet" href="{{ css | relative_url }}">
50+
{% endfor %}
51+
{% endif %}
52+
4753
<!-- Facebook OpenGraph tags -->
4854
{% if site.fb_app_id %}
4955
<meta property="fb:app_id" content="{{ site.fb_app_id }}">

0 commit comments

Comments
 (0)