{"id":18026799,"url":"https://github.com/yegor256/jekyll-shorts","last_synced_at":"2025-03-27T01:31:26.330Z","repository":{"id":221298066,"uuid":"753977835","full_name":"yegor256/jekyll-shorts","owner":"yegor256","description":"Automatic generator of short links for all Jekyll pages","archived":false,"fork":false,"pushed_at":"2024-10-01T15:46:43.000Z","size":88,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-08T08:42:01.605Z","etag":null,"topics":["jekyll","jekyll-plugin","ruby","shortener","url-shortener"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/jekyll-shorts","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":"2024-02-07T06:39:23.000Z","updated_at":"2024-10-01T15:46:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7a9a8b8-627f-46dc-86af-9bfbd6b1576c","html_url":"https://github.com/yegor256/jekyll-shorts","commit_stats":null,"previous_names":["yegor256/jekyll-shorts"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjekyll-shorts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjekyll-shorts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjekyll-shorts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjekyll-shorts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/jekyll-shorts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245764710,"owners_count":20668464,"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":["jekyll","jekyll-plugin","ruby","shortener","url-shortener"],"created_at":"2024-10-30T08:08:07.061Z","updated_at":"2025-03-27T01:31:26.324Z","avatar_url":"https://github.com/yegor256.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![rake](https://github.com/yegor256/jekyll-shorts/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/jekyll-shorts/actions/workflows/rake.yml)\n[![Gem Version](https://badge.fury.io/rb/jekyll-shorts.svg)](http://badge.fury.io/rb/jekyll-shorts)\n\nIf you have a [Jekyll](https://jekyllrb.com/) static site, this plugin may help you automatically\ngenerate short links for every page. I'm using this plugin for\n[my blog](https://github.com/yegor256/blog).\n\nInstall it first (you need [Ruby 3+](https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/)\nand [Jekyll 3+](https://jekyllrb.com/)):\n\n```\n$ gem install jekyll-shorts\n```\n\nThen, add this to `_config.yml`:\n\n```yaml\nplugins:\n  - ... your other plugins here ...\n  - jekyll-shorts\nshorts:\n  permalink: :year:month:day:letter.html\n```\n\nHere, every page in the site will get a sibling with the name\n`:year:month:day.html`, which will redirect to the page itself. You can use:\n\n  * `:year` - the short form of the year of the post, like `23` or `76`\n  * `:month` - the month of the post, like `01` or `12`\n  * `:day` - the day of the post, like `07` or `29`\n  * `:letter` - a unique English letter for a short URL, like `a`, `b`, etc.\n\nIf you don't use the `:letter`, you may end up with duplicated URLs. For example,\nyou have two pages written in 2023-11-23. Their URLs will be the same, if the\n`permalink` is `:year:month:day.html`, as in the example above. With the help of the `:letter`,\ntwo URLs become different.\n\nInside the Jekyll page, you can use `{{ page.short-url }}` for the value of the short URL.\n\n## How to Contribute\n\nMake a fork and then test it locally like this:\n\n```bash\n$ bundle update\n$ bundle exec rake\n```\n\nIf it works, make changes, test again, and then submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fjekyll-shorts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Fjekyll-shorts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fjekyll-shorts/lists"}