Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
blog-engine-sac
Advanced tools
static site generator, that uses markdown files as input and outputs web pages
This is a static site generator, that uses markdown files as input and outputs web pages.
npm i npm@latest-6 -g
npm init
for examplenpm i blog-engine-sac
"scripts": {
"sac": "node node_modules/blog-engine-sac/source/main.js",
"scaleImages": "node node_modules/blog-engine-sac/source/media/image/scaleImageCli.js"
}
npm run sac
npm run scaleImages
Create a new markdown file in the folder source/
. A markdown file is a normal text file with .md
file extension. The name of the file is used as the name of the post. Then rebuild.
Create a file in source/
. For example my-post.md or my-post.txt.
Create a simple post then create a meta file with the same base name. For example my-post.json
{
"title": "I am about to write a title",
"lang": "en",
"author": "Author name",
"creationDate": "2018/02/15",
"modifiedDate": "2035/02/19",
"linksBottom": true,
"tags": ["cooking", "sports", "travel"],
"translations": [],
"license": "CC0-1.0"
}
Create a file that describes where to find the external post. For example js-style-guide.json . Including a post from the web: Add a json file in source/
with src
set to the url.
{
"src": "https://raw.githubusercontent.com/GrosSacASac/JavaScript-Set-Up/master/js/red-javascript-style-guide/readme.md"
}
Another Example with this readme file:
{
"src": "https://gitlab.com/GrosSacASac/blog-engine-z/-/raw/master/README.md",
"lang:": "en",
"Content-Type": "text/markdown"
}
Create file blog-engine-sac.yaml
with
---
mainTitle: BLOG
subTitle: FOOD AND FUN
defaultLang: en
defaultAuthor: AUTHOR NAME
defaultLicense: LICENSE
categories:
- tag: categorieA
name: categorieA
- tag: categorieB
name: categorieB
Ideally defaultLicense is a SPDX identifier, default lang a 2 letter shorthand for the language (ISO 639-1).
Change the values as you see fit.
categories are provided by the user as an array for the entire blog
for example: travel, cuisine, sports
Each category will have a dedicated index page that acts like the main index page but only lists post of that category. Posts will be in that category if they have a corresponding tag.
Create file source/extras/about.md
.
Create file source/extras/contact.md
.
Create file source/extras/footer.md
.
Open folder images
Replace the images with new ones but keep the exact filename to not break the links. (Images are linked from other files, not copied, the name of the files are used)
images/about.jpg
images/contact.jpg
images/home.jpg
images/post.jpg
Add the following key-value pair in your site settings.
customCss: custom.css
Then create a folder named css
. Inside create a file custom.css
. Then copy inside custom.css
the first rule found inside blog-engine-sac.css. These are some css variables easy to edit as a starting point.
found in the meta file as an array
are gathered from the plain text of each post based on heuristacs (rarity and uniqueness)
tags is a set that combines user provided tags and auto generated tags and title. It is used for search function. They are also displayed after the post.
A text format. Learn it here https://commonmark.org/help/
Don't remove, edit or add any other file unless you know exactly what you are doing!
are generated. Do not edit directly
Start Bootstrap - Clean Blog is a stylish, responsive blog theme for Bootstrap created by Start Bootstrap. This theme features a blog homepage, about page, contact page, and an example post page along with a working PHP contact form.
CC0 (Only for blog-engine-sac itself)
FAQs
static site generator, that uses markdown files as input and outputs web pages
The npm package blog-engine-sac receives a total of 21 weekly downloads. As such, blog-engine-sac popularity was classified as not popular.
We found that blog-engine-sac demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.