Skip to content

Commit bdbbbed

Browse files
cecilialiaokynan
authored andcommitted
Merge pull request #1 from cecilialiao/cecilia
First iteration of website
2 parents db8b9d3 + ec55262 commit bdbbbed

File tree

121 files changed

+10106
-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.

121 files changed

+10106
-0
lines changed

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
11
_site/
22
.sass-cache/
3+
4+
_data/authors.yml
5+
6+
_includes/article_index_short.html
7+
8+
_includes/full.html
9+
10+
_layouts/author_index.html
11+
12+
_layouts/category_index.html
13+
14+
_layouts/index_alt.html
15+
16+
_layouts/tag_index.html
17+
18+
_site/

404.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
layout: index
3+
title: Ooops!
4+
---
5+
<div class="error">
6+
<p>Something seems to have gone wrong here. Sorry 'bout that</p>
7+
<p>Maybe we can make up for it with some posts and then be friends again?</p>
8+
</div>
9+
10+
{% for post in site.posts limit:4 %}
11+
{% include article_index.html %}
12+
{% endfor %}

_config.yml

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
name: PyData London
2+
description: Official website for PyData London Meetups and Coneference
3+
url: http://pydatalondon.github.io
4+
baseurl: #place folder name if site is served in subfolder
5+
permalink: /:title/
6+
paginate: 8
7+
paginate_path: /page/:num/
8+
tag_dir: /tag
9+
category_dir: /category
10+
author_dir: /author
11+
author_title_prefix: 'Posted by '
12+
media_folder: /img
13+
author_default_avatar: /profile-pic.jpg
14+
twitter: "https://twitter.com/pydatalondon"
15+
youtube: "https://www.youtube.com/user/PyDataTV"
16+
vimeo: "https://vimeo.com/pydata"
17+
18+
encoding: utf-8
19+
defaults:
20+
-
21+
scope:
22+
path: ""
23+
type: "posts"
24+
values:
25+
layout: "post"
26+
type: "standard"
27+
homedisplay: "featimg"
28+
markdown: kramdown
29+
kramdown:
30+
input: GFM
31+
syntax_highlighter: rouge
32+
relative_permalinks: false
33+
exclude: [.git, .gitignore, sass, .sass-cache, package.json, gruntfile.js, node_modules, README.md, documentation]
34+
35+
# prose.io configurations
36+
prose:
37+
media: "img"
38+
metadata:
39+
_posts:
40+
- name: "title"
41+
field:
42+
element: "text"
43+
label: "title"
44+
- name: "layout"
45+
field:
46+
element: "select"
47+
label: "Layout"
48+
help: "display post at full width or with sidebar"
49+
options:
50+
- name: "with sidebar"
51+
value: "post"
52+
- name: "full width"
53+
value: "post_full"
54+
- name: "author"
55+
field:
56+
element: "text"
57+
label: "Author"
58+
help: "author id as defined within _data/authors.yml"
59+
type: "text"
60+
- name: "featimg"
61+
field:
62+
element: "text"
63+
label: "Featured Image"
64+
help: "featured image within the img-folder"
65+
type: "text"
66+
- name: "type"
67+
field:
68+
element: "select"
69+
label: "Post Type"
70+
help: "each type has some special feature"
71+
options:
72+
- name: "Standard"
73+
value: "standard"
74+
- name: "Image"
75+
value: "image"
76+
- name: "Gallery"
77+
value: "gallery"
78+
- name: "Audio"
79+
value: "audio"
80+
- name: "YouTube"
81+
value: "youtube"
82+
- name: "Vimeo"
83+
value: "vimeo"
84+
- name: "homedisplay"
85+
field:
86+
element: "select"
87+
label: "Home Display"
88+
help: "decide whether to display embedded element (for post types: audio, youtube, vimeo) or Featured Image on home page"
89+
options:
90+
- name: "Featured Image"
91+
value: "featimg"
92+
- name: "Embedded Element"
93+
value: "iframe"
94+
- name: "vimeo-embed"
95+
field:
96+
element: "text"
97+
label: "Vimeo Embedding Code"
98+
help: "Set post type to vimeo in order for this to work"
99+
- name: "gallery-id"
100+
field:
101+
element: "text"
102+
label: "Gallery ID"
103+
help: "ID of the gallery defined within _data/galleries.yml - use include in content to use"
104+
- name: "audio-embed"
105+
field:
106+
element: "text"
107+
label: "Audio Embedding Code"
108+
help: "Set post type to audio in order for this to work"
109+
- name: "yt-video-id"
110+
field:
111+
element: "text"
112+
label: "YouTube Video ID"
113+
help: "Set post type to youtube in order for this to work. Do not set featured image, as the youtube video thumbnail will be used"
114+
type: "text"
115+

