Skip to content

Commit

Permalink
feat: initial release (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Joey Guerra <[email protected]>
  • Loading branch information
joeyguerra and Joey Guerra authored Oct 14, 2023
1 parent a87e340 commit dfa2f66
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
46 changes: 46 additions & 0 deletions README
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>
```

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,12 @@
"scripts": {
"test": "node --test",
"start": "node bin/sfab"
},
"release": {
"branches": [
"main",
"next"
],
"dryRun": false
}
}

0 comments on commit dfa2f66

Please sign in to comment.