Static Blog Generator v3 using Gulp System.
Pre-processing all source posts before rendering from hexo. Useful for low-end devices to avoid memory heap errors. With this package you can prevent using large number of hexo plugins, because some function (runner) separated by task, so memory friendly.
gulp post:copy
)hexo generate
)gulp safelink
) optionalgulp seo
) optionalConfiguration 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
Compiling and Copying all source posts including shortcodes etc to hexo source post directory
Source | Destination |
---|---|
./src-posts | ./source/_posts |
gulp post:copy
Cloaking all external links to outbound page redirector, useful for SEO.
Source | Destination |
---|---|
./.deploy_git | ./.deploy_git |
gulp safelink
Source | Destination |
---|---|
./.deploy_git | ./.deploy_git |
gulp seo
☑ | command | Description |
---|---|---|
☐ | sbg copy post | process and copy post from src-posts to source/_posts |
☑ | gulp --tasks | list all tasks |
Gulp tasks of static-blog-generator
├── clean:post
├─┬ clean:all
│ └─┬ <series>
│ ├── clean:db
│ └── clean:archive
├── safelink
├── deploy:copy
├── deploy:push
├── deploy:status
├── deploy:commit
├── deploy:pull
├─┬ deploy
│ └─┬ <series>
│ ├── deploy:pull
│ ├── deploy:copy
│ ├── safelink
│ ├── deploy:commit
│ └── deploy:push
├── feed
├── seo
├── post:copy
├── post:standalone
├── project-commit
└── commitProject
all changelog at https://github.com/dimaslanjaka/static-blog-generator/commits/master