Commit 889ebdf7 authored by jimakker's avatar jimakker

configureable hero

parent f9f1a45a
fancybox: true ## If you want to use fancybox please set the value to true.
menu:
# - page: home
# directory: .
# icon: fa-home
- page: archive
directory: archives/
icon: fa-archive
......@@ -30,7 +27,9 @@ links:
- title: site-name3
url: http://www.example3.com/
homepage: homepage/homepage.md
hero:
class: is-info
content: homepage/homepage.md
# Static files
js: js
......
......@@ -45,12 +45,11 @@ html(lang='#{config.language}')
- for (var i in theme.menu)
+a_with_current(theme.menu[i].directory, __(theme.menu[i].page), theme.menu[i].icon)
if(is_home())
section.hero.is-medium.is-info.is-left
if(is_home() && theme.hero)
section.hero.is-medium.is-left(class=[theme.hero.class])
.hero-content
.container
if(theme.homepage)
!= renderPage(theme.homepage)
!= renderPage(theme.hero.content)
section.section
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment