-
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.
Co-authored-by: Joey Guerra <[email protected]>
- Loading branch information
1 parent
a87e340
commit dfa2f66
Showing
2 changed files
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Static Site Generator | ||
|
||
This is a simple static site generator that uses Express, markdown, and Handlebars to generate a static website. | ||
|
||
## Installation | ||
|
||
To install the dependencies, run: | ||
`npm i` | ||
|
||
## Example building a site | ||
|
||
```sh | ||
./ | ||
./docs | ||
./docs/index.md | ||
./docs/layouts/ | ||
.docs/layouts/index.html | ||
``` | ||
|
||
**index.md** | ||
|
||
```markdown | ||
--- | ||
title: Getting Started With sfab | ||
layout: layouts/index.html | ||
published: 2023-10-14T19:25:22.000Z | ||
permalink: /index.html | ||
--- | ||
|
||
# Getting Started With sfab | ||
|
||
This is an example markdown file that utilizes the layouts/index.html layout file. | ||
``` | ||
|
||
**layouts/index.html** | ||
|
||
```html | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head></head> | ||
<body> | ||
{{> @partial-block }} | ||
</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