_data/galleries.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
- id: gallery
2+
imagefolder: /img/galleries/gallery-standard-post
3+
images:
4+
- filename: 1.jpg
5+
alttext: Bloom Flat
6+
- filename: 2.jpg
7+
alttext: Bloom
8+
- filename: 3.jpg
9+
alttext: Blossom in a Star
10+
- filename: 4.jpg
11+
alttext: Blossom
12+
- filename: 5.jpg
13+
alttext: Bubbly Bloom
14+
- filename: 6.jpg
15+
alttext: Rays of Gold
16+
- filename: 7.jpg
17+
alttext: Exotic
18+
- filename: 8.jpg
19+
alttext: Filled out

_includes/article_index.html

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<article>
2+
{% if post.homedisplay == "iframe" %}
3+
{% if post.type == "vimeo" %}
4+
{% if post.vimeo-embed %}
5+
<div class="video_container">
6+
{{ post.vimeo-embed }}
7+
</div>
8+
{% endif %}
9+
{% elsif post.type == "youtube" %}
10+
{% if post.yt-video-id %}
11+
<div class="video_container">
12+
<iframe src="https://www.youtube.com/embed/{{ post.yt-video-id }}?feature=player_detailpage" frameborder="0" allowfullscreen></iframe>
13+
</div>
14+
{% endif %}
15+
{% elsif post.type == "audio" %}
16+
{% if post.audio-embed %}
17+
{{ post.audio-embed }}
18+
{% endif %}
19+
{% else %}
20+
{% if post.featimg %}
21+
<a href="{{ post.url | prepend: site.baseurl | replace: '//', '/'}}" class="noline">
22+
<img src="{{ site.media_folder | prepend: site.baseurl | replace: '//', '/'}}/{{ post.featimg }}" alt="{{ post.featimg }}">
23+
</a>
24+
{% endif %}
25+
{% endif %}
26+
{% else %}
27+
{% if post.type == "youtube" %}
28+
{% if post.yt-video-id %}
29+
<a href="{{ post.url | prepend: site.baseurl | replace: '//', '/'}}" class="noline">
30+
<img src="http://img.youtube.com/vi/{{ post.yt-video-id }}/0.jpg" alt="{{ post.title }} thumbnail">
31+
</a>
32+
{% endif %}
33+
{% else %}
34+
{% if post.featimg %}
35+
<a href="{{ post.url | prepend: site.baseurl | replace: '//', '/'}}" class="noline">
36+
<img src="{{ site.media_folder | prepend: site.baseurl | replace: '//', '/'}}/{{ post.featimg }}" alt="{{ post.featimg }}">
37+
</a>
38+
{% endif %}
39+
{% endif %}
40+
{% endif %}
41+
{% if post.category %}
42+
<span class="category">
43+
{{ post.category }}
44+
</span>
45+
{% endif %}
46+
<a href="{{ post.url | prepend: site.baseurl | replace: '//', '/'}}">
47+
<h1>{{ post.title }}</h1>
48+
</a>
49+
<p class="post_content">{{ post.content | strip_html | truncatewords: 15 }}</p>
50+
<span class="date"><i class="fa fa-calendar"></i> {{ post.date | date: '%B %d, %Y' }}</span>
51+
</article>

_includes/author.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% if post.author %}
2+
{% assign author = post.author %}
3+
{% elsif page.author %}
4+
{% assign author = page.author %}
5+
{% else %}
6+
{% assign author = site.author %}
7+
{% endif %}
8+
{% if author %}
9+
<span class="author">Posted by
10+
{% assign the_author = site.data.authors | where: 'id', author %}
11+
{% for author in the_author %}
12+
<a href="{{ site.author_dir | prepend: site.baseurl | replace: '//', '/' }}/{{ author.id }}">
13+
{% if author.name %}
14+
{{ author.name }}
15+
{% else %}
16+
{{ author.id }}
17+
{% endif %}
18+
</a>
19+
{% endfor %}
20+
</span>
21+
{% endif %}

_includes/footer.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<footer>
2+
<div class="content">
3+
<span>&copy; twister</span>
4+
<span class="backtotop">back to top</span>
5+
</div>
6+
</footer>

_includes/gallery.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div class="gallery">
2+
{% for gallery in site.data.galleries %}
3+
{% if gallery.id == page.gallery-id %}
4+
{% for image in gallery.images %}
5+
<b>{{ image.alttext }}</b>
6+
<img src="{{ gallery.imagefolder | prepend: site.baseurl | replace: '//', '/' }}/{{ image.filename }}" alt="{{ image.alttext }}">
7+
{% endfor %}
8+
{% endif %}
9+
{% endfor %}
10+
</div>

_includes/gallery_lightbox.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="masonry">
2+
{% for gallery in site.data.galleries %}
3+
{% if gallery.id == page.gallery-id %}
4+
{% for image in gallery.images %}
5+
<a href="{{ gallery.imagefolder | prepend: site.baseurl | replace: '//', '/' }}/{{ image.filename }}" data-imagelightbox="f" class="noline">
6+
<img src="{{ gallery.imagefolder | prepend: site.baseurl | replace: '//', '/' }}/{{ image.filename }}" alt="{{ image.alttext }}">
7+
</a>
8+
{% endfor %}
9+
{% endif %}
10+
{% endfor %}
11+
</div>

