{"id":16921740,"url":"https://github.com/cwen0/ljgo","last_synced_at":"2026-05-10T05:13:42.754Z","repository":{"id":64302264,"uuid":"281636441","full_name":"cwen0/ljgo","owner":"cwen0","description":"A static site generator","archived":false,"fork":false,"pushed_at":"2022-06-13T11:32:20.000Z","size":5709,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T20:12:42.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cwen0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-22T09:39:38.000Z","updated_at":"2023-11-10T02:56:24.000Z","dependencies_parsed_at":"2023-01-15T09:45:19.085Z","dependency_job_id":null,"html_url":"https://github.com/cwen0/ljgo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwen0%2Fljgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwen0%2Fljgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwen0%2Fljgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwen0%2Fljgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwen0","download_url":"https://codeload.github.com/cwen0/ljgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244708574,"owners_count":20496908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-13T19:53:01.505Z","updated_at":"2026-05-10T05:13:42.727Z","avatar_url":"https://github.com/cwen0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ljgo - 静态博客引擎\n\nljgo 是使用 [GO](https://golang.org) 语言实现的简单静态博客引擎, 编译速度快、安装简单。\n\n#### 目前版本 0.1.0-beta\n\n## 安装\n\n#### 源码安装\ngo运行环境安装请自行google\n\n```\ngit clone https://github.com/cwen0/ljgo.git\nmake install\n```\n\n#### 直接下载编译好的可执行文件\n\n下载地址 ： [ljgo](https://github.com/cwen0/ljgo/releases)\n\n## 快速入门\n\n#### 新建站点\n\n```\nljgo new example.com\n#执行完毕后，会在生成example.com文件夹\n```\n\n`example.com` 文件夹目录结构\n\n```\n- config.yml    // 站点配置文件\n- source // 保存文章目录\n- - | - - about.md // 关于页面内容\n- - | - - article.md // 演示文章内容\n- themes  // 保存所有主题\n- - | - - default // 站点默认主题\n\n```\n\n`config.yml` 配置格式\n\n\n```\nsite:\n    title: 网站标题\n    introduce: 网站描述\n    limit: 每页可显示的文章数目\n    theme: 网站主题目录   ＃eg: themes/default\n    url: 站点域名\n    comment: 评论插件变量(默认为Disqus账户名)\n    github: github.com 地址 # 可选\n    facebook: facebook 地址  # 可选\n    twitter: twitter 地址  # 可选\nserve:\n    addr: ljgo serve 监听地址 # eg: \"localhost:3000\"\n\npublish:\n    cmd: |\n        ljgo publish 命令将会执行的脚本\n```\n\n创建文章\n\n在source目录中建立任意.md文件（可置于子文件夹），使用如下格式：\n\n\n```\ntitle: 文章标题\nauthor: 文章作者\ndate: 2016-08-02\nupdate: 2016-08-02\ntags:\n    - 设计\n    - 写作\n\n---\n\n文章预览内容\n\t\u003c!--more--\u003e\n文章其它内容\n(文章的全部内容＝预览＋其他)\n\n```\n\n\n#### 生成静态页面\n\n```\nljgo build\n# 执行完毕在站点文件下生成public文件夹，包含所有静态文件\n```\n\n在站点文件夹中直接执行 `ljgo build` ， 或是在站点文件夹外执行但是得指定站点路径 eg\n: `ljgo build example.com`\n`ljgo serve` `ljgo publis` 都是同样的使用姿势\n\n\n#### 本地预览\n\n```\nligo serve\n# 打来浏览器, 访问你在站点配置中填入的端口地址\n# 默认是 http://localhost:3000\n```\n\n当然你也可以直接将 `ljgo serve` 运行在 `vps` 上\n\n\n#### 部署\n\n你可以使用 [github pages](https://pages.github.com/) 等服务，或者放到你的自己的vps下，因为是纯静态文件,不需要php/mysql/java等环境的支持\n\n\n```\nljgo publish\n# 执行站点配置中填写的发布脚本\n```\n\neg : 使用 `github`服务， 初始化好 `public`  文件夹后，我们只需要在 `config.yml` 文件中的填写如下内容：\n\n```\npublish:\n    cmd: |\n        git add -A\n        git commit -m \"update\"\n        git push origin\n```\n\n这样我们在每次编辑完博客后直接运行 `ljgo publish` 就一切ok\n\n\n## 关于主题\n\n由于自己比较懒，目前的默认主题是从 [start bootstrapt](https://startbootstrap.com) 中的 [clean-blog](https://startbootstrap.com/template-overviews/clean-blog/) 修改而来\n当导入其他主题，需要把主题文件夹复制到 `example.com/themes/` 文件夹下，并修改站点配置 `config.yml` 中主题路径\n\n\n#### 十分欢迎大家贡献第三方主题 👏\n\n## 正在使用\n\n* [cwen's blog](http://int64.me)           - me\n\n期待更多的用户\n\n## 反馈贡献\n\n非常欢迎任何人的任何贡献。如有问题可报告至 [https://github.com/cwen0/ljgo/issues](https://github.com/cwen0/ljgo/issues)。\n或是直接发邮件To me [yincwengo@gmail.com](mailto:yincwengo@gmail.com)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwen0%2Fljgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwen0%2Fljgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwen0%2Fljgo/lists"}