{"id":14979484,"url":"https://github.com/yegor256/jekyll-git-hash","last_synced_at":"2025-10-28T18:31:44.176Z","repository":{"id":15983661,"uuid":"18726728","full_name":"yegor256/jekyll-git-hash","owner":"yegor256","description":"Jekyll Plugin for Git Hash Retrieval","archived":false,"fork":false,"pushed_at":"2024-05-09T09:51:18.000Z","size":55,"stargazers_count":23,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-10T00:36:02.449Z","etag":null,"topics":["git","git-hash","jekyll","jekyll-plugin"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/jekyll-git-hash","language":"Ruby","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/yegor256.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2014-04-13T10:32:07.000Z","updated_at":"2024-05-27T11:35:41.002Z","dependencies_parsed_at":"2023-10-11T17:30:55.486Z","dependency_job_id":"6068d167-4d90-4c95-8884-56223fb44eb1","html_url":"https://github.com/yegor256/jekyll-git-hash","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjekyll-git-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjekyll-git-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjekyll-git-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjekyll-git-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/jekyll-git-hash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859013,"owners_count":16556038,"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":["git","git-hash","jekyll","jekyll-plugin"],"created_at":"2024-09-24T14:00:07.721Z","updated_at":"2025-10-28T18:31:44.171Z","avatar_url":"https://github.com/yegor256.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![rake](https://github.com/yegor256/jekyll-git-hash/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/jekyll-git-hash/actions/workflows/rake.yml)\n[![Gem Version](https://badge.fury.io/rb/jekyll-git-hash.svg)](https://badge.fury.io/rb/jekyll-git-hash)\n\nI use this plugin in [my Jekyll-powered blog](https://github.com/yegor256/blog).\n\nInstall it first:\n\n```\ngem install jekyll-git-hash\n```\n\nWith Jekyll 2, simply add the gem to your `_config.yml` gems list:\n\n```yaml\ngems: ['jekyll-git-hash', ... your other plugins]\n```\n\nOr for previous versions,\ncreate a plugin file within your Jekyll project's `_plugins` directory:\n\n```ruby\n# _plugins/jekyll-git-hash.rb\nrequire 'jekyll-git-hash'\n```\n\nHighly recommend to use Bundler. If you're using it, add this line\nto your `Gemfile`:\n\n```\ngem \"jekyll-git-hash\"\n```\n\nThe plugin is compatible with\n[Jekyll 3.9.3](https://jekyllrb.com/news/2023/01/29/jekyll-3-9-3-released/) and\n[Jekyll 4.3.2](https://jekyllrb.com/news/2023/01/20/jekyll-4-3-2-released/).\n\nUse `{{ site.data['hash']}}` inside your liquid template.\n\nWhen the site is being generated by Jekyll, the\nplugin retrieves Git hash of the source code and\nexposes it as a item in `site.data`. This feature\nis very helpful when you want your static resources (CSS, JS, etc.)\nbe reloaded by end users every time you deploy a new\nversion of the site.\n\nFor example, in your `default.html`:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"/css/layout.css?{{ site.data['hash'] }}\"/\u003e\n```\n\nThe URL will be generated with a suffix at the end. This\nsuffix doesn't change the URL (`layout.css` will still\nbe accesible by the browser), but it makes the URL unique\nfor the browser when you deploy a new Git revision. All browsers\nwill reload this CSS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fjekyll-git-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Fjekyll-git-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fjekyll-git-hash/lists"}