Skip to content

Commit

Permalink
✨ Feature: add top_img for page's post_meta option in other pages
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #215
  • Loading branch information
Molunerfinn committed Jan 29, 2020
1 parent 21c34fd commit 92623bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/includes/nav.pug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- var top_img = theme.top_img || config.top_img
- var top_img = page.top_img || theme.post_meta.top_img || theme.top_img || config.top_img || true
- var bg_img = top_img && top_img !== true ? `background-image: url(${top_img})` : ''
- var flag = top_img === true ? 'no-bg' : ''
nav#nav(style=bg_img class=flag)
Expand Down

0 comments on commit 92623bf

Please sign in to comment.