{"id":15145126,"url":"https://github.com/alltobebetter/pyekyll","last_synced_at":"2026-02-08T14:32:56.866Z","repository":{"id":245521479,"uuid":"818505027","full_name":"alltobebetter/Pyekyll","owner":"alltobebetter","description":"基于Python和Jekyll实现的简易博客系统，在Github上搭建即可，基于GithubTheme","archived":false,"fork":false,"pushed_at":"2024-06-22T06:03:45.000Z","size":229,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T01:18:45.247Z","etag":null,"topics":["blog","github","html5","jekyll","markdown","python","theme"],"latest_commit_sha":null,"homepage":"https://alltobebetter.github.io/Pyekyll/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alltobebetter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":"docs/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-22T02:58:37.000Z","updated_at":"2024-07-12T13:39:26.000Z","dependencies_parsed_at":"2024-06-22T15:40:08.063Z","dependency_job_id":null,"html_url":"https://github.com/alltobebetter/Pyekyll","commit_stats":null,"previous_names":["alltobebetter/pyekyll"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alltobebetter%2FPyekyll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alltobebetter%2FPyekyll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alltobebetter%2FPyekyll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alltobebetter%2FPyekyll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alltobebetter","download_url":"https://codeload.github.com/alltobebetter/Pyekyll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247535716,"owners_count":20954610,"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":["blog","github","html5","jekyll","markdown","python","theme"],"created_at":"2024-09-26T11:09:00.892Z","updated_at":"2026-02-08T14:32:56.840Z","avatar_url":"https://github.com/alltobebetter.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyekyll / Python与Jekyll的简易博客系统\n\n好吧同志们，本项目其实一点也不玄学，不需要NodeJs和NPM，我用了Python的方式最简单的实现了一个比较美观且好做的方案，如果你觉得Jekyll在GithubPage上的主题不错，那么你选对地方了。这里不需要服务器部署，不需要终端知识，只需要一个手即可。\n\n好的，现在我来简单讲解以下运行方式。\n\n## Jekyll方面\n\n首先本实例中使用[cayman](https://github.com/pages-themes/cayman)主题，实际上，不用Jekyll主题也一样可以实现，只不过你需要用HTML与Markdown适配，这需要另外的js库，所以不建议。\n\n## 博客位置\n\n对于博客来说，我们的文章需要储存到某一个特定位置，这时候创建文件夹是一个很好的方式，就像文件里面的example1和example2文件夹\n\n![博客位置](https://i.gyazo.com/d1a338a1c3bec55acfd6208dd370b16d.png \"博客位置\")\n\n接下来我们只需要将文章使用markdown形式写入这两个文件夹即可，例如在example1内有一个ex.md，那么当你访问这篇文章时，链接就会是https://your-domain.com/example1/ex ，就是这个原理。\n\n## Python方面\n\n这个python实现也很简单，首先你需要在本项目目录下运行[这个文件](https://github.com/alltobebetter/Pyekyll/blob/master/deploy.py)，遍历文件夹内容并给出相应markdown内容，我这么说你一定不是很明白，没关系，下面是实际演示。\n\n\u003e 第一步：克隆到本地或您选择的云端，直接下载或者使用Git都可以，我这里用了Git\n\n![克隆](https://i.gyazo.com/7c423ca95afbb7042606dcda9f34c7bc.png \"克隆\")\n\n\u003e 第二步：运行deploy.py文件\n\n```python\npython /work/Pyekyll/deploy.py #请把这里换成您自己的路径，deploy.py里也有路径设置\n```\n\n\u003e 第三步：查看同路径下是否出现new.md文件\n\n![new](https://i.gyazo.com/460ae6954180fb3048f9fabd26417fba.png \"new\")\n\n详细内容如下：\n\n![内容](https://i.gyazo.com/91f90441a13119765700ee9479db32c5.png \"内容\")\n\n\u003e 最后\n\n我们复制到index.md相应位置中，于是就实现了博客的基本链接归档，其余的您可以根据自己的情况更改，本项目可更新方面十分显著，恳求您可以pull request来使这个项目更加完好！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falltobebetter%2Fpyekyll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falltobebetter%2Fpyekyll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falltobebetter%2Fpyekyll/lists"}