Skip to content

Commit c96e20c

Browse files
committed
Merge pull request #38 from tfnico/master
Add RSS feed and news archive
2 parents bcf59ba + 2ad2029 commit c96e20c

File tree

9 files changed

+465
-4
lines changed

9 files changed

+465
-4
lines changed

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
# Because https://help.github.com/articles/using-jekyll-with-pages/
3+
gem 'github-pages'
4+

_config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
name: Git Developer Pages
22
markdown: redcarpet
3-
gems:
4-
- jekyll-redirect-from
3+
permalink: /rev_news/:year/:month/:day/:title/

_includes/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# About
2+
13
This homepage is maintained by editing files in the
24
[git/git.github.io](https://github.com/git/git.github.io) repository on
35
GitHub.
@@ -9,3 +11,27 @@ be better?
911
If you want push access, contact [email protected] and provide your GitHub
1012
username. You may also send patches by mail (and feel free to cc
1113
[email protected] if appropriate).
14+
15+
16+
# Development
17+
18+
* Make sure you've got ruby2 (packages are available, have to replace
19+
`/usr/bin/ruby` and `/usr/bin/gem` with their v2 options)
20+
* `sudo gem install bundler`
21+
* Clone this repo
22+
* If I haven't committed the Gemfile yet, create it with these lines:
23+
```
24+
source 'https://rubygems.org'
25+
gem 'github-pages'
26+
```
27+
* `sudo apt-get install zlib1g-dev` # ref [1]
28+
* `bundle install`
29+
* `bundle exec jekyll serve`
30+
* browse the site on http://localhost:4000
31+
32+
Based on https://help.github.com/articles/using-jekyll-with-pages/
33+
34+
I better copy the above into the repo's README at some point.
35+
36+
[1] http://www.nokogiri.org/tutorials/installing_nokogiri.html#ubuntu___debian
37+

_includes/news_item.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<article>
2+
<h2>
3+
<a href="{{ post.url }}">
4+
{{ post.title }}
5+
</a>
6+
</h2>
7+
<span class="post-category">
8+
<span class="label">
9+
{{ post.categories | array_to_sentence_string }}
10+
</span>
11+
</span>
12+
<div class="post-meta">
13+
<span class="post-date">
14+
{{ post.date | date_to_string }}
15+
</span>
16+
<a href="https://github.com/{{ post.author }}" class="post-author">
17+
<img src="https://github.com/{{ post.author }}.png" class="avatar" alt="{{ post.author }} avatar" width="24" height="24">
18+
{{ post.author }}
19+
</a>
20+
</div>
21+
<div class="post-content">
22+
{{ post.content }}
23+
</div>
24+
</article>

0 commit comments

Comments
 (0)