Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nzdjb/static-site-generator

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nzdjb/static-site-generator

Static site generator.

  • 0.8.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
126
increased by68%
Maintainers
0
Weekly downloads
 
Created
Source

static-website-generator

A website generator. This is intended mostly for my own use, but you're welcome to use it too!

Usage

At present, a directory and two files are needed:

  • The config directory should contain toml files similar to the following:
    [[articles]]
    title = "Article title"
    date = 2023-01-01
    content = "Article content"
    author = "Article author"
    published = true
    
    • content can alternatively be read from a file with contentFile. This is mutually exclusive with content.
    • author and published are optional, defaulting to empty string and true, respectively.
    • content and contentFile support Markdown.
  • A template file, which should be a Handlebars HTML file.
  • An output file, which will be the location the output is written.

Invocation is done as follows:

static-site-generator --config <path-to-config> --indexTemplate <path-to-template-file> --outFile <path-to-output-file>

This command is highly subject to change!

FAQs

Package last updated on 26 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc