From 8e11e56f51c425e3771c297cd44174afb2778281 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 10 Apr 2021 13:03:02 +0300 Subject: navbar: rework front matter interface --- README.md | 8 +++++--- _includes/common/navbar.html | 19 ++++++++++++------- archive/index.html | 5 +++-- feed/index.html | 7 ++++--- index.md | 6 ++++-- 5 files changed, 28 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 4feec3b..9609954 100644 --- a/README.md +++ b/README.md @@ -59,11 +59,13 @@ Features Hide the navbar by setting either `site.settings.navbar.hide` or `page.navbar.hide` to `true`. -Put a page on the navbar by defining setting `page.navbar_link` to `true` or +Put a page on the navbar by defining setting `page.navbar.link` to `true` or a custom HTML string. -Pages are sorted in the ascending order of `page.navbar_priority`. -If a page on the navbar is paginated, set `page.navbar_paginated` to `true` so +Pages are sorted in the ascending order of `page.navbar.priority`. +If a page on the navbar is paginated, set `page.navbar.paginated` to `true` so that it doesn't appear two or more times. +You can add a glyphicon to the navbar link by settings `page.navbar.icon` to +something like `home`, `envelope`, etc. ### Post feed diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html index 9f01639..7e5fa4e 100644 --- a/_includes/common/navbar.html +++ b/_includes/common/navbar.html @@ -11,32 +11,37 @@