JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q58675F
  • License MIT

Pre-processing of all source posts/articles before rendering using hexo. Useful for low-end devices to avoid memory heap errors. With this package you can prevent using a large number of hexo plugins, because some functions (runners) are separated by task, so they are memory friendly.

Package Exports

  • static-blog-generator
  • static-blog-generator/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (static-blog-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Static Blog Generator v3

HexoJS GUI and Helpers - Static Blog Generator NodeJS.

Static Blog Generator v3 using Gulp System.

Pre-processing of all source posts/articles before rendering using hexo. Useful for low-end devices to avoid memory heap errors. With this package you can prevent using a large number of hexo plugins, because some functions (runners) are separated by task, so they are memory friendly.

Features:

  • Automatic SEO
  • Finding broken images
  • Finding broken links
  • External link anonymizer using safelinkify
  • YoastSEO Sitemap
  • Export/Import Blogger and Worpdress
  • More improvisation on future

Example - Using automatic deployment with github workflow (CI)

CLI

standalone runner

run all files (_*.standalone.js) inside config.post_dir

image

Configuration

Configuration setup for _config.yml that required for this package (you can change the values)

public_dir: "public"
source_dir: "source"
post_dir: "src-posts"
generator:
  # enable global cache
  cache: true
  # transform shortcodes result to amp html
  amp: false

Copy source posts to hexo source dir

Compiling and Copying all source posts including shortcodes etc to hexo source post directory

Source Destination
./src-posts ./source/_posts
npx sbg post copy

Cloaking all external links to outbound page redirector, useful for SEO.

Source Destination
./.deploy_git ./.deploy_git
npx sbg deploy safelink

Automatic SEO

  • adds an alt tag to an image element when none exists
  • adds an title tag to an iframe element when none exists
Source Destination
./.deploy_git ./.deploy_git
npx sbg deploy seo

Generate YoastSEO Sitemap

Source Destination Additional
./public ./public you can change public folder by set public_dir at _config.yml
npx sbg generate sitemap

Generate RSS ATOM Feeds

Source Destination Additional
./public ./public you can change public folder by set public_dir at _config.yml
npx sbg generate feed

Roadmap

  • Separate with monorepo
  • Test each module
  • Create single bundle tarball
  • Create CI
  • Create Dashboard
  • Integrate Dashboard with google webmaster
  • Fix import/export blogger and wordpress

Note

Previous stable development 513d687b4d26bbf4ea735313cb79cbcf8d04b36d