Add events page and RSS feed

Drop previous orphan events pages
Drop site.post in sitemap.rb
This commit is contained in:
Saivann 2013-06-25 00:02:33 -04:00
parent ff2783fe83
commit a252596168
16 changed files with 127 additions and 56 deletions

View file

@ -133,6 +133,19 @@ Bitcoin v0.3.24 is now available for download at
* `title: ...` will be used as the title * `title: ...` will be used as the title
* `src: ...` (optional) link to full annoucement * `src: ...` (optional) link to full annoucement
### Events
Events should be placed in `_events/YYYY-MM-DD-SHORTTITLE.md` and adhere to this format:
```
---
title: "Bitcoin 2013 The future of payments"
city: "San Jose"
country: "United States"
link: "http://bitcoin2013.com/"
---
```
### Aliases for contributors ### Aliases for contributors
Aliases for contributors are defined in ```_config.yml```. Aliases for contributors are defined in ```_config.yml```.

View file

@ -0,0 +1,6 @@
---
title: "Bitcoin London"
city: "London"
country: "United Kingdom"
link: "http://btclondon.com/"
---

View file

@ -0,0 +1,6 @@
---
title: "Inside Bitcoins, the future of virtual currency"
city: "New York"
country: "United States"
link: "http://www.mediabistro.com/insidebitcoins/"
---

View file

@ -0,0 +1,6 @@
---
title: "The European Bitcoin convention"
city: "Amsterdam"
country: "Netherlands"
link: "http://theconference.eu/"
---

View file

@ -0,0 +1,6 @@
---
title: "Bitcoin 2013: unSYSTEM"
city: "Vienna"
country: "Austria"
link: "https://unsystem.net/"
---

View file

@ -0,0 +1,6 @@
---
title: "BitcoinExpo 2013"
city: "London"
country: "United Kingdom"
link: "http://bitcoinexpo.co.uk/"
---

View file

@ -80,6 +80,7 @@ menu:
<li{% if page.id == 'resources' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate resources url %}">{% translate menu-resources layout %}</a></li> <li{% if page.id == 'resources' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate resources url %}">{% translate menu-resources layout %}</a></li>
<li{% if page.id == 'community' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate community url %}">{% translate menu-community layout %}</a></li> <li{% if page.id == 'community' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate community url %}">{% translate menu-community layout %}</a></li>
<li{% if page.id == 'development' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate development url %}">{% translate menu-development layout %}</a></li> <li{% if page.id == 'development' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate development url %}">{% translate menu-development layout %}</a></li>
{% case page.lang %}{% when 'ar' or 'de' or 'es' or 'fa' or 'fr' or 'it' or 'nl' or 'pl' or 'ru' %}{% else %}<li{% if page.id == 'events' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate events url %}">{% translate menu-events layout %}</a></li>{% endcase %}
{% case page.lang %}{% when 'ar' or 'de' or 'es' or 'fa' or 'fr' or 'it' or 'nl' or 'pl' or 'ru' %}{% else %}<li{% if page.id == 'press' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate press url %}">{% translate menu-press layout %}</a></li>{% endcase %} {% case page.lang %}{% when 'ar' or 'de' or 'es' or 'fa' or 'fr' or 'it' or 'nl' or 'pl' or 'ru' %}{% else %}<li{% if page.id == 'press' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate press url %}">{% translate menu-press layout %}</a></li>{% endcase %}
</ul> </ul>
</li> </li>

View file

@ -1,6 +0,0 @@
---
layout: base
lang: en
---
<h1>{{ page.title }}<br><small>{{ page.date | date:"%e %B %Y" }}</small></h1>
{{ content }}

32
_plugins/events.rb Normal file
View file

@ -0,0 +1,32 @@
require 'yaml'
module Jekyll
class EventPage < Page
def initialize(site, base, srcdir, src, dstdir, dst, date)
@site = site
@base = base
@dir = '/'+dstdir
@name = dst
self.process(dst)
self.read_yaml(File.join(base, srcdir), src)
self.data['date'] = date
self.data['category'] = 'event'
end
end
class EventPageGenerator < Generator
def generate(site)
#generate each event page
Dir.foreach('_events') do |file|
next if file == '.' or file == '..'
date = file.split('-')
next if date.length < 4
date = date[0] + '-' + date[1] + '-' + date[2]
next if !/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.match(date)
site.pages << EventPage.new(site, site.source, '_events', file, 'event', file, date)
end
end
end
end

