The standard library supports RSS 0.91, 1.0, 2.0,Īnd Atom, a related format. Of the standard library provides tooling to read and create these feeds. Subscribe and receive updates from a particular web service. Really Simple Syndication ( RSS) is a family ofįormats that describe ‘feeds,’ specially constructed XML documents that allow an interested person to
Ruby rss builder how to#
If there is, you can simply update the remote_theme or gem fields accordingly.Īfter setting up your site, you still need to go through the rest of the beautiful-jekyll documentation to learn about all its features and how to use it.Frozen_string_literal: false RSS reading and writing If at any point in the future you want to update to a newer version of beautiful-jekyll, you can come back to this page and see if there’s a new version. If you want the home page to include a feed of all blog posts, create an index.html file and use layout: home in its YAML.If you use staticman comments, copy staticman.yml and _data/ui-text.yml.To enable the tags index page, you need to copy tags.html.Some config features will not work immediately because of missing files that you’ll need to copy from beautiful-jekyll into your project.Go through beautiful-jekyll’s _config.yml file and copy any settings you want to use into your project’s config file.But if you use one of these three “hard” methods, many of the theme’s files and folders will be hidden from you, so you’ll need to: When you use beautiful-jekyll with the “easy way”, you’ll have direct access to all the theme’s files because you’ll be literally copying the project. If you’re developing using a local ruby gem (as opposed to on GitHub), you can preview your site by running bundle exec jekyll serve (optionally with -H 0.0.0.0 if needed).
Ruby rss builder code#
You can look at the code for this website as an example of how to implement these methods. This website ( ) was built using the remote_theme + GitHub method.
Ruby rss builder install#
Add gem "jekyll-remote-theme" to your Gemfile and then run bundle install to install the plugin.Install Ruby and Jekyll ( sudo apt-get install ruby ruby-dev make gcc and sudo gem install jekyll bundler).Method 2: Using remote_theme with a Ruby Jekyll site Show Steps Go to Settings, scroll down to the GitHub Pages section, and choose “master branch” as the source.Add remote_theme: to your _config.yml file (make sure to remove any previous theme or remote_theme parameters that may have been there before).Create a new GitHub repository or go to an existing repository.Method 1: Using remote_theme with a GitHub repository Show Steps
![ruby rss builder ruby rss builder](http://railscasts.com/static/episodes/asciicasts/E087RI01.png)
You should look up the official documentation for whichever method you want to use, but here are the basics:
![ruby rss builder ruby rss builder](https://www.honeybadger.io/images/michael.png)
These are advanced uses and you should only use one of these methods if you know how to write jekyll sites from scratch. There are three other ways of using beautiful-jekyll.
![ruby rss builder ruby rss builder](http://railscasts.com/static/episodes/asciicasts/E252I08.png)
If you’re an advanced user and want to use beautiful-jekyll as a ruby gem, then follow these steps.īeautiful-Jekyll was initially developed as a GitHub Pages theme that was meant to be used via forking as described above, but due to high demand it’s now also available as a Github “remote_theme” and as a Ruby Gem. Installation steps (as a ruby gem - the hard way)įor most people (including myself!), I suggest using the easy way and ignoring this section.