Skip to content

Commit 91135c9

Browse files
Merge branch 'master' of github.com:python-sprints/python-sprints.github.io
2 parents 2a56d39 + c09ba22 commit 91135c9

File tree

66 files changed

+1079
-317
lines changed

Some content is hidden

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

66 files changed

+1079
-317
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,5 @@ venv.bak/
108108
# mypy
109109
.mypy_cache/
110110
.idea/
111-
pandas/bower_components/
111+
_site/
112+
/.jekyll-metadata

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source 'https://rubygems.org'
2+
gem 'github-pages', group: :jekyll_plugins

Gemfile.lock

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (4.2.9)
5+
i18n (~> 0.7)
6+
minitest (~> 5.1)
7+
thread_safe (~> 0.3, >= 0.3.4)
8+
tzinfo (~> 1.1)
9+
addressable (2.5.2)
10+
public_suffix (>= 2.0.2, < 4.0)
11+
coffee-script (2.4.1)
12+
coffee-script-source
13+
execjs
14+
coffee-script-source (1.11.1)
15+
colorator (1.1.0)
16+
commonmarker (0.17.7.1)
17+
ruby-enum (~> 0.5)
18+
concurrent-ruby (1.0.5)
19+
ethon (0.11.0)
20+
ffi (>= 1.3.0)
21+
execjs (2.7.0)
22+
faraday (0.14.0)
23+
multipart-post (>= 1.2, < 3)
24+
ffi (1.9.21)
25+
forwardable-extended (2.6.0)
26+
gemoji (3.0.0)
27+
github-pages (176)
28+
activesupport (= 4.2.9)
29+
github-pages-health-check (= 1.3.5)
30+
jekyll (= 3.6.2)
31+
jekyll-avatar (= 0.5.0)
32+
jekyll-coffeescript (= 1.0.2)
33+
jekyll-commonmark-ghpages (= 0.1.4)
34+
jekyll-default-layout (= 0.1.4)
35+
jekyll-feed (= 0.9.2)
36+
jekyll-gist (= 1.4.1)
37+
jekyll-github-metadata (= 2.9.3)
38+
jekyll-mentions (= 1.2.0)
39+
jekyll-optional-front-matter (= 0.3.0)
40+
jekyll-paginate (= 1.1.0)
41+
jekyll-readme-index (= 0.2.0)
42+
jekyll-redirect-from (= 0.12.1)
43+
jekyll-relative-links (= 0.5.2)
44+
jekyll-remote-theme (= 0.2.3)
45+
jekyll-sass-converter (= 1.5.0)
46+
jekyll-seo-tag (= 2.3.0)
47+
jekyll-sitemap (= 1.1.1)
48+
jekyll-swiss (= 0.4.0)
49+
jekyll-theme-architect (= 0.1.0)
50+
jekyll-theme-cayman (= 0.1.0)
51+
jekyll-theme-dinky (= 0.1.0)
52+
jekyll-theme-hacker (= 0.1.0)
53+
jekyll-theme-leap-day (= 0.1.0)
54+
jekyll-theme-merlot (= 0.1.0)
55+
jekyll-theme-midnight (= 0.1.0)
56+
jekyll-theme-minimal (= 0.1.0)
57+
jekyll-theme-modernist (= 0.1.0)
58+
jekyll-theme-primer (= 0.5.2)
59+
jekyll-theme-slate (= 0.1.0)
60+
jekyll-theme-tactile (= 0.1.0)
61+
jekyll-theme-time-machine (= 0.1.0)
62+
jekyll-titles-from-headings (= 0.5.0)
63+
jemoji (= 0.8.1)
64+
kramdown (= 1.16.2)
65+
liquid (= 4.0.0)
66+
listen (= 3.0.6)
67+
mercenary (~> 0.3)
68+
minima (= 2.1.1)
69+
nokogiri (>= 1.8.1, < 2.0)
70+
rouge (= 2.2.1)
71+
terminal-table (~> 1.4)
72+
github-pages-health-check (1.3.5)
73+
addressable (~> 2.3)
74+
net-dns (~> 0.8)
75+
octokit (~> 4.0)
76+
public_suffix (~> 2.0)
77+
typhoeus (~> 0.7)
78+
html-pipeline (2.7.1)
79+
activesupport (>= 2)
80+
nokogiri (>= 1.4)
81+
i18n (0.9.4)
82+
concurrent-ruby (~> 1.0)
83+
jekyll (3.6.2)
84+
addressable (~> 2.4)
85+
colorator (~> 1.0)
86+
jekyll-sass-converter (~> 1.0)
87+
jekyll-watch (~> 1.1)
88+
kramdown (~> 1.14)
89+
liquid (~> 4.0)
90+
mercenary (~> 0.3.3)
91+
pathutil (~> 0.9)
92+
rouge (>= 1.7, < 3)
93+
safe_yaml (~> 1.0)
94+
jekyll-avatar (0.5.0)
95+
jekyll (~> 3.0)
96+
jekyll-coffeescript (1.0.2)
97+
coffee-script (~> 2.2)
98+
coffee-script-source (~> 1.11.1)
99+
jekyll-commonmark (1.1.0)
100+
commonmarker (~> 0.14)
101+
jekyll (>= 3.0, < 4.0)
102+
jekyll-commonmark-ghpages (0.1.4)
103+
commonmarker (~> 0.17.6)
104+
jekyll-commonmark (~> 1)
105+
rouge (~> 2)
106+
jekyll-default-layout (0.1.4)
107+
jekyll (~> 3.0)
108+
jekyll-feed (0.9.2)
109+
jekyll (~> 3.3)
110+
jekyll-gist (1.4.1)
111+
octokit (~> 4.2)
112+
jekyll-github-metadata (2.9.3)
113+
jekyll (~> 3.1)
114+
octokit (~> 4.0, != 4.4.0)
115+
jekyll-mentions (1.2.0)
116+
activesupport (~> 4.0)
117+
html-pipeline (~> 2.3)
118+
jekyll (~> 3.0)
119+
jekyll-optional-front-matter (0.3.0)
120+
jekyll (~> 3.0)
121+
jekyll-paginate (1.1.0)
122+
jekyll-readme-index (0.2.0)
123+
jekyll (~> 3.0)
124+
jekyll-redirect-from (0.12.1)
125+
jekyll (~> 3.3)
126+
jekyll-relative-links (0.5.2)
127+
jekyll (~> 3.3)
128+
jekyll-remote-theme (0.2.3)
129+
jekyll (~> 3.5)
130+
rubyzip (>= 1.2.1, < 3.0)
131+
typhoeus (>= 0.7, < 2.0)
132+
jekyll-sass-converter (1.5.0)
133+
sass (~> 3.4)
134+
jekyll-seo-tag (2.3.0)
135+
jekyll (~> 3.3)
136+
jekyll-sitemap (1.1.1)
137+
jekyll (~> 3.3)
138+
jekyll-swiss (0.4.0)
139+
jekyll-theme-architect (0.1.0)
140+
jekyll (~> 3.5)
141+
jekyll-seo-tag (~> 2.0)
142+
jekyll-theme-cayman (0.1.0)
143+
jekyll (~> 3.5)
144+
jekyll-seo-tag (~> 2.0)
145+
jekyll-theme-dinky (0.1.0)
146+
jekyll (~> 3.5)
147+
jekyll-seo-tag (~> 2.0)
148+
jekyll-theme-hacker (0.1.0)
149+
jekyll (~> 3.5)
150+
jekyll-seo-tag (~> 2.0)
151+
jekyll-theme-leap-day (0.1.0)
152+
jekyll (~> 3.5)
153+
jekyll-seo-tag (~> 2.0)
154+
jekyll-theme-merlot (0.1.0)
155+
jekyll (~> 3.5)
156+
jekyll-seo-tag (~> 2.0)
157+
jekyll-theme-midnight (0.1.0)
158+
jekyll (~> 3.5)
159+
jekyll-seo-tag (~> 2.0)
160+
jekyll-theme-minimal (0.1.0)
161+
jekyll (~> 3.5)
162+
jekyll-seo-tag (~> 2.0)
163+
jekyll-theme-modernist (0.1.0)
164+
jekyll (~> 3.5)
165+
jekyll-seo-tag (~> 2.0)
166+
jekyll-theme-primer (0.5.2)
167+
jekyll (~> 3.5)
168+
jekyll-github-metadata (~> 2.9)
169+
jekyll-seo-tag (~> 2.2)
170+
jekyll-theme-slate (0.1.0)
171+
jekyll (~> 3.5)
172+
jekyll-seo-tag (~> 2.0)
173+
jekyll-theme-tactile (0.1.0)
174+
jekyll (~> 3.5)
175+
jekyll-seo-tag (~> 2.0)
176+
jekyll-theme-time-machine (0.1.0)
177+
jekyll (~> 3.5)
178+
jekyll-seo-tag (~> 2.0)
179+
jekyll-titles-from-headings (0.5.0)
180+
jekyll (~> 3.3)
181+
jekyll-watch (1.5.1)
182+
listen (~> 3.0)
183+
jemoji (0.8.1)
184+
activesupport (~> 4.0, >= 4.2.9)
185+
gemoji (~> 3.0)
186+
html-pipeline (~> 2.2)
187+
jekyll (>= 3.0)
188+
kramdown (1.16.2)
189+
liquid (4.0.0)
190+
listen (3.0.6)
191+
rb-fsevent (>= 0.9.3)
192+
rb-inotify (>= 0.9.7)
193+
mercenary (0.3.6)
194+
mini_portile2 (2.3.0)
195+
minima (2.1.1)
196+
jekyll (~> 3.3)
197+
minitest (5.11.3)
198+
multipart-post (2.0.0)
199+
net-dns (0.8.0)
200+
nokogiri (1.8.2)
201+
mini_portile2 (~> 2.3.0)
202+
octokit (4.8.0)
203+
sawyer (~> 0.8.0, >= 0.5.3)
204+
pathutil (0.16.1)
205+
forwardable-extended (~> 2.6)
206+
public_suffix (2.0.5)
207+
rb-fsevent (0.10.2)
208+
rb-inotify (0.9.10)
209+
ffi (>= 0.5.0, < 2)
210+
rouge (2.2.1)
211+
ruby-enum (0.7.1)
212+
i18n
213+
rubyzip (1.2.1)
214+
safe_yaml (1.0.4)
215+
sass (3.5.5)
216+
sass-listen (~> 4.0.0)
217+
sass-listen (4.0.0)
218+
rb-fsevent (~> 0.9, >= 0.9.4)
219+
rb-inotify (~> 0.9, >= 0.9.7)
220+
sawyer (0.8.1)
221+
addressable (>= 2.3.5, < 2.6)
222+
faraday (~> 0.8, < 1.0)
223+
terminal-table (1.8.0)
224+
unicode-display_width (~> 1.1, >= 1.1.1)
225+
thread_safe (0.3.6)
226+
typhoeus (0.8.0)
227+
ethon (>= 0.8.0)
228+
tzinfo (1.2.5)
229+
thread_safe (~> 0.1)
230+
unicode-display_width (1.3.0)
231+
232+
PLATFORMS
233+
ruby
234+
235+
DEPENDENCIES
236+
github-pages
237+
238+
BUNDLED WITH
239+
1.15.1

