This repository has been archived by the owner on Jan 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
332 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Advanced example | ||
|
||
> The example is made for hoastig version 1.1.0. | ||
## Installation and usage | ||
|
||
``` | ||
npm i --save | ||
``` | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
## Explanation | ||
|
||
### Underscore files | ||
|
||
`src/site/content/_index.md` and `src/site/content/about/_index.hbs.md` both file names start with and underscore, however in the processed build the files will have been renamed to `dst/index.html` and `dst/about/index.html` with the underscore removed. This is done by setting the `rename.underscore` setting to true in the `hoastig.json` configuration. It is important to now that having both a `src/site/content/index.md` and `src/site/content/index.md` can lead to unpredictable results, as well as other files in the content directory starting with an underscore will be renamed too. | ||
|
||
### Overriding files | ||
|
||
`src/theme/static/icon.png` and `src/site/static/icon.png` both source directories contain a different icon with the same name. Since `theme` is first in the list it will be overridden by `site`, as a result the `B` icon will end up in the destination directory. | ||
|
||
### Handlebars inside content files | ||
|
||
`src/site/content/about/_index.hbs.md` the extension contains both `.md` and `.hbs` as a result the file will first be transformed from Markdown to HTML. Luckily it ignores any Handlebars code which means it can then be converted from Handlebars to HTML. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"sources": [ | ||
"theme", | ||
"site" | ||
], | ||
"metadata": { | ||
"base_url": "http://localhost:8080", | ||
"title": "Advanced example", | ||
|
||
"icons": [ | ||
{ | ||
"href": "icons.png", | ||
"size": 16, | ||
"type": "image/png" | ||
} | ||
] | ||
}, | ||
|
||
"rename": { | ||
"underscore": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"scripts": { | ||
"build": "node node_modules/hoastig/bin/hoastig", | ||
"rebuild": "node node_modules/hoastig/bin/hoastig -r", | ||
"devbuild": "node node_modules/hoastig/bin/hoastig -d -r" | ||
}, | ||
"dependencies": { | ||
"hoastig": "^1.1.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: Error 404! | ||
--- | ||
|
||
# 404: Lorem ipsum, dolor sit amet! | ||
|
||
Donec vulputate imperdiet aliquet. Fusce ac felis feugiat, sodales nisi id, vestibulum erat. Donec eget cursus mauris. Donec sit amet auctor tellus. Nam ac velit vitae libero facilisis suscipit. Phasellus mollis vestibulum hendrerit. Donec quis sem non tortor dignissim laoreet a et sem. Maecenas congue, velit nec ultrices consectetur, dolor justo scelerisque augue, sed varius orci quam nec quam. Aliquam erat volutpat. Sed auctor tristique nisl, ac egestas enim tincidunt ut. Morbi tincidunt enim non lobortis rhoncus. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Advanced example | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tempus fermentum magna, at lacinia ligula vestibulum ut. Vestibulum est enim, hendrerit ut sem nec, dapibus elementum ex. Nam eros libero, blandit at erat non, aliquet sollicitudin eros. Quisque iaculis nibh placerat suscipit vulputate. Suspendisse mollis semper ultrices. In quis accumsan urna. Suspendisse sit amet est eu augue laoreet maximus id a elit. Cras nec viverra augue. Suspendisse potenti. Donec consequat est in risus vehicula, a dapibus justo bibendum. Proin rutrum placerat sodales. Donec suscipit nunc in maximus vulputate. Donec posuere orci quis ornare rutrum. Mauris mollis congue egestas. | ||
|
||
* Vivamus imperdiet tellus a magna convallis, eu tempus ipsum malesuada. | ||
* In quis nisi eget diam laoreet lacinia at a diam. | ||
* In dapibus libero id consequat tempor. | ||
* Phasellus ultrices nunc ut nibh condimentum pretium. | ||
* Donec sagittis magna a massa tempus, eu sagittis dui volutpat. | ||
* Sed ultrices turpis ut mauris placerat fringilla. | ||
|
||
Phasellus hendrerit libero non leo tincidunt, eu vehicula tellus porttitor. Suspendisse potenti. Sed auctor orci vitae mauris semper facilisis. Nam dictum at mi ut tristique. Aenean eget posuere urna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam erat volutpat. | ||
|
||
[Sed mollis.](/about) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: About | ||
--- | ||
|
||
# About | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ut velit sem. Duis in nisi ut erat iaculis bibendum a sed ex. Morbi vitae rutrum ex. Suspendisse potenti. Suspendisse sed efficitur leo, at posuere justo. Fusce sit amet sem non erat gravida sodales non sed nibh. Sed pharetra at purus sed dapibus. Integer sollicitudin malesuada ante, non tempor orci pulvinar sit amet. Nunc dictum erat dui, id lobortis dui efficitur nec. Nulla bibendum ornare justo, sit amet dapibus enim congue id. Aliquam erat volutpat. Vestibulum non neque eu turpis convallis luctus vel facilisis sem. Etiam eu pellentesque sapien. | ||
|
||
Donec lobortis malesuada nisl eget facilisis. Aenean mauris risus, pharetra at suscipit non, maximus a ligula. Nunc tincidunt aliquam lacus, vel facilisis ex cursus nec. Curabitur tellus dui, egestas quis rutrum et, volutpat luctus tortor. Nullam quis diam odio. Ut ante mauris, suscipit vel finibus a, imperdiet sodales leo. Pellentesque tincidunt mauris lacus, at efficitur purus feugiat eu. | ||
|
||
{{#> article }} | ||
# Jane Doe | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla blandit tristique risus eu iaculis. Praesent cursus ultricies congue. Sed vestibulum est sed sollicitudin tincidunt. Vivamus ac velit vel diam eleifend rhoncus. Mauris eget lacinia est. Cras eget facilisis mi. Phasellus congue pellentesque tempor. Pellentesque vel gravida ipsum. Donec blandit enim erat. Nunc accumsan vel velit vitae tristique. | ||
|
||
[Phasellus in.](/about/doejane) | ||
{{/article }} | ||
|
||
{{#> article }} | ||
# John Doe | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum eget massa a bibendum. Sed mauris turpis, aliquam ac elit a, aliquet lacinia felis. Donec dui quam, lobortis luctus commodo eu, tincidunt eu sem. Nam velit ipsum, cursus sit amet finibus id, blandit vitae tellus. Nullam facilisis tempus risus nec auctor. Sed fringilla ut odio quis imperdiet. In hac habitasse platea dictumst. Aliquam nec interdum felis. Maecenas at rutrum arcu. Pellentesque et ante ligula. Pellentesque eget justo auctor, accumsan nisl id, efficitur felis. Morbi sodales maximus leo eu congue. Phasellus sed elit non purus pharetra egestas porta at mauris. Donec non egestas eros. Integer ac odio augue. | ||
|
||
[Phasellus in.](/about/doejohn) | ||
{{}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Jane Doe | ||
--- | ||
|
||
# Jane Doe | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla blandit tristique risus eu iaculis. Praesent cursus ultricies congue. Sed vestibulum est sed sollicitudin tincidunt. Vivamus ac velit vel diam eleifend rhoncus. Mauris eget lacinia est. Cras eget facilisis mi. Phasellus congue pellentesque tempor. Pellentesque vel gravida ipsum. Donec blandit enim erat. Nunc accumsan vel velit vitae tristique. | ||
|
||
Sed vel urna molestie, vehicula nisi at, efficitur dui. Pellentesque a sodales lacus. Suspendisse sit amet dui et leo suscipit facilisis ac vel erat. Quisque auctor eros vel magna suscipit, at vestibulum lorem consectetur. Sed fringilla id orci et tristique. Fusce urna erat, scelerisque id justo sit amet, laoreet finibus neque. Vivamus facilisis tellus sem, eu lacinia turpis congue sit amet. Fusce sagittis, magna quis pretium sollicitudin, velit lacus fermentum lorem, eget egestas metus tortor in massa. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: John Doe | ||
--- | ||
|
||
# John Doe | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum eget massa a bibendum. Sed mauris turpis, aliquam ac elit a, aliquet lacinia felis. Donec dui quam, lobortis luctus commodo eu, tincidunt eu sem. Nam velit ipsum, cursus sit amet finibus id, blandit vitae tellus. Nullam facilisis tempus risus nec auctor. Sed fringilla ut odio quis imperdiet. In hac habitasse platea dictumst. Aliquam nec interdum felis. Maecenas at rutrum arcu. Pellentesque et ante ligula. Pellentesque eget justo auctor, accumsan nisl id, efficitur felis. Morbi sodales maximus leo eu congue. Phasellus sed elit non purus pharetra egestas porta at mauris. Donec non egestas eros. Integer ac odio augue. | ||
|
||
In suscipit lacus sed dignissim sagittis. Nunc volutpat rhoncus enim pretium pretium. Donec cursus pretium erat volutpat fermentum. Etiam lorem lacus, posuere et vulputate id, mollis mattis elit. Praesent viverra massa ac sapien vestibulum, id commodo libero egestas. Nunc auctor dui sit amet vehicula malesuada. Proin justo diam, hendrerit vitae felis id, interdum convallis turpis. Proin maximus erat vel nulla suscipit blandit. Donec tincidunt elit in nulla viverra gravida. Proin odio tortor, sodales ac metus sit amet, tempus dictum eros. Nam luctus leo vitae viverra eleifend. Morbi iaculis, lacus at finibus lacinia, risus augue viverra nulla, non pharetra metus justo sollicitudin ex. Pellentesque vel turpis quis diam porta hendrerit ac sit amet nibh. Nunc tincidunt ullamcorper lacus. Suspendisse turpis velit, fringilla eu massa eu, rhoncus suscipit sapien. Aenean sagittis auctor nisl in ultrices. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html dir="ltr" lang="en-GB"> | ||
<head> | ||
<!-- meta --> | ||
<meta charset="utf-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
{{#with base_url }} | ||
<base href="{{ this }}"/> | ||
{{/with}} | ||
{{#with title}} | ||
<title>{{ this }}</title> | ||
{{/with}} | ||
|
||
<!-- Icons --> | ||
{{#each icons }} | ||
<link rel="icon" href="/{{ href }}" type="{{ type }}" sizes="{{ size }}x{{ size }}"/> | ||
{{/each}} | ||
</head> | ||
<body> | ||
<!-- Content --> | ||
{{{ content }}} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<article> | ||
{{> @partial-block }} | ||
</article> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Basic example | ||
|
||
For this example all settings will be left at their default value. | ||
|
||
> The example is made for hoastig version 1.1.0. | ||
## Installation and usage | ||
|
||
``` | ||
npm i --save | ||
``` | ||
|
||
``` | ||
npm run build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"scripts": { | ||
"build": "node node_modules/hoastig/bin/hoastig", | ||
"rebuild": "node node_modules/hoastig/bin/hoastig -r", | ||
"devbuild": "node node_modules/hoastig/bin/hoastig -d -r" | ||
}, | ||
"dependencies": { | ||
"hoastig": "^1.1.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Lorem ipsum dolor sit amet | ||
|
||
Consectetur adipiscing elit. Nunc tellus neque, accumsan vitae mollis quis, efficitur a turpis. Nam id egestas ex. Pellentesque pulvinar condimentum diam, id iaculis sapien. Nulla hendrerit aliquam ligula at iaculis. In congue, mauris eget placerat placerat, augue ipsum porta lorem, ut ultricies velit nisl id massa. Phasellus gravida porta iaculis. Phasellus consectetur dapibus magna. | ||
|
||
Mauris faucibus, sem vitae commodo mattis, purus diam fermentum risus, in dignissim est leo nec tortor. In luctus egestas eros et pharetra. Donec mattis dolor id justo varius ultrices. Vivamus id quam lobortis, fringilla erat a, vestibulum urna. Vestibulum vitae sagittis dolor. Etiam dignissim tempor nunc, vitae ultrices sem egestas at. Pellentesque vel convallis felis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html dir="ltr" lang="en-GB"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
</head> | ||
<body> | ||
{{{ content }}} | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.