{"id":13787001,"url":"https://github.com/bridgetownrb/bridgetown-feed","last_synced_at":"2025-04-13T16:32:33.005Z","repository":{"id":52824550,"uuid":"255449846","full_name":"bridgetownrb/bridgetown-feed","owner":"bridgetownrb","description":"A Bridgetown plugin to generate an Atom feed of your Bridgetown posts","archived":false,"fork":false,"pushed_at":"2024-03-03T06:32:44.000Z","size":410,"stargazers_count":21,"open_issues_count":8,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T07:51:36.716Z","etag":null,"topics":["atom","atom-feed","bridgetown","bridgetown-plugin","rss"],"latest_commit_sha":null,"homepage":null,"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/bridgetownrb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2020-04-13T21:55:14.000Z","updated_at":"2024-12-27T10:57:21.000Z","dependencies_parsed_at":"2024-01-18T23:11:04.228Z","dependency_job_id":"14007331-4e7d-40bc-8428-fe5c0e8fe0d5","html_url":"https://github.com/bridgetownrb/bridgetown-feed","commit_stats":{"total_commits":326,"total_committers":26,"mean_commits":"12.538461538461538","dds":0.7607361963190185,"last_synced_commit":"bc0111922e59f9a74c2ca3d6d46f3be6c0621167"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bridgetownrb%2Fbridgetown-feed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bridgetownrb%2Fbridgetown-feed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bridgetownrb%2Fbridgetown-feed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bridgetownrb%2Fbridgetown-feed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bridgetownrb","download_url":"https://codeload.github.com/bridgetownrb/bridgetown-feed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501861,"owners_count":21114683,"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":["atom","atom-feed","bridgetown","bridgetown-plugin","rss"],"created_at":"2024-08-03T20:00:24.497Z","updated_at":"2025-04-13T16:32:32.725Z","avatar_url":"https://github.com/bridgetownrb.png","language":"Ruby","funding_links":[],"categories":["Official Resources","Ruby"],"sub_categories":["Official Plugins"],"readme":"# Bridgetown Feed plugin\n\nA Bridgetown plugin to generate an Atom (RSS-like) feed of your Bridgetown posts and other collection documents.\n\n## Installation for Bridgetown 1.2+\n\nRun this command to add this plugin to your site's Gemfile:\n\n```shell\n$ bundle add bridgetown-feed\n```\n\nOr simply add this line to your Gemfile:\n\n```ruby\ngem 'bridgetown-feed'\n```\n\nAnd then add the initializer to your configuration in `config/initializers.rb`:\n\n```ruby\nBridgetown.configure do\n  # existing config here\n\n  init :\"bridgetown-feed\"\nend\n```\n\n(For Bridgetown 1.1 or earlier, [read these instructions](https://github.com/bridgetownrb/bridgetown-feed/tree/v2.1.0).)\n\n## Usage\n\nThe plugin exposes a helper tag to expose the appropriate meta tags to support automated discovery of your feed.\n\nSimply place `feed_meta` someplace in your layout's `\u003chead\u003e` section to output the necessary metadata.\n\n```liquid\n\u003c!-- layout.liquid --\u003e\n{% feed_meta %}\n```\n\n```erb\n\u003c!-- layout.erb --\u003e\n\u003c%= feed_meta %\u003e\n```\n\nThe plugin will automatically generate an Atom feed at `/feed.xml`.\n\n### Optional configuration options\n\nThe plugin will automatically use any of the following metadata variables if they are present in your site's `_data/site_metadata.yml` file.\n\n* `title` or `name` - The title of the site, e.g., \"My awesome site\"\n* `description` - A longer description of what your site is about, e.g., \"Where I blog about Bridgetown and other awesome things\"\n* `author` - Global author information (see below)\n\nIn addition it looks for these `bridgetown.config.yml` settings:\n\n* `url` - The URL to your site, e.g., `https://example.com`.\n\n### Already have a feed path?\n\nDo you already have an existing feed someplace other than `/feed.xml`, but are on a host like GitHub Pages that doesn't support machine-friendly redirects? If you simply swap out `bridgetown-feed` for your existing template, your existing subscribers won't continue to get updates. Instead, you can specify a non-default path via your site's config.\n\n```yml\nfeed:\n  path: atom.xml\n```\n\nTo note, you shouldn't have to do this unless you already have a feed you're using, and you can't or wish not to redirect existing subscribers.\n\n### Optional front matter\n\nThe plugin will use the following post metadata, automatically generated by Bridgetown, which you can override via a post's YAML front matter:\n\n* `date`\n* `title`\n* `excerpt`\n* `id`\n* `category`\n* `tags`\n\nAdditionally, the plugin will use the following values, if present in a post's YAML front matter:\n\n* `image` - URL of an image that is representative of the post (can also be passed as `image.path`)\n\n* `author` - The author of the post, e.g., \"Dr. Bridgetown\". If none is given, feed readers will look to the feed author as defined in `_data/site_metadata.yml`. Like the feed author, this can also be an object or a reference to an author in `_data/authors.yml` (see below).\n\n### Author information\n\n*TL;DR: In most cases, put `author: [your name]` in the document's front matter, for sites with multiple authors. If you need something more complicated, read on.*\n\nThere are several ways to convey author-specific information. Author information is found in the following order of priority:\n\n1. An `author` object, in the documents's front matter, e.g.:\n\n  ```yml\n  author:\n    name: Issac Asimov\n  ```\n\n2. An `author` object, in the site's `_data/site_metadata.yml`, e.g.:\n\n  ```yml\n  author:\n    name: Issac Asimov\n  ```\n\n3. `site.data.authors[author]`, if an author is specified in the document's front matter, and a corresponding key exists in `site.data.authors`. E.g., you have the following in the document's front matter:\n\n  ```yml\n  author: iasimov\n  ```\n\n  And you have the following in `_data/authors.yml`:\n\n  ```yml\n  iasimov:\n    picture: /images/marina.jpg\n    name: Issac Asimov\n\n  jwhite:\n    picture: /images/jared.jpg\n    name: Jared White\n  ```\n\n  In the above example, the author `iasimov`'s name will be resolved to `Issac Asimov`. This allows you to centralize author information in a single `_data/authors.yml` file for site with many authors that require more than just the author's username.\n\n  *Pro-tip: If `authors` is present in the document's front matter as an array (and `author` is not), the plugin will use the first author listed.*\n\n4. An author in the document's front matter (the simplest way), e.g.:\n\n  ```yml\n  author: marina\n  ```\n\n5. An author in the site's `_data/site_metadata.yml`, e.g.:\n\n  ```yml\n  author: marina\n  ```\n\nThe author keys the plugin can read are `name`, `email`, and `uri` (for linking to an author's website).\n\n### SmartyPants\n\nThe plugin uses [Bridgetown's `smartify` filter](https://www.bridgetownrb.com/docs/liquid/filters) for processing the site title and post titles. This will translate plain ASCII punctuation into \"smart\" typographic punctuation. This will not render or strip any Markdown you may be using in a title.\n\nBridgetown's `smartify` filter uses [kramdown](https://kramdown.gettalong.org/options.html) as a processor.  Accordingly, if you do not want \"smart\" typographic punctuation, disabling them in kramdown in your `bridgetown.config.yml` will disable them in your feed. For example:\n\n   ```yml\n   kramdown:\n     smart_quotes:               apos,apos,quot,quot\n     typographic_symbols:        {hellip: ...}\n   ```\n\n### Custom styling\n\nWant to style what your feed looks like in the browser? Simply add an XSLT at `/feed.xslt.xml` and Bridgetown Feed will link to the stylesheet.\n\n## Categories\n\nBridgetown Feed can generate feeds for each category. Simply define which categories you'd like feeds for in your config:\n\n```yml\nfeed:\n  categories:\n    - news\n    - updates\n```\n\n## Collections\n\nBridgetown Feed can generate feeds for collections other than the Posts collection. This works best for chronological collections (e.g., collections with dates in the filenames). Simply define which collections you'd like feeds for in your config:\n\n```yml\nfeed:\n  collections:\n    - changes\n```\n\nBy default, collection feeds will be outputted to `/feed/\u003cCOLLECTION\u003e.xml`. If you'd like to customize the output path, specify a collection's custom path as follows:\n\n```yml\nfeed:\n  collections:\n    changes:\n      path: \"/changes.xml\"\n```\n\nFinally, collections can also have category feeds which are outputted as `/feed/\u003cCOLLECTION\u003e/\u003cCATEGORY\u003e.xml`. Specify categories like so:\n\n```yml\nfeed:\n  collections:\n    changes:\n      path: \"/changes.xml\"\n      categories:\n        - news\n        - updates\n```\n\n## Excerpt Only flag\n\nOptional flag `excerpt_only` allows you to exclude post content from the Atom feed. Default value is `false` for backward compatibility.\n\nWhen it's set to `true` in `bridgetown.config.yml`, all posts in feed will be without `\u003ccontent\u003e` tags.\n\n```yml\nfeed:\n  excerpt_only: true\n```\n\nThe same flag can be used directly in post file. It will be disable `\u003ccontent\u003e` tag for selected post.\nSettings in post file has higher priority than in config file.\n\n## Post Limit\n\nOptional flag `post_limit` allows you to set a limit to the number of posts shown in the feed. Default value is `10`.\n\nWhen it is set in `bridgetown.config.yml`, all collections will be limited:\n\n```yml\nfeed:\n  post_limit: 25\n```\n\nThe same flag can also be set on a collection:\n\n```yml\nfeed:\n  collections:\n    changes:\n      post_limit: 25\n```\n\n## Testing\n\n* Run `bundle exec rspec` to run the test suite\n* Or run `script/cibuild` to validate with Rubocop and test with rspec together\n\n## Contributing\n\n1. Fork it (https://github.com/bridgetownrb/bridgetown-feed/fork)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbridgetownrb%2Fbridgetown-feed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbridgetownrb%2Fbridgetown-feed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbridgetownrb%2Fbridgetown-feed/lists"}