_config.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
1-
include: ["_test.html", "_static", "pandas/guide/_static"]
1+
# Site settings
2+
title: Python-Sprints
3+
# email: your-email@domain.com
4+
description: > # this means to ignore newlines until "baseurl:"
5+
Python-Sprints is a non profit organisation gathering Python programmers and helping improve code in open source projects.
6+
baseurl: "" # the subpath of your site, e.g. /blog/
7+
url: "https://python-sprints.github.io/" # the base hostname & protocol for your site
8+
# twitter_username: jekyllrb
9+
github_username: python-sprints
10+
11+
# Build settings
12+
include: ['_pages']
13+
sass:
14+
sass_dir: _sass
15+
kramdown:
16+
input: GFM
17+
include: ["_test.html", "_static", "pandas/guide/_static", "_pages"]
18+
#include: ["_pages"]
19+
exclude:
20+
- Gemfile
21+
- Gemfile.lock
22+
- static/images/sources/
23+
future: true
24+
collections:
25+
- sponsors
26+
27+
# command to run build locally:
28+
# bundle exec jekyll serve --config _config.yml,_config_dev.yml

_config_dev.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Site settings
2+
title: Python-Sprints
3+
# email: your-email@domain.com
4+
description: > # this means to ignore newlines until "baseurl:"
5+
Python-Sprints is a non profit organisation gathering Python programmers and helping improve code in open source projects.
6+
baseurl: "" # the subpath of your site, e.g. /blog/
7+
url: "http://localhost:4000"
8+
# twitter_username:
9+
# github_username: python-sprints
10+
11+
# Build settings
12+
include: ['_pages']
13+
sass:
14+
sass_dir: _sass
15+
kramdown:
16+
input: GFM
17+
include: ["_test.html", "_static", "pandas/guide/_static", "_pages"]
18+
#include: ["_pages"]
19+
exclude:
20+
- Gemfile
21+
- Gemfile.lock
22+
- static/images/sources/
23+
future: true
24+
collections:
25+
- sponsors
26+
27+
# command to run build locally:
28+
# bundle exec jekyll serve --config _config.yml,_config_dev.yml

