diff options
| -rw-r--r-- | _config.yml | 6 | ||||
| -rw-r--r-- | layout/_partial/header.ejs | 14 | 
2 files changed, 17 insertions, 3 deletions
| diff --git a/_config.yml b/_config.yml index cd90fb0..14e03eb 100644 --- a/_config.yml +++ b/_config.yml @@ -7,4 +7,8 @@ highlight:  navbar:    - ['https://google.com', 'fa fa-google']    - ['https://twitter.com', 'fa fa-twitter'] -  - ['/feed', 'fa fa-rss']
\ No newline at end of file +  - ['/feed', 'fa fa-rss'] +menubar: +  - ['/about', 'About'] +  - ['/archives', 'Archives'] +logo: false
\ No newline at end of file diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 1ef4ef8..32d2d2a 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -1,7 +1,17 @@  <header class="header"> -    <div class="header-title"> -        <%= config.title %> +    <div class="header-topbar"> +        <div class="header-title"> +            <%= config.title %> +        </div> +        <div class="header-menu"> +            <% for (let item of theme.menubar) { %> +                <a href="<%= item[0] %>"><%= item[1] %></a> +            <% } %>  +        </div>      </div> +    <% if (theme.logo) { %> +        <div class="header-logo" style="background-image: url('<%= theme.logo %>');"></div> +    <% } %>        <div class="header-desc">          <%= config.description %>       </div> | 
