Przeglądaj źródła

Additional custom stylesheet option

Dominique Da Silva 10 lat temu
rodzic
commit
86800f815e
2 zmienionych plików z 6 dodań i 0 usunięć
  1. 3 0
      _config.yml.example
  2. 3 0
      layout/_partial/head.ejs

+ 3 - 0
_config.yml.example

@@ -18,6 +18,9 @@ widgets:
 - archive
 thumbnail: true
 
+# Additional Stylesheet
+customstylesheet: 'custom'
+
 # Contacts
 contacts:
   github: http://github.com/ppoffice

+ 3 - 0
layout/_partial/head.ejs

@@ -33,4 +33,7 @@
   <%- css('css/style') %>
   <%- css('font-awesome/css/font-awesome.min') %>
   <%- partial('google-analytics') %>
+  <% if( theme.customstylesheet ){ %>
+    <%- css('css/'+theme.customstylesheet) %>
+  <% } %>
 </head>