Skip to content

Commit d04f205

Browse files
author
Bibhas
committed
First
0 parents  commit d04f205

File tree

372 files changed

+20996
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+20996
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_site

Rakefile

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
require "rubygems"
2+
require 'rake'
3+
require 'yaml'
4+
require 'time'
5+
6+
SOURCE = "."
7+
CONFIG = {
8+
'version' => "0.2.13",
9+
'themes' => File.join(SOURCE, "_includes", "themes"),
10+
'layouts' => File.join(SOURCE, "_layouts"),
11+
'posts' => File.join(SOURCE, "_posts"),
12+
'post_ext' => "md",
13+
'theme_package_version' => "0.1.0"
14+
}
15+
16+
# Usage: rake post title="A Title" [date="2012-02-09"]
17+
desc "Begin a new post in #{CONFIG['posts']}"
18+
task :post do
19+
abort("rake aborted: '#{CONFIG['posts']}' directory not found.") unless FileTest.directory?(CONFIG['posts'])
20+
title = ENV["title"] || "new-post"
21+
slug = title.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
22+
begin
23+
date = (ENV['date'] ? Time.parse(ENV['date']) : Time.now).strftime('%Y-%m-%d')
24+
time = (ENV['date'] ? Time.parse(ENV['date']) : Time.now).strftime('%H:%M:%S')
25+
rescue Exception => e
26+
puts "Error - date format must be YYYY-MM-DD, please check you typed it correctly!"
27+
exit -1
28+
end
29+
filename = File.join(CONFIG['posts'], "#{date}-#{slug}.#{CONFIG['post_ext']}")
30+
if File.exist?(filename)
31+
abort("rake aborted!") if ask("#{filename} already exists. Do you want to overwrite?", ['y', 'n']) == 'n'
32+
end
33+
34+
puts "Creating new post: #{filename}"
35+
open(filename, 'w') do |post|
36+
post.puts "---"
37+
post.puts "layout: post"
38+
post.puts "title: \"#{title.gsub(/-/,' ')}\""
39+
post.puts "date: #{date} #{time}"
40+
post.puts 'description: ""'
41+
post.puts "categories: "
42+
post.puts "tags: []"
43+
post.puts "permalink: /blog/#{slug}/"
44+
post.puts "---"
45+
post.puts "Body here"
46+
end
47+
end # task :post
48+
49+
# Internal: Process theme package manifest file.
50+
#
51+
# theme_path - String, Required. File path to theme package.
52+
#
53+
# Returns theme manifest hash
54+
def verify_manifest(theme_path)
55+
manifest_path = File.join(theme_path, "manifest.yml")
56+
manifest_file = File.open( manifest_path )
57+
abort("rake aborted: repo must contain valid manifest.yml") unless File.exist? manifest_file
58+
manifest = YAML.load( manifest_file )
59+
manifest_file.close
60+
manifest
61+
end
62+
63+
def ask(message, valid_options)
64+
if valid_options
65+
answer = get_stdin("#{message} #{valid_options.to_s.gsub(/"/, '').gsub(/, /,'/')} ") while !valid_options.include?(answer)
66+
else
67+
answer = get_stdin(message)
68+
end
69+
answer
70+
end
71+
72+
def get_stdin(message)
73+
print message
74+
STDIN.gets.chomp
75+
end
76+
77+
#Load custom rake scripts
78+
Dir['_rake/*.rake'].each { |r| load r }

_config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: PyCon India 2014
2+
static_path: "/static"
3+
markdown: redcarpet
4+
pygments: true
5+
exclude: [Rakefile]

