Add a custom page with link on navigation
-
adding new custom page is just like adding the page of
about.markdown, which is already in project directory. -
create new page in any project location except the ones start with
_and add the frontmatter oflayout: page(different fromlayout: post) andtitle: the title.(permalink is optional)
---
layout: page
title: anytitle
permalink: /anytitle/
---
A new customized page shows on navigation-
the frontmatter of
layout and titlewill allow the page to be added on navigation. -
to customize the style of the new page, add
./assets/main.scss. -
in the
main.scssfile add frontmatter and@importlike below. -
write custom style below in the
main.scssfile.
---
# Only the main Sass file needs front matter (the dashes are enough)
---
@import "minima";
/* custom style goes below */