View file

@ -106,12 +106,6 @@ module Jekyll
sitemap.puts ' <loc>http://bitcoin.org/en/release/'+file.gsub('.md','').gsub('.html','')+'</loc>' sitemap.puts ' <loc>http://bitcoin.org/en/release/'+file.gsub('.md','').gsub('.html','')+'</loc>'
sitemap.puts '</url>' sitemap.puts '</url>'
end end
#Add posts
site.posts.each do |post|
sitemap.puts '<url>'
sitemap.puts ' <loc>http://bitcoin.org'+post.url.gsub('.html','')+'</loc>'
sitemap.puts '</url>'
end
#Close sitemap #Close sitemap
sitemap.puts '</urlset>' sitemap.puts '</urlset>'
end end

View file

@ -1,16 +0,0 @@
---
layout: events
title: European Conference
category: events
---
The Bitcoin European Conference (Nov 25—27) will bring together diverse people
from across the spectrum to discuss the state of bitcoin and plot future
goals. This 3-day conference covers the cutting-edge of developments and
innovation through sessions that encourage interaction and discussion between
professionals across the fields of technology, politics, finance and
economics.
If you are interested in speaking, feel free to [contact the organisers](mailto:conference@bitgroups.org)
as the call for papers is still open. Attendees can register for the conference by following the
instructions on the conference website. Visit <http://conference.bitgroups.org> for more information.

View file

