https://github.com/wwoods/blog_template_metalsmith
Working on a generic template for organization using Metalsmith
https://github.com/wwoods/blog_template_metalsmith
Last synced: 7 months ago
JSON representation
Working on a generic template for organization using Metalsmith
- Host: GitHub
- URL: https://github.com/wwoods/blog_template_metalsmith
- Owner: wwoods
- License: mit
- Created: 2017-11-01T17:15:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T04:51:03.000Z (over 3 years ago)
- Last Synced: 2025-01-21T12:26:50.108Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 436 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Blog Template for Metalsmith
============================General information organization and presentation framework.
All content goes under "content" folder. The file system hierarchy is stored and presented as "attachments", and additionally each content file (named \*.pug, as this framework uses the [Pug](https://pugjs.org/api/getting-started.html) template engine) can have tags associated with it.
The file `indexConfig.ts` contains configuration settings for how tags should be displayed and organized. Each tag can have zero or more parent tags - that is, tags form a directed graph (may be cyclic).
Installation / Getting Started
------------------------------1. Install [node.js](nodejs.org).
2. Clone this repository.
3. cd to the directory, and run:$ npm install
$ npm start4. Point your browser at http://127.0.0.1:8080
New Site for Empty Repository
-----------------------------The `update-cwd.sh` script is used by changing to a new directory or existing directory that is a version of this blog template and has not significantly diverged.
To create a new, empty website following this template, follow these steps:
$ git clone https://github.com/wwoods/blog_template_metalsmith
$ git init new_repo
$ cd new_repo
$ ../blog_template_metalsmith/update-cwd.sh
$ npm startThe command `update-cwd.sh` will copy all needed files.
Updating a Site From This Repository
------------------------------------Assuming a repository that began as a fork (or via `update-cwd.sh`) of this template, that fork may be updated by cloning this repository and running its `update-cwd.sh` with the repository to be updated as the current working directory.
When differentiating between an update and creating a new site, this script only checks for the existence of "index.ts".