Skip to content

Commit a72c249

Browse files
EmlynCkynan
authored andcommitted
Merge in the twister _layouts, fix the PyData logo
1 parent cf8fa87 commit a72c249

File tree

143 files changed

+996
-811
lines changed

Some content is hidden

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

143 files changed

+996
-811
lines changed

.gitignore

+5-18
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
_site/
2-
.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/
1+
# https://git-scm.com/docs/gitignore
2+
# https://help.github.com/articles/ignoring-files
3+
# Example .gitignore files: https://github.com/github/gitignore
4+
/node_modules/
5+
/_site/

404.html

100755100644
File mode changed.

Gemfile

-2
This file was deleted.

Gemfile.lock

-138
This file was deleted.

LICENSE renamed to LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 PyData London
3+
Copyright (c) 2015 DigitalMindCH
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
1-
# pydatalondon.github.io
2-
PyData London website
1+
# Twister
2+
![twister preview](/img/twister_preview_big.jpg)
3+
4+
## Multimedia
5+
If we had to choose one word to describe Twister that would be it. Twister is a theme that focusses on multimedia. It contains different post types to create video posts, audio posts, image post or gallery posts with ease. We created a ton of Variables, that make customization super easy.
6+
7+
This theme is powerful and it comes with a few extras.
8+
9+
## Features
10+
The theme comes with a grunt file, which means that working with it is super easy. We have Tasks that compile, concatenate, minify and even deploy to your site.
11+
12+
### Front Matter Generator
13+
Twister comes with a front matter generator that will make generating the front matter for each post a breeze. So you don't have to remember each and every variable name, the generator will help you with that.
14+
15+
### Extensive Documentation
16+
We don't believe in delivering Code without explanation. So we wrote an extensive Documentation for Twister that goes over every single step from installing all of the dependencies to explaining how to customize, create posts and publish. We even tell you how you can host Twister with Plugins on GitHub pages.
17+
18+
Check the [Docs](http://twister.digitalmind.ch/documentation/) out.
19+
20+
### Feedback, Wishes, Problems
21+
If you run into any trouble or have a request please do so by opening up an issue on the theme's GitHub page.
22+
If you just want to give us a general feedback feel free to [contact us!](http://digitalmind.ch/contact/)

_config.yml

100755100644
File mode changed.

_data/authors.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-
2+
id: someone
3+
name: Some Person
4+
avatar: /profile-pic.jpg
5+
bio: this is some more information about the author.
6+
facebook: https://www.facebook.com/someone
7+
twitter: https://twitter.com/someone
8+
instagram: http://instagram.com/someone
9+
10+
-
11+
id: person
12+
avatar: /profile-pic.jpg
13+
bio: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id, quidem.

_data/galleries.yml

100755100644
File mode changed.

_includes/_site/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>
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="short">
2+
<a href="{{ post.url | prepend: site.baseurl | replace: '//', '/'}}" class="noline">
3+
<span class="shortdate">{{ post.date | date: '%b %d' }}</span> <span class="short_title">{{ post.title }}</span>
4+
</a>
5+
</div>

_includes/_site/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/_site/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/_site/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/_site/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/_site/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/_site/header.html

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

0 commit comments

Comments
 (0)