_layouts/default.html

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<!-- META -->
5+
<title>{{ page.title }} | PyCon India 2014 in Bangalore | September 26th to 28th</title>
6+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0"/>
8+
<meta name="description" content="" />
9+
<link rel="stylesheet" type="text/css" href="{{ site.static_path }}/css/style.css" media="all" />
10+
<link href="{{ site.static_path }}/leaflet/leaflet.css" rel="stylesheet">
11+
12+
<script type="text/javascript" src="{{ site.static_path }}/js/jquery-1.9.1.min.js"></script>
13+
<script type="text/javascript" src="{{ site.static_path }}/js/energize.min.js"></script>
14+
<!-- <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyASm3CwaK9qtcZEWYa-iQwHaGi3gcosAJc&sensor=false"></script> -->
15+
<script src="{{ site.static_path }}/leaflet/leaflet.js"></script>
16+
<script type="text/javascript" src="{{ site.static_path }}/js/main.js"></script>
17+
18+
<!--[if lt IE 9]>
19+
<script src="{{ site.static_path }}/js/html5shiv.js"></script>
20+
<![endif]-->
21+
</head>
22+
<body>
23+
{{ content }}
24+
<footer class="main-footer">
25+
<div class="bg-trianlge"></div>
26+
<div class="footer-container">
27+
Copyright &copy; 2013 Python Software Society of India.<br/>
28+
Designed by <a href="http://uncommon.is/" class="logo_uncommon">Uncommon</a>
29+
</div>
30+
</footer>
31+
32+
</body>
33+
</html>

_layouts/homepage.html

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
layout: default
3+
---
4+
<header class="main-header-home">
5+
<div class="bg-trianlge"></div>
6+
<div class="container">
7+
<h1 class="logo">PyCon India 2014, Bangalore</h1>
8+
<div class="desc">
9+
PyCon India, the premier conference in India on using and developing the Python programming language is conducted annually by the Python developer community. It attracts the best Python programmers from across the country and abroad.
10+
</div>
11+
<div class="events-info">
12+
<div class="event-item">
13+
<div class="name">Workshops</div>
14+
<div class="date">26 September</div>
15+
<div class="border-line orange"></div>
16+
</div>
17+
<div class="event-item">
18+
<div class="name">Conference</div>
19+
<div class="date">27 - 28 September</div>
20+
<div class="border-line orange"></div>
21+
</div>
22+
<div class="clr"></div>
23+
</div>
24+
<!-- <a href="" class="btn-boxy buy-tickets">Buy Tickets</a> -->
25+
<div class="clr"></div>
26+
</div>
27+
</header>
28+
29+
<header class="main-header home">
30+
<div class="container">
31+
<a href="index.html" class="logo"><h1>PyCon India 2014, Bangalore</h1></a>
32+
<a class="mobile_icon"></a>
33+
<!-- <a href="" class="btn-boxy buy-tickets">Buy Tickets</a> -->
34+
<nav class="top-navigation" role="navigation">
35+
<ul>
36+
<!-- <li class="speakers">
37+
<a href="#section_speakers">Speakers</a>
38+
<div class="border-line short"></div>
39+
</li> -->
40+
<li class="schedule">
41+
<a href="#section_schedule">Schedule</a>
42+
<div class="border-line short"></div>
43+
</li>
44+
<li class="venue">
45+
<a href="#section_venue">Venue</a>
46+
<div class="border-line short"></div>
47+
</li>
48+
<!-- <li class="sponsors">
49+
<a href="#section_sponsors">Sponsors</a>
50+
<div class="border-line short"></div>
51+
</li> -->
52+
<li class="blog">
53+
<a href="#section_updates">Blog</a>
54+
<div class="border-line short"></div>
55+
</li>
56+
</ul>
57+
</nav>
58+
<div class="clr"></div>
59+
</div>
60+
</header>
61+
62+
<div class="home-sticky-nav">
63+
<div class="container">
64+
<nav class="top-navigation">
65+
<ul>
66+
<!-- <li class="speakers">
67+
<a href="#section_speakers">Speakers</a>
68+
</li> -->
69+
<li class="schedule">
70+
<a href="#section_schedule">Schedule</a>
71+
</li>
72+
<li class="venue">
73+
<a href="#section_venue">Venue</a>
74+
</li>
75+
<!-- <li class="sponsors">
76+
<a href="#section_sponsors">Sponsors</a>
77+
</li> -->
78+
<li class="blog">
79+
<a href="#section_updates">Blog</a>
80+
</li>
81+
</ul>
82+
</nav>
83+
</div>
84+
</div>
85+
86+
<nav class="top-navigation-mobile">
87+
<ul>
88+
<!-- <li class="speakers active">
89+
<a href="speakers.html">Speakers</a>
90+
</li> -->
91+
<li class="schedule">
92+
<a href="schedule.html">Schedule</a>
93+
</li>
94+
<li class="venue">
95+
<a href="venue.html">Venue</a>
96+
</li>
97+
<!-- <li class="sponsors">
98+
<a href="sponsors.html">Sponsors</a>
99+
</li> -->
100+
<li class="blog">
101+
<a href="blog.html">Blog</a>
102+
</li>
103+
</ul>
104+
</nav>
105+
106+
{{ content }}

