Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Hugo blog theme that mimics GitHub's profile and repository pages, with Gitalk comments, LaTeX support, local search, and custom CSS/JS.
github-style is a Hugo theme that restyles a personal blog to resemble a GitHub profile and repository page, built by MeiK2333 and available on GitHub.
github-style is a Hugo theme that turns a Hugo static site into a blog with a GitHub-like interface, including a profile header with avatar, status emoji, location, and social links. It takes Markdown files as content and produces a static HTML site via the Hugo static site generator. The theme is maintained by MeiK2333 and is open-source.
config.toml parameters.katex: math to a post's front matter, and also supports MathJax by setting mathJax: true.enableSearch and a JSON output format in the site configuration.custom_css, custom_js, and defer_custom_js parameters.pin: true in front matter; display length is controlled either by a summary field or by inserting a <!--more--> marker.lastmod and configuring the front-matter fallback chain in config.toml.details shortcode that creates an expandable element for hiding extra content.github-style is for Hugo users who want a blog that has the visual language of GitHub. It suits developers and technical writers who publish code-heavy posts, since LaTeX math and code snippets are first-class citizens. It also fits anyone who wants to run a personal site with minimal styling effort but maximum configurability through config.toml. Bloggers who prefer to manage comments through GitHub Issues will benefit from the built-in Gitalk integration.
deploy.sh example.summary or <!--more--> fields to control excerpt lengths on the blog index.The theme is installed as a git submodule: after creating a Hugo site with hugo new site, you add the theme with git submodule add, rename the posts folder to post, and create a readme.md page. Posts are created with hugo new post/title.md and get published when the draft flag is set to false. Site-wide settings live in config.toml, where you define profile links, comments, search, and custom assets. Deployment to GitHub Pages can be automated with the provided shell script, which builds the site with hugo and pushes the output to a gh-pages branch.
Create a Hugo site, then run git submodule add with the github-style repository URL as the theme. Inside the site folder, rename content/posts to content/post and create a readme.md file. Then configure config.toml with your profile and preferences.
Yes. Add katex: math to a post's front matter to enable KaTeX auto-rendering, which processes \( ... \) for inline math and $$ ... $$ for display math. Alternatively, set mathJax: true to use MathJax instead.
Set enableSearch = true under [params], and add home = ["html", "json"] under [outputs] with the appropriate [outputFormats.json] configuration. The theme then uses fuse.js to provide client-side search on the site.
Yes. Add the enableGitalk flag and the [params.gitalk] section to config.toml with your GitHub client ID, client secret, repository name, owner, and admin usernames. Comments then appear as GitHub Issues.
Each post's front matter can include a summary field, which is displayed on the index page but not in the post itself. Alternatively, insert a <!--more--> marker in the Markdown body; content before the marker is shown as the excerpt.
