Skip to content

Add RSS feed and news archive #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'
# Because https://help.github.com/articles/using-jekyll-with-pages/
gem 'github-pages'

3 changes: 1 addition & 2 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name: Git Developer Pages
markdown: redcarpet
gems:
- jekyll-redirect-from
permalink: /rev_news/:year/:month/:day/:title/
26 changes: 26 additions & 0 deletions _includes/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# About

This homepage is maintained by editing files in the
[git/git.github.io](https://github.com/git/git.github.io) repository on
GitHub.
Expand All @@ -9,3 +11,27 @@ be better?
If you want push access, contact [email protected] and provide your GitHub
username. You may also send patches by mail (and feel free to cc
[email protected] if appropriate).


# Development

* Make sure you've got ruby2 (packages are available, have to replace
`/usr/bin/ruby` and `/usr/bin/gem` with their v2 options)
* `sudo gem install bundler`
* Clone this repo
* If I haven't committed the Gemfile yet, create it with these lines:
```
source 'https://rubygems.org'
gem 'github-pages'
```
* `sudo apt-get install zlib1g-dev` # ref [1]
* `bundle install`
* `bundle exec jekyll serve`
* browse the site on http://localhost:4000

Based on https://help.github.com/articles/using-jekyll-with-pages/

I better copy the above into the repo's README at some point.

[1] http://www.nokogiri.org/tutorials/installing_nokogiri.html#ubuntu___debian

24 changes: 24 additions & 0 deletions _includes/news_item.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<article>
<h2>
<a href="{{ post.url }}">
{{ post.title }}
</a>
</h2>
<span class="post-category">
<span class="label">
{{ post.categories | array_to_sentence_string }}
</span>
</span>
<div class="post-meta">
<span class="post-date">
{{ post.date | date_to_string }}
</span>
<a href="https://github.com/{{ post.author }}" class="post-author">
<img src="https://github.com/{{ post.author }}.png" class="avatar" alt="{{ post.author }} avatar" width="24" height="24">
{{ post.author }}
</a>
</div>
<div class="post-content">
{{ post.content }}
</div>
</article>
Loading