_layouts/page.html

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
layout: default
3+
---
4+
5+
<header class="main-header">
6+
<div class="container">
7+
<a href="/" class="logo"><h1>PyCon India 2014, Bangalore</h1></a>
8+
<a class="mobile_icon"></a>
9+
<!-- <a href="" class="btn-boxy buy-tickets">Buy Tickets</a> -->
10+
<nav class="top-navigation" role="navigation">
11+
<ul>
12+
<!-- <li class="speakers">
13+
<a href="#section_speakers">Speakers</a>
14+
<div class="border-line short"></div>
15+
</li> -->
16+
<li class="schedule">
17+
<a href="/schedule.html">Schedule</a>
18+
<div class="border-line short"></div>
19+
</li>
20+
<li class="venue">
21+
<a href="/venue.html">Venue</a>
22+
<div class="border-line short"></div>
23+
</li>
24+
<!-- <li class="sponsors">
25+
<a href="#section_sponsors">Sponsors</a>
26+
<div class="border-line short"></div>
27+
</li> -->
28+
<li class="blog">
29+
<a href="/blog/">Blog</a>
30+
<div class="border-line short"></div>
31+
</li>
32+
</ul>
33+
</nav>
34+
<div class="clr"></div>
35+
</div>
36+
</header>
37+
<div class="header-fill-space"></div>
38+
39+
<nav class="top-navigation-mobile">
40+
<ul>
41+
<!-- <li class="speakers active">
42+
<a href="speakers.html">Speakers</a>
43+
</li> -->
44+
<li class="schedule">
45+
<a href="schedule.html">Schedule</a>
46+
</li>
47+
<li class="venue">
48+
<a href="venue.html">Venue</a>
49+
</li>
50+
<!-- <li class="sponsors">
51+
<a href="sponsors.html">Sponsors</a>
52+
</li> -->
53+
<li class="blog">
54+
<a href="blog.html">Blog</a>
55+
</li>
56+
</ul>
57+
</nav>
58+
59+
{{ content }}

_layouts/post.html

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
layout: page
3+
---
4+
5+
<section class="page-heading blog">
6+
<div class="container">
7+
<a href="/blog/"><h1>Blog</h1></a>
8+
</div>
9+
</section>
10+
11+
<section class="page-blog">
12+
<div class="container">
13+
<div class="column-left">
14+
<article class="post">
15+
<h2><a href="{{ page.url }}"> {{ page.title }}</a></h2>
16+
<div class="published">
17+
Published / {{ page.date | date_to_string }}
18+
</div>
19+
<div class="border-line blue"></div>
20+
<div class="text">
21+
{{ content }}
22+
</div>
23+
<!-- <a href="" class="comments">25 Comments</a> -->
24+
</article>
25+
</div>
26+
<div class="column-right">
27+
<h2>Recent Posts</h2>
28+
<div class="border-line blue"></div>
29+
<ul>
30+
{% for post in site.posts %}
31+
<li>
32+
<a href="{{ post.url }}">{{ post.title }}</a>
33+
<div class="published">
34+
Published / {{ post.date | date_to_string }}
35+
</div>
36+
</li>
37+
{% endfor %}
38+
</ul>
39+
</div>
40+
<div class="clr"></div>
41+
</div>
42+
</section>

_posts/2014-02-28-hello-world.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: post
3+
title: "Hello World"
4+
date: 2014-02-28 03:23:04
5+
description: ""
6+
categories:
7+
tags: []
8+
permalink: /blog/hello-world/
9+
---
10+
This is the first blog post. We're still cofiguring things. But for now, this would suffice.
11+
12+
{% highlight python %}
13+
>>> print 'Hello World'
14+
{% endhighlight %}
15+
16+
New blog posts coming soon.

0 commit comments

Comments
 (0)