-{{ content }}
diff --git a/_plugins/events.rb b/_plugins/events.rb
new file mode 100644
index 00000000..53ffc0d3
--- /dev/null
+++ b/_plugins/events.rb
@@ -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
diff --git a/_plugins/sitemap.rb b/_plugins/sitemap.rb
index 8d7b80c9..edc8b3e7 100644
--- a/_plugins/sitemap.rb
+++ b/_plugins/sitemap.rb
@@ -106,12 +106,6 @@ module Jekyll
sitemap.puts ' http://bitcoin.org/en/release/'+file.gsub('.md','').gsub('.html','')+''
sitemap.puts ''
end
- #Add posts
- site.posts.each do |post|
- sitemap.puts ''
- sitemap.puts ' http://bitcoin.org'+post.url.gsub('.html','')+''
- sitemap.puts ''
- end
#Close sitemap
sitemap.puts ''
end
diff --git a/_posts/events/2011-10-24-prague.md b/_posts/events/2011-10-24-prague.md
deleted file mode 100644
index 16938d40..00000000
--- a/_posts/events/2011-10-24-prague.md
+++ /dev/null
@@ -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 for more information.
diff --git a/_posts/events/2012-06-27-berlin.md b/_posts/events/2012-06-27-berlin.md
deleted file mode 100644
index d76fc241..00000000
--- a/_posts/events/2012-06-27-berlin.md
+++ /dev/null
@@ -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).
-
diff --git a/_posts/events/2012-07-16-london.md b/_posts/events/2012-07-16-london.md
deleted file mode 100644
index fb3eb42f..00000000
--- a/_posts/events/2012-07-16-london.md
+++ /dev/null
@@ -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.
-
diff --git a/_templates/events.html b/_templates/events.html
new file mode 100644
index 00000000..50be7e35
--- /dev/null
+++ b/_templates/events.html
@@ -0,0 +1,21 @@
+---
+layout: base
+id: events
+---
+
+
+
{% translate pagetitle %}
+
{% translate pagedesc %}
+
+ {% filter_for p in site.pages sort_by:date category:event %}
+