{"id":20720203,"url":"https://github.com/zaaack/statical-ghost","last_synced_at":"2026-04-25T09:04:42.474Z","repository":{"id":57370168,"uuid":"44166408","full_name":"zaaack/statical-ghost","owner":"zaaack","description":"another static blog generator using ghost theme","archived":false,"fork":false,"pushed_at":"2016-05-26T04:09:12.000Z","size":129,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T23:29:07.011Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaaack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-13T09:37:33.000Z","updated_at":"2017-12-26T11:14:09.000Z","dependencies_parsed_at":"2022-09-26T16:41:06.707Z","dependency_job_id":null,"html_url":"https://github.com/zaaack/statical-ghost","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zaaack/statical-ghost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fstatical-ghost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fstatical-ghost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fstatical-ghost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fstatical-ghost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaaack","download_url":"https://codeload.github.com/zaaack/statical-ghost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fstatical-ghost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32256221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T04:23:17.126Z","status":"ssl_error","status_checked_at":"2026-04-25T04:21:53.360Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T03:19:37.417Z","updated_at":"2026-04-25T09:04:42.452Z","avatar_url":"https://github.com/zaaack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# statical-ghost\r\nanother static blog generator using ghost theme\r\n\r\n## INSTALL\r\n\r\n```sh\r\nnpm i -g statical-ghost\r\n```\r\n\r\n## FEATURES\r\n\r\n* fast, generate thousands of posts only for seconds\r\n* easy to use, see [usage](#usage)\r\n* using ghost themes, hundreds of free themes are available \u003chttp://marketplace.ghost.org/themes/free/\u003e\r\n\r\n## USAGE\r\n\r\n### init blog folders\r\n\r\nfirst, you need initialize folders in current directory.\r\n\r\n```sh\r\nsg init # or sg i\r\n```\r\n\r\nthen, you got a structure like this:\r\n\r\n```\r\n\u003ccurrent directory\u003e\r\n  |-posts   # for your markdown posts, supports sub directory\r\n  |-files   # files below this directory will be copied to /public\r\n  |-public  # this directory include the generated blog site\r\n  |-tmp     # temp directory, speed up generating\r\n  |-themes  # ghost themes\r\n```\r\n\r\nthis command not only create directories, but also generate demo post, config.yaml and even downloading a default ghost theme Casper. You can right your posts in `/posts`.\r\n\r\nafter this command, actually you have already got everything ready, just enter next step.\r\n\r\n### generate\r\n\r\nnow you can generate your blog, it's very fast because of using multi-process\r\n```sh\r\nsg generate # or sg g\r\n```\r\n\r\n### server\r\n\r\nyou can see your `/public` directory added many files, then run\r\n\r\n```sh\r\nsg server # or sg s\r\n```\r\n\r\nto start a local static server, it also auto generate your posts if posts or theme are changed.\r\nnow click \u003chttp://127.0.0.1:8080\u003e to enjoy your blog !!!\r\n\r\n### see help\r\n\r\n```sh\r\nsg -h\r\n```\r\nthen you can get messages below:\r\n\r\n```\r\nUsage: sg sg [command] [options]\r\n\r\n\r\n  Commands:\r\n\r\n    generate|g             generate blog\r\n    init|i                 initialize blog structure in current directory\r\n    clean|c                clean temp dir\r\n    deploy|d               deploy to server, use config.deploy in config.yaml as command\r\n    generateAndDeploy|gd   generate and deploy\r\n    server|s               start a static server, which would auto generate when posts changed\r\n\r\n  another static glog generator by ghost theme\r\n\r\n  Options:\r\n\r\n    -h, --help           output usage information\r\n    -V, --version        output the version number\r\n    -c, --config \u003cpath\u003e  set config path. defaults to ./config.yaml\r\n    -p, --port           the port of local server\r\n```\r\n\r\n### config file\r\n\r\nconfig.yaml\r\n```yaml\r\nblog:\r\n  url: 'http://localhost:8080'\r\n  title: My Blog\r\n  description: Keep It Simple and Stupid.\r\n  logo: ''\r\n  cover: ''\r\n  navigation:\r\n    - label: Index\r\n      url: /\r\ntheme: Casper\r\ndeploy: git add -A;git commit -m 'new post';git push origin master;\r\n# routeKeywords: # link 'author' in http://localhost:8080/author/me\r\n#   tag: tag\r\n#   author: author\r\n#   page: page\r\npaths:\r\n  # subdir: 'blog'    #subdir for all urls, like \"http://localhost:8080/blog/author/me\"\r\n  # imagesRelPath: '' not use yet\r\n  posts: /posts # directory for your posts\r\n  public: /public # directory for generated site\r\n  tmp: /tmp # temp directory for speed up\r\n  themes: /themes # directory for themes\r\nposts:\r\n  limit: 5   # the number of posts in each page\r\n  permalinks: '/:year/:month/:day/:slug/' # link of post\r\nauthor: me # default author\r\nauthors: #other authors\r\n  me:\r\n    name: me\r\n    slug: me\r\n    bio: Think\r\n    # image: ''\r\n    # cover: ''\r\n    # website: ''\r\n    # location: Beijing\r\n    # meta_title: ''\r\n    # meta_description: ''\r\ntags: # all tags, it would be auto appended after appear in posts\r\n  # hello:\r\n  #   name: hello\r\n  #   slug: hello\r\n  #   description: ''\r\n  #   image: ''\r\n  #   hidden: ''\r\n  #   meta_title: test\r\n  #   meta_description: test\r\n  #   parent: ''\r\n  world:\r\n    name: world\r\n    slug: world\r\n\r\n```\r\n\r\n## TODO\r\n[ ] add plugin.js to custom markdown-it's config and plugin\r\n[ ] change tasks to independent function and args, so plugin.js can add tasks too.\r\n[ ] plugin.js can use post property \r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaaack%2Fstatical-ghost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaaack%2Fstatical-ghost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaaack%2Fstatical-ghost/lists"}