Explorar o código

Additional custom stylesheet option

Dominique Da Silva %!s(int64=10) %!d(string=hai) anos
pai
achega
86800f815e
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  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>