diff --git a/README.md b/README.md index 5012758..2c7a7ff 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,22 @@ In the `scripts` folder simply add a new js file. To include it, modify the `_in ``` Example is in `test.js`. + +## How to add a new subpage + +Add a new html file in the `pages` folder. It has to start like this: +``` +--- +permalink: /name-of-your-link +--- + + +``` + +If you want it to have a default look, you can add the `_layouts/page.html` layout to it, that includes the header and the js files. +``` +--- +permalink: /name-of-your-link +layout: page +--- +``` diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..cd51f13 --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,10 @@ + + + {% include head.html %} + +
+ {{content}} + + {% include js_files.html %} + + diff --git a/pages/example.html b/pages/example.html new file mode 100644 index 0000000..1313d67 --- /dev/null +++ b/pages/example.html @@ -0,0 +1,13 @@ +--- +permalink: /first-example +--- + + + + +