feat: Dark/Light Theme support for code blocks

This commit is contained in:
NGPixel
2017-07-01 23:01:17 -04:00
committed by Nicolas Giard
parent 8cf3f6f066
commit 06b49e037b
2 changed files with 53 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ block content
h1.title#title= pageData.meta.title
if pageData.meta.subtitle
h2.subtitle= pageData.meta.subtitle
.content.mkcontent(v-pre)
.content.mkcontent(v-pre, class=[appconfig.theme.code.dark ? 'is-code-dark' : 'is-code-light'])
!= pageData.html
modal-create-page(basepath=pageData.meta.path)