{"id":19042783,"url":"https://github.com/srinidhibhat45/srinidhi-github-blog","last_synced_at":"2026-04-14T06:33:03.539Z","repository":{"id":177186342,"uuid":"357445218","full_name":"srinidhibhat45/srinidhi-github-blog","owner":"srinidhibhat45","description":"A fully static blog site based on HUGO's GitHub theme.","archived":false,"fork":false,"pushed_at":"2021-04-15T10:56:42.000Z","size":1600,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-21T23:14:58.611Z","etag":null,"topics":["blog","github","github-theme","go","golang","hacktoberfest","hugo","hugo-site","hugo-theme","netlify","portfolio","static","website"],"latest_commit_sha":null,"homepage":"https://srinidhi-blogs-github.netlify.app/","language":"HTML","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/srinidhibhat45.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,"publiccode":null,"codemeta":null}},"created_at":"2021-04-13T06:19:50.000Z","updated_at":"2021-09-29T04:17:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3059869-3f32-4b93-86b1-57dcffdfd129","html_url":"https://github.com/srinidhibhat45/srinidhi-github-blog","commit_stats":null,"previous_names":["srinidhibhat45/srinidhi-github-blog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/srinidhibhat45/srinidhi-github-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinidhibhat45%2Fsrinidhi-github-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinidhibhat45%2Fsrinidhi-github-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinidhibhat45%2Fsrinidhi-github-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinidhibhat45%2Fsrinidhi-github-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srinidhibhat45","download_url":"https://codeload.github.com/srinidhibhat45/srinidhi-github-blog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srinidhibhat45%2Fsrinidhi-github-blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31785579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: 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":["blog","github","github-theme","go","golang","hacktoberfest","hugo","hugo-site","hugo-theme","netlify","portfolio","static","website"],"created_at":"2024-11-08T22:38:59.948Z","updated_at":"2026-04-14T06:33:03.524Z","avatar_url":"https://github.com/srinidhibhat45.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-style\n\n## Init hugo site\n\n```bash\nhugo new site mysite\ncd mysite\n```\n\n## Install the theme\n\n```bash\ngit submodule add git@github.com:MeiK2333/github-style.git themes/github-style\n```\n\n## Update the theme\n\nIf you just installed the theme, it is already in the latest version. If not, you can update using the below commands\n\n```bash\ncd themes/github-style\ngit pull\n```\n\nThen, you need to rename the previous `posts` folder to `post`\n\n```bash\ncd \u003cyou-project-folder\u003e\nmv content/posts content/post\n```\n\n## Setup readme\n\n```bash\nhugo new readme.md\necho '`Hello World!`' \u003e content/readme.md\n```\n\n## Pin post\n\n```\n---\npin: true\n---\n```\n\n## Add new post\n\nHugo will create a post with `draft: true`, change it to false in order for it to show in the website.\n\n```\nhugo new post/title_of_the_post.md\n```\n\n## Limit display content\n\n### Approch 1: use summary\n\n```\n---\ntitle: \"title\"\ndate: 2019-10-22T18:46:47+08:00\ndraft: false\nsummary: \"The summary content\"\n---\n```\n\n### Approch 2: use `\u003c!--more--\u003e`\n\nUse `\u003c!--more--\u003e` to seperate content that will display in the posts page as abstraction and the rest of the content. This is different from summary, as summary will not appear in the post.\n```\n---\ntitle: \"title\"\ndate: 2019-10-22T18:46:47+08:00\ndraft: false\n---\nabstraction show in the post page\n\u003c!--more--\u003e\nother content\n```\n\n## add last modified data\n\nadd to `config.toml`\n\n```toml\nlastmod = true\n\n[frontmatter]\n  lastmod = [\"lastmod\", \":fileModTime\", \":default\"]\n```\n\n## Support LaTex\n\nIn you post add `math: true` to [front matter](https://gohugo.io/content-management/front-matter/)\n\n```\n---\nkatex: math\n---\n```\n\nThen the [katex script](https://katex.org/docs/autorender.html) will auto render the string enclosed be delimiters.\n\n```\n# replace ... with latex formula\ndisplay inline \\\\( ... \\\\)\ndisplay block $$ ... $$\n```\n\n![latex example](images/latex_example.png)\n\n## config.toml example\n\n```toml\nbaseURL = \"https://meik2333.com/\"\nlanguageCode = \"zh-cn\"\ntitle = \"MeiK's blog\"\ntheme = \"github-style\"\ngoogleAnalytics = \"UA-123456-789\"\npygmentsCodeFences = true\npygmentsUseClasses = true\n\n[params]\n  author = \"MeiK\"\n  description = \"In solitude, where we are least alone.\"\n  github = \"MeiK2333\"\n  facebook = \"MeiK2333\"\n  twitter = \"MeiK2333\"\n  linkedin = \"MeiK2333\"\n  instagram = \"MeiK2333\"\n  tumblr = \"MeiK2333\"\n  email = \"meik2333@gmail.com\"\n  url = \"https://meik2333.com\"\n  keywords = \"blog, google analytics\"\n  rss = true\n  lastmod = true\n  favicon = \"/images/github.png\"\n  location = \"China\"\n\n  [[params.links]]\n    title = \"Link\"\n    href = \"https://github.com/meik2333\"\n  [[params.links]]\n    title = \"Link2\"\n    href = \"https://meik2333.com\"\n    icon = \"https://meik2333.com/images/avatar.png\"\n\n[frontmatter]\n  lastmod = [\"lastmod\", \":fileModTime\", \":default\"]\n\n```\n\n## deploy.sh example\n\nThere are various way to deploy to github, here is a link to official [document](https://gohugo.io/hosting-and-deployment/hosting-on-github/).\n\nHere is an sample. Note line 22 have `env HUGO_ENV=\"production\"`, makes sure googleAnalysis is loaded during production, but is not loaded when we are testing it in localhost.\n\n```bash\n#!/bin/sh\n\nif [ \"`git status -s`\" ]\nthen\n    echo \"The working directory is dirty. Please commit any pending changes.\"\n    exit 1;\nfi\n\necho \"Deleting old publication\"\nrm -rf public\nmkdir public\ngit worktree prune\nrm -rf .git/worktrees/public/\n\necho \"Checking out gh-pages branch into public\"\ngit worktree add -B gh-pages public origin/gh-pages\n\necho \"Removing existing files\"\nrm -rf public/*\n\necho \"Generating site\"\nenv HUGO_ENV=\"production\" hugo -t github-style\n\necho \"Updating gh-pages branch\"\ncd public \u0026\u0026 git add --all \u0026\u0026 git commit -m \"Publishing to gh-pages (publish.sh)\"\n\n#echo \"Pushing to github\"\n#git push --all\n```\n\nThen you can verify the site is working and use `git push --all` to push the change to github. If you don't want to check again every time, you can uncomment the `#git push --all` in the script.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrinidhibhat45%2Fsrinidhi-github-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrinidhibhat45%2Fsrinidhi-github-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrinidhibhat45%2Fsrinidhi-github-blog/lists"}