_includes/head.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<meta charset="UTF-8">
2+
<title>{{ site.name }}{% if page.title %} - {{ page.title }} {% endif%}</title>
3+
{% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %}
4+
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'/>
5+
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:500,600' rel='stylesheet' type='text/css'>
6+
<link rel="stylesheet" href="{{ site.baseurl | replace: '//', '/' }}/css/main.css">
7+
<link rel="stylesheet" id="switch_style" href="{{ site.baseurl | replace: '//', '/' }}/css/grid.css">
8+
<link rel="alternate" type="application/rss+xml" title="{{ site.name }}" href="{{ site.baseurl | prepend: site.url | replace: '//', '/' }}/feed.xml">

_includes/header.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div class="row">
2+
<a href="{{ site.baseurl | replace: '//', '/' }}/" class="logo noline">
3+
{% include full.html %}
4+
{% include logo.html %}
5+
{% include icon.html %}
6+
</a>
7+
</div>

_includes/icon.html

Whitespace-only changes.

_includes/logo.html

Whitespace-only changes.

_includes/monthly_archive.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<ul class="archive">
2+
{% for post in site.posts %}
3+
{% unless post.next %}
4+
<h3>{{ post.date | date: '%B' }}</h3>
5+
{% else %}
6+
{% capture month %}{{ post.date | date: '%B' }}{% endcapture %}
7+
{% capture nmonth %}{{ post.next.date | date: '%B' }}{% endcapture %}
8+
{% if month != nmonth %}
9+
<h3>{{ post.date | date: '%B' }}</h3>
10+
{% endif %}
11+
{% endunless %}
12+
<li><span class="date">{{ post.date | date:"%d." }}</span> <a href="{{ post.url | prepend: site.baseurl | replace: '//', '/'}}">{{ post.title }}</a></li>
13+
{% endfor %}
14+
</ul>

_includes/nav.html

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<section class="main_menu">
2+
<div class="content">
3+
<nav id="menu">
4+
<a class="toggle_link noline"><i class="fa fa-close fa-lg"></i></a>
5+
<ul>
6+
<li>
7+
<a href="{{ site.baseurl | replace: '//', '/' }}/">Home</a>
8+
</li>
9+
<li>
10+
<a href="{{ site.baseurl | replace: '//', '/' }}/past-events">Past Events</a>
11+
</li>
12+
<li>
13+
<a href="{{ site.baseurl | replace: '//', '/' }}/submit-a-talk">Submit a Talk</a>
14+
</li>
15+
<li>
16+
<a href="{{ site.baseurl | replace: '//', '/' }}/contact-us">Contact Us</a>
17+
</li>
18+
</ul>
19+
</nav>
20+
<nav class="iconnav">
21+
<ul>
22+
23+
{% if site.tumblr %}
24+
<li class="social">
25+
<a href="{{ site.tumblr }}" class="tumblr"><i class="fa fa-tumblr"></i></a>
26+
</li>
27+
{% endif %}
28+
{% if site.pinterest %}
29+
<li class="social">
30+
<a href="{{ site.pinterest }}" class="pinterest"><i class="fa fa-pinterest"></i></a>
31+
</li>
32+
{% endif %}
33+
34+
{% if site.instagram %}
35+
<li class="social">
36+
<a href="{{ site.instagram }}" class="instagram"><i class="fa fa-instagram"></i></a>
37+
</li>
38+
{% endif %}
39+
40+
{% if site.twitter %}
41+
<li class="social">
42+
<a href="{{ site.twitter }}" class="twitter"><i class="fa fa-twitter"></i></a>
43+
</li>
44+
{% endif %}
45+
46+
{% if site.facebook %}
47+
<li class="social">
48+
<a href="{{ site.facebook }}" class="facebook"><i class="fa fa-facebook"></i></a>
49+
</li>
50+
{% endif %}
51+
52+
{% if site.youtube %}
53+
<li class="social">
54+
<a href="{{ site.youtube }}" class="youtube"><i class="fa fa-youtube"></i></a>
55+
</li>
56+
{% endif %}
57+
58+
{% if site.vimeo %}
59+
<li class="social">
60+
<a href="{{ site.vimeo }}" class="vimeo"><i class="fa fa-vimeo-square"></i></a>
61+
</li>
62+
{% endif %}
63+
64+
{% if site.soundcloud %}
65+
<li class="social">
66+
<a href="{{ site.soundcloud }}" class="soundcloud"><i class="fa fa-soundcloud"></i></a>
67+
</li>
68+
{% endif %}
69+
</ul>
70+
</nav>
71+
<a href='#menu' class="toggle_link noline">
72+
<i class="fa fa-navicon"></i>
73+
</a>
74+
</div>
75+
</section>

_includes/search.html

Whitespace-only changes.

0 commit comments

Comments
 (0)