Skip to content

Commit

Permalink
add RSS support, closes RetroAchievements#6
Browse files Browse the repository at this point in the history
  • Loading branch information
meleu committed Jan 11, 2021
1 parent 151d287 commit 3f5ffa2
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 59 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RANews stuff
_temp/*
tools/.env
tools/err
tools/*
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ gem "jekyll", "~> 4.1.1"
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
gem "jekyll-sitemap"
gem "jekyll-seo-tag"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
Expand Down
51 changes: 29 additions & 22 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.3.2)
activesupport (6.1.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.6)
em-websocket (0.5.1)
concurrent-ruby (1.1.7)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.13.1)
ffi (1.14.2)
forwardable-extended (2.6.0)
gemoji (3.0.1)
html-pipeline (2.13.0)
html-pipeline (2.14.0)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.6.0)
i18n (1.8.4)
i18n (1.8.7)
concurrent-ruby (~> 1.0)
jekyll (4.1.1)
addressable (~> 2.4)
Expand All @@ -39,10 +39,14 @@ GEM
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
jekyll-feed (0.15.0)
jekyll-feed (0.15.1)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.7.1)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
jemoji (0.12.0)
Expand All @@ -54,39 +58,42 @@ GEM
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.2.1)
listen (3.4.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.4.0)
minitest (5.14.1)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
mini_portile2 (2.5.0)
minitest (5.14.3)
nokogiri (1.11.1)
mini_portile2 (~> 2.5.0)
racc (~> 1.4)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.5)
public_suffix (4.0.6)
racc (1.5.2)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.4)
rouge (3.21.0)
rouge (3.26.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (1.7.0)
zeitwerk (2.4.0)
zeitwerk (2.4.2)

PLATFORMS
ruby

DEPENDENCIES
jekyll (~> 4.1.1)
jekyll-feed (~> 0.12)
jekyll-seo-tag
jekyll-sitemap
jemoji
tzinfo (~> 1.2)
tzinfo-data
Expand Down
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ github_username: RetroAchievements
# Build settings
plugins:
- jekyll-feed
- jekyll-sitemap
- jekyll-seo-tag
- jemoji

collections:
Expand Down
32 changes: 6 additions & 26 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<!-- <title>{{ page.title }}</title> -->
{% seo %}
{% feed_meta %}

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-177315439-1"></script>
<script>
Expand All @@ -9,32 +15,6 @@
gtag('config', 'UA-177315439-1');
</script>

<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>{{ site.title }}
|
{{ site.description }}</title>

<!-- Primary Meta Tags -->
<meta name="title" content="{{ site.title }} | {{ site.description }}">
<meta content="Check what's happening on the RetroAchievements scene." name="description">

<!-- Open Graph / Facebook -->
<meta content="website" property="og:type">
<meta property="og:url" content="{{ site.url }}">
<meta property="og:title" content="{{ site.title }} | {{ site.description }}">
<meta content="Check what's happening on the RetroAchievements scene." property="og:description">
<meta content="img/share.png" property="og:image">

<!-- Twitter -->
<meta content="summary_large_image" property="twitter:card">
<meta property="twitter:url" content="{{ site.url }}">
<meta property="twitter:title" content="{{ site.title }} | {{ site.description }}">
<meta content="Check what's happening on the RetroAchievements scene." property="twitter:description">
<meta content="img/share.png" property="twitter:image">

<!-- <base href="{{ site.url }}"> -->

<link href="https://use.fontawesome.com/releases/v5.12.0/css/all.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap"
Expand Down
23 changes: 12 additions & 11 deletions _issues/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
order: 0
---

<div class="issues-list-container">
Expand All @@ -10,17 +11,17 @@ <h1>RANews Issues List</h1>

<ul>
{% for issue in issues %}
{% if issue != blank %}
<a href="{{ site.baseurl }}/issues/{{ issue }}">
<li>
<h3>
<img alt="cover" src="{{ site.baseurl }}/issues/{{ issue }}/img/cover.png">
RANews
{{ issue }}
</h3>
</li>
</a>
{% endif %}
{% if issue != blank %}
<a href="{{ site.baseurl }}/issues/{{ issue }}">
<li>
<h3>
<img alt="cover" src="{{ site.baseurl }}/issues/{{ issue }}/img/cover.png">
RANews
{{ issue }}
</h3>
</li>
</a>
{% endif %}
{% endfor %}
</ul>

Expand Down

0 comments on commit 3f5ffa2

Please sign in to comment.