diff options
| author | historia <[not public]> | 2024-11-05 18:54:07 -0500 |
|---|---|---|
| committer | historia <[not public]> | 2024-11-05 18:54:07 -0500 |
| commit | 527c9862b0cc50e711dcf3e27be9eb957c4f3278 (patch) | |
| tree | 9d2a38b278e00f9e70f27befe1c89d83d0ef55dd /README.md | |
| parent | d789eaec1288131c43326140c06f8b135be9f871 (diff) | |
| download | ssg-blog-527c9862b0cc50e711dcf3e27be9eb957c4f3278.tar.gz | |
feat: hide posts by using publish: false in frontmatter
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -8,7 +8,7 @@ This is a modification to the simple static site generator '[ssg](https://romanz See [https://romansolotarev.com/ssg.html](https://romanzolotarev.com/ssg.html) for documentation on ssg -1. Install [lowdown](https://kristaps.bsd.lv/lowdown/) +1. Install [lowdown](https://kristaps.bsd.lv/lowdown/) and cpio 2. Copy the `ssg-blog` script somewhere in your path, e.g. `/usr/bin/` 3. `chmod +x /usr/bin/ssg-blog` 4. `ssg-blog src dst 'https://my-website.net'` @@ -19,9 +19,12 @@ ssg-blog checks for subdirectories in the src directory, each of which becomes a --- title: My Blog Post date: 2024-10-09 +publish: false --- ``` +If you add `pubish: false` to the frontmatter, the post will not show up in the index (it will still be rendered and appear in the sitemap) + ## Example There is an example directory in this repo to show you how to set up the files (src) and what the output looks like (dst). This was the command used to generate the example output: |