@ -1,12 +0,0 @@
---
layout: events
title: Berlin Hackathon
category: events
---
[Berlin Bitcoin Hackathon](http://bitcoin-hackathon.com/), 13-15 July: hackers will gather in Berlin geekdom for a weekend of intense coding and collaboration. Sunday we party at [room77](http://www.npr.org/2012/06/01/154140277/berlin-restaurant-experiments-with-virtual-currency): the restaurant at the end of capitalism. Participants are coming in from Switzerland, Austria and Finland. The event is free.
Important: this event is for the general public, and not only programmers. We actively welcome people with diverse skills like media or activism. There are many [interesting non-programmer](http://bitcoin-hackathon.com/index.php/Main_Page#Ideas) projects like a street marketing campaign, or graffiti designs for the guerilla artist.
Refreshments and food are sponsored. Best three teams win prizes and free meals. Sponsors and questions to [jeremias.kangas@kangasbros.fi](mailto:jeremias.kangas@kangasbros.fi).

View file

@ -1,16 +0,0 @@
---
layout: events
title: Bitcoin Conference (London)
category: events
---
[Bitcoin Conference](http://bitcoin2012.com/), London Sept 15-16. [Ticket price](https://sites.google.com/a/bitcoin2012.com/homepage/tickets) is €70 (Bitcoin accepted). We have a prestigious venue in central London with max capacity for 700 people.
We want something for all parts of the community by having very in depth talks from experts about Bitcoin in: development, economics, law, finance, social, ethics.
Our [first conference](http://bitgroups.org/) was about planning the future. This conference will be bringing Bitcoin to the mainstream. We will reach out to the general public with primer talks and workshops. We hope for this conference to bring greater opportunities to the community by promoting upcoming talent, and bringing investment to this fledgling economy.
Confirmed speakers include [Richard Stallman](http://en.wikipedia.org/wiki/Richard_stallman), [Max Keiser](http://en.wikipedia.org/wiki/Max_keiser), [Birgitta Jónsdóttir](http://en.wikipedia.org/wiki/Birgitta_J%C3%B3nsd%C3%B3ttir) and others. For the full list of this year's speakers please visit the [speakers list](https://sites.google.com/a/bitcoin2012.com/homepage/speakers).
If you are interested in speaking, feel free to contact [genjix@bitcoin2012.com](mailto:genjix@bitcoin2012.com) as the call for papers is open.

21
_templates/events.html Normal file
View file

@ -0,0 +1,21 @@
---
layout: base
id: events
---
<link rel="alternate" type="application/rss+xml" href="/en/rss/events.rss" title="Bitcoin conferences and events">
<div class="versiontext">
<h1>{% translate pagetitle %}<a type="application/rss+xml" href="/en/rss/events.rss"><img src="/img/icon_rss.svg" alt="rss" class="rssicon"></a></h1>
<p>{% translate pagedesc %}</p>
<ul>
{% filter_for p in site.pages sort_by:date category:event %}
<li>
{{ p.date | date:"%Y-%m-%d" }} - <a href="{{ p.link }}">{{ p.title }}</a> - {{ p.city }}, {{ p.country }}
</li>
{% endfilter_for %}
</ul>
<ul>
<li>{% translate meetupbitcointalk %}</li>
<li>{% translate meetupwiki %}</li>
<li>{% translate meetupgroup %}</li>
</ul>
</div>

View file

@ -159,6 +159,13 @@ en:
versionhistory: "Show version history" versionhistory: "Show version history"
notelicense: "Bitcoin-Qt is a community-driven <a href=\"http://www.fsf.org/about/what-is-free-software\">free open-source</a> project, released under the <a href=\"http://creativecommons.org/licenses/MIT/\">MIT license</a>." notelicense: "Bitcoin-Qt is a community-driven <a href=\"http://www.fsf.org/about/what-is-free-software\">free open-source</a> project, released under the <a href=\"http://creativecommons.org/licenses/MIT/\">MIT license</a>."
notesync: "<b>Note</b> : Bitcoin-Qt initial sync can take a day to complete. You should make sure that you have enough bandwidth and storage for the full <a href=\"http://blockchain.info/charts/blocks-size\">blockchain size</a>." notesync: "<b>Note</b> : Bitcoin-Qt initial sync can take a day to complete. You should make sure that you have enough bandwidth and storage for the full <a href=\"http://blockchain.info/charts/blocks-size\">blockchain size</a>."
events:
title: "Conference and events - Bitcoin"
pagetitle: "Conferences and events"
pagedesc: "Find interesting worldwide events and conferences held by different organizers."
meetupbitcointalk: "<a href=\"https://bitcointalk.org/index.php?board=86.0\">Bitcoin meetups on BitcoinTalk</a>"
meetupwiki: "<a href=\"https://en.bitcoin.it/wiki/Meetups\">Bitcoin meetups on the Wiki</a>"
meetupgroup: "<a href=\"http://bitcoin.meetup.com/\">Bitcoin meetup groups</a>"
foundation: foundation:
title: "Bitcoin Foundation - Bitcoin" title: "Bitcoin Foundation - Bitcoin"
pagetitle: "Bitcoin Foundation" pagetitle: "Bitcoin Foundation"
@ -468,6 +475,7 @@ en:
menu-vocabulary: Vocabulary menu-vocabulary: Vocabulary
menu-community: Community menu-community: Community
menu-development: Development menu-development: Development
menu-events: Events
menu-press: Press menu-press: Press
menu-innovation: Innovation menu-innovation: Innovation
menu-foundation: Foundation menu-foundation: Foundation
@ -487,6 +495,7 @@ en:
community: community community: community
development: development development: development
download: download download: download
events: events
foundation: foundation foundation: foundation
how-it-works: how-it-works how-it-works: how-it-works
innovation: innovation innovation: innovation

21
en/rss/events.rss Normal file
View file

@ -0,0 +1,21 @@
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Bitcoin conferences and events</title>
<link>http://bitcoin.org/en/events</link>
<description>This RSS feed allows to follow Bitcoin events and conferences.</description>
<image>
<url>http://bitcoin.org/img/logo_rss.png</url>
<link>http://bitcoin.org/en/events</link>
</image>
{% filter_for p in site.pages sort_by:date category:event %}
<item>
<title>{{ p.title }}, {{ p.city }} - {{ p.country }}</title>
<link>{{ p.link }}</link>
<pubDate>{{ p.date | date: "%a, %d %b %Y" }}</pubDate>
</item>
{% endfilter_for %}
</channel>
</rss>