{"id":23976135,"url":"https://github.com/shinyypig/git-blog","last_synced_at":"2025-10-11T08:46:36.033Z","repository":{"id":175332252,"uuid":"652628785","full_name":"shinyypig/git-blog","owner":"shinyypig","description":"A blog server written in go, and use git to manage posts.","archived":false,"fork":false,"pushed_at":"2024-04-16T02:24:24.000Z","size":239,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T00:12:52.417Z","etag":null,"topics":["blog","git","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/shinyypig.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-12T13:16:36.000Z","updated_at":"2024-07-24T07:22:45.000Z","dependencies_parsed_at":"2023-07-30T21:00:44.362Z","dependency_job_id":null,"html_url":"https://github.com/shinyypig/git-blog","commit_stats":null,"previous_names":["shinyypig/git-blog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyypig%2Fgit-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyypig%2Fgit-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyypig%2Fgit-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyypig%2Fgit-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinyypig","download_url":"https://codeload.github.com/shinyypig/git-blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799956,"owners_count":21163404,"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","git","go"],"created_at":"2025-01-07T06:56:45.967Z","updated_at":"2025-10-11T08:46:30.970Z","avatar_url":"https://github.com/shinyypig.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Blog\n\n![license](https://img.shields.io/github/license/shinyypig/git-blog)\n![size](https://img.shields.io/github/repo-size/shinyypig/git-blog)\n![stars](https://img.shields.io/github/stars/shinyypig/git-blog)\n![last_commit](https://img.shields.io/github/last-commit/shinyypig/git-blog)\n\nGit Blog is a lightweight blog system based on Git and Markdown.\n\nFeatures:\n\n-   Lightweight, no database required, cost about 10MB memory.\n-   Git based, you can use git to manage your blog.\n-   Markdown only, you can write your blog in Markdown.\n-   Repository compatible , a repository can be used as a blog.\n-   LaTeX support, you can write LaTeX in Markdown.\n-   Light/Dark theme, switch between light and dark theme automatically.\n-   Highly customizable, you can customize the theme and the template as you want.\n\nVist my website: [https://shinyypig.top](https://shinyypig.top) to see the demo.\n\n## Installation\n\nClone this repository to your server:\n\n```bash\ngit clone https://github.com/shinyypig/git-blog.git \u0026\u0026 cd git-blog\n```\n\nIf you are familiar with linux, you can download [go](https://go.dev/doc/install) and build `gitblog` yourself:\n\n```bash\ngo build\n```\n\nOr you can use the `build.sh` script to build it (only tested in debain):\n\n```bash\nsh build.sh\n```\n\nIf success, you will get a `gitblog` executable file in the folder. Then you can run `init.sh` to generate the default configuration, template, and style files, and install the gitblog service:\n\n```bash\nsh init.sh\n```\n\nYou may be asked to input a git url for the default extras repository, you can leave it blank if you want to use the default extras repository, which is [git-blog-extras](https://github.com/shinyypig/git-blog-extras).\n\nUse the following command to play with the service:\n\n```bash\nsystemctl start gitblog\nsystemctl stop gitblog\nsystemctl restart gitblog\nsystemctl status gitblog\n```\n\nIf you want it to start automatically when the system starts, you can use the following command:\n\n```bash\nsystemctl enable gitblog\n```\n\n## Update\n\nYou can simply cd to the git-blog folder and run the following command to update git-blog:\n\n```bash\nsh update.sh\n```\n\nIt will pull the latest version from github, build the executable file, and restart the service.\n\n## Usage\n\nGit Blog serves as a git server, in which every post is a git repository, so you can use git to manage your post.\n\nYou can use the following command to download a post:\n\n```bash\ngit clone http://yourdomain.com/yourpost.git\n```\n\nIf it does not exist, then the server will create a new post for you.\n\nYou can modify the post in your local machine, and use `git push` to push it to the server.\n\nNote that Git Blog will render the `README.md` file in the repository as the post, hence, your repositories on other git servers are also compatible with Git Blog. Simply push your repositories to the server, and it will be rendered as a post.\n\nFor more information, visit the **welcome** page after you run the server.\n\n## Things to do\n\n-   Add support for mobile devices.\n-   Maybe a web editor?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinyypig%2Fgit-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinyypig%2Fgit-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinyypig%2Fgit-blog/lists"}