{"id":13718984,"url":"https://github.com/totoroot/hugo-github-calendar","last_synced_at":"2026-01-17T08:41:53.402Z","repository":{"id":133672492,"uuid":"586223771","full_name":"totoroot/hugo-github-calendar","owner":"totoroot","description":"Hugo shortcode for github-calendar.js","archived":false,"fork":false,"pushed_at":"2023-03-31T10:21:47.000Z","size":108,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T18:00:56.537Z","etag":null,"topics":["github-calendar","github-calendar-shortcode","github-contribution-graph","github-contributions","hugo","hugo-shortcode","hugo-theme","hugo-theme-component","shortcode","ssg","ssg-hugo"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/totoroot.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":"2023-01-07T11:37:21.000Z","updated_at":"2025-03-18T09:29:33.000Z","dependencies_parsed_at":"2024-01-07T21:13:47.306Z","dependency_job_id":"85eff6b8-c5a5-4543-88ff-bd3524caa7c2","html_url":"https://github.com/totoroot/hugo-github-calendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/totoroot/hugo-github-calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totoroot%2Fhugo-github-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totoroot%2Fhugo-github-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totoroot%2Fhugo-github-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totoroot%2Fhugo-github-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totoroot","download_url":"https://codeload.github.com/totoroot/hugo-github-calendar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totoroot%2Fhugo-github-calendar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":["github-calendar","github-calendar-shortcode","github-contribution-graph","github-contributions","hugo","hugo-shortcode","hugo-theme","hugo-theme-component","shortcode","ssg","ssg-hugo"],"created_at":"2024-08-03T01:00:40.385Z","updated_at":"2026-01-17T08:41:53.372Z","avatar_url":"https://github.com/totoroot.png","language":"CSS","funding_links":[],"categories":["Theme Components"],"sub_categories":["Non-Official"],"readme":"# hugo-github-calendar [\u003cimg src=\"https://d33wubrfki0l68.cloudfront.net/c38c7334cc3f23585738e40334284fddcaf03d5e/2e17c/images/hugo-logo-wide.svg\" align=\"right\" width=\"250\"\u003e](https://gohugo.io/)\n\n[![GitHub License](https://img.shields.io/github/license/future-wd/hugo-responsive-images?style=flat-square)](https://github.com/future-wd/hugo-responsive-images/blob/master/LICENSE)\n\u003c!-- [![Awesome](https://awesome.re/badge.svg)](https://github.com/budparr/awesome-hugo) --\u003e\n\n## About\n\nThis is not a standalone theme. It is a [Hugo](https://gohugo.io) theme component providing a shortcode: `github-calendar` to display [github-calendar.js](https://bloggify.github.io/github-calendar/) in your Hugo site.\n\n![Screenshot](screenshots/screenshot-1.png)\n\nContrary to other shortcodes, this shortcode uses locally sourced JS and CSS so they must be included.\nChanges made from the [upstream source files](https://github.com/Bloggify/github-calendar/tree/gh-pages/dist) were:\n\n- **github-calendar.min.js**: reducing the width of the graph inside its container for better looks (upstream the text is too close to the left border of its container)\n- **github-calendar.css**: introducing root variables for background and text color to make them conveniently configurable via the shortcode\n\n## Usage\n\n1. Add the `hugo-github-calendar` as a submodule to be able to get upstream changes later `git submodule add https://github.com/totoroot/hugo-github-calendar.git themes/hugo-github-calendar`\n2. Add `hugo-github-calendar` as the left-most element of the `theme` list variable in your site's or theme's configuration file `config.yaml` or `config.toml`. Example, with `config.yaml`:\n    ```yaml\n    theme: [\"hugo-github-calendar\", \"my-theme\"]\n    ```\n    or, with `config.toml`,\n    ```toml\n    theme = [\"hugo-github-calendar\", \"my-theme\"]\n    ```\n3. In your site, use the shortcode, this way:\n    ```go\n    {{\u003c github-calendar username=\"totoroot\" \u003e}}{{\u003c/ github-calendar \u003e}}\n\n    ```\n    Just replace my username with yours. The shortcode expects at least the username, but accepts some optional variable as well.\n\n    All options that can be passed via shortcode, are listed below:\n    ```go\n    {{\u003c github-calendar username=\"totoroot\" responsive=true width=100 backgroundColor=#303030 textColor=#ececec \u003e}}{{\u003c/ github-calendar \u003e}}\n\n    ```\n\n    | Name | Type | Default | Description |\n    | ---- | ---- | ---- | ---- |\n    | username | string | totoroot | The username used to fetch GitHub contributions. |\n    | responsive | bool | true | If graph should be sized responsively in relation to its container. |\n    | width | integer | 100 | The width of the graph's \u003cdiv\u003e container in percent. |\n    | backgroundColor | CSS color value | #303030 | The color value to use for the background of the container. |\n    | textColor | CSS color value | #ececec | The color value to use for all text in the container. |\n\n## License\n\n[hugo-github-calendar](https://github.com/totoroot/hugo-github-calendar) by [Matthias Thym](https://github.com/totoroot), as well as [github-calendar.js](https://github.com/Bloggify/github-calendar) are licensed under [MIT](https://github.com/totoroot/hugo-github-calendar/blob/main/LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotoroot%2Fhugo-github-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotoroot%2Fhugo-github-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotoroot%2Fhugo-github-calendar/lists"}