_includes/event.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<section class="events">
2+
<div class="container-fluid">
3+
<div class="row">
4+
<div class="col-md-12">
5+
<h2 class="section-title">Recent Events</h2>
6+
</div>
7+
</div>
8+
9+
{% comment %}
10+
Create an array of last 4 posts (from newest to oldest) to show in recent events section.
11+
Since we also allow future posts to show upcoming event we have to eliminate the future ones
12+
from displaying in the past ones.
13+
{% endcomment %}
14+
15+
{% assign curDate = site.time | date: "%s" %}
16+
{% assign last_4_posts = "" | split: ',' %}
17+
{% for post in site.posts %}
18+
{% assign postStartDate = post.date | date: "%s" %}
19+
{% if postStartDate <= curDate %}
20+
{% assign last_4_posts = last_4_posts | push: post %}
21+
{% increment post_count %}
22+
{% endif %}
23+
{% if post_count == 4 %}
24+
{% break %}
25+
{% endif %}
26+
{% endfor %}
27+
28+
{% comment %}
29+
Create a 2 row by 2 column structure for 4 recent posts.
30+
{% endcomment %}
31+
32+
{% for row in (0..1) %}
33+
<div class="row">
34+
{% for col in (0..1) %}
35+
{% assign post_index = row | times: 2 | plus: col %}
36+
{% assign post = last_4_posts[post_index] %}
37+
<div class="no-gutters__col col-sm-6">
38+
<div class="events__spacer"></div>
39+
<div class="events__img-container">
40+
<div class="events__img-overlay">
41+
<!--<a class="events__link" href="{{ post.link }}" target="_blank">-->
42+
<a class="events__link" href="{{ post.url }}">
43+
<i class="events__icon fas fa-external-link-square-alt"></i>
44+
</a>
45+
<div class="events__title-container">
46+
<h2 class="events__img-title">Event: {{ post.title }}</h2>
47+
<p class="events__img-subtitle">{{ post.venue }}, {{ post.date | date: "%e %B %Y" }}</p>
48+
</div>
49+
</div>
50+
<img class="events__img img-fluid" src="{{ site.baseurl }}/{{ post.image }}">
51+
</div>
52+
</div>
53+
{% endfor %}
54+
</div>
55+
{% endfor %}
56+
</div>
57+
</section>

0 commit comments

Comments
 (0)