Skip to content

Commit 0aa5b43

Browse files
Implementing Marc's changes to structure and post.html.
Converted config files to match. Stored older versions in temp.
1 parent 2fac9ac commit 0aa5b43

File tree

7 files changed

+298
-11
lines changed

7 files changed

+298
-11
lines changed

_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Site settings
12
title: Python-Sprints
23
email: py.sprints@gmail.com
34
description: > # this means to ignore newlines until "baseurl:"
@@ -26,7 +27,7 @@ collections:
2627
sponsors:
2728
output: false
2829
chapters:
29-
output: true
30+
output: true
3031
projects:
3132
output: false
3233

@@ -38,7 +39,6 @@ defaults:
3839
values:
3940
layout: "post"
4041
is_post: true
41-
4242
-
4343
scope:
4444
path: ""
@@ -53,4 +53,4 @@ defaults:
5353
layout: "default"
5454

5555
# command to run build locally:
56-
# bundle exec jekyll serve --host 0.0.0.0 --config _config.yml,_config_dev.yml
56+
# bundle exec jekyll serve --host 0.0.0.0 --config _config.yml,_config_dev.yml

_config_dev.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Site settings
22
title: Python-Sprints
3-
# email: your-email@domain.com
3+
email: py.sprints@gmail.com
44
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.
5+
Python Sprints is a website to promote sprints in the Python community
66
baseurl: "" # the subpath of your site, e.g. /blog/
77
url: "http://localhost:4000"
8-
# twitter_username:
9-
# github_username: python-sprints
8+
twitter_username: py_sprints
9+
github_username: python-sprints
1010

1111
# Build settings
1212
include: ['_pages']
@@ -15,7 +15,6 @@ sass:
1515
kramdown:
1616
input: GFM
1717
include: ["_test.html", "_static", "pandas/guide/_static", "_pages"]
18-
#include: ["_pages"]
1918
exclude:
2019
- Gemfile
2120
- Gemfile.lock
@@ -28,7 +27,9 @@ collections:
2827
sponsors:
2928
output: false
3029
chapters:
31-
output: true
30+
output: true
31+
projects:
32+
output: false
3233

3334
defaults:
3435
-
@@ -38,14 +39,12 @@ defaults:
3839
values:
3940
layout: "post"
4041
is_post: true
41-
4242
-
4343
scope:
4444
path: ""
4545
type: "chapters"
4646
values:
4747
is_chapter: true
48-
4948
-
5049
scope:
5150
path: ""
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Pandas Sprint continued (ALL LEVELS)
3+
subtitle: Improving Pandas on all levels
4+
project: Pandas
5+
project_logo: static/images/events/pandas_logo_donation.png
6+
project_link: http://pandas.pydata.org/index.html
7+
date: 2018-03-22
8+
time: "18:30"
9+
meetup_link: https://www.meetup.com/Python-Sprints/events/248712103/
10+
event_link:
11+
image:
12+
13+
sponsors:
14+
- quantum_black
15+
---
16+
This will be a follow up of the worldwide #pandasSprint: [https://python-sprints.github.io/pandas/](https://python-sprints.github.io/pandas/)
17+
18+
Beginners to contributing to open source will get a pandas documentation page assigned, and will be guided through the step to make it as good as pandas itself. During the sprint, this step-by-step checklist will help you make your first contribution, and our senior members will help you with any problem.
19+
20+
[https://python-sprints.github.io/pandas/dashboard.html](https://python-sprints.github.io/pandas/dashboard.html)
21+
22+
Advanced contributors will be able to:
23+
- Help reviewing open pull requests
24+
- Experiment with the Sphinx theme of the pandas documentation
25+
- Improve the validation of docstrings
26+
- Refactor the contributing documentation
27+
- And of course mentor more junior contributors
28+
29+
Before the sprint, and to optimise your time, we recommend trying to set up a pandas development environment in your laptop:
30+
31+
[https://python-sprints.github.io/pandas/guide/pandas_setup.html](https://python-sprints.github.io/pandas/guide/pandas_setup.html)
32+
33+
For this sprint, we welcome our new sponsor QuantumBlack.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Test event 1
3+
subtitle: test subtitle 1
4+
project: Pandas
5+
project_logo: static/images/events/pandas_logo_donation.png
6+
project_link: http://pandas.pydata.org/index.html
7+
date: 2018-04-22
8+
time: "18:30"
9+
meetup_link: https://www.meetup.com/Python-Sprints/events/248712103/
10+
event_link:
11+
image:
12+
13+
sponsors:
14+
- quantum_black
15+
---
16+
This will be a follow up of the worldwide #pandasSprint: [https://python-sprints.github.io/pandas/](https://python-sprints.github.io/pandas/)
17+
18+
Beginners to contributing to open source will get a pandas documentation page assigned, and will be guided through the step to make it as good as pandas itself. During the sprint, this step-by-step checklist will help you make your first contribution, and our senior members will help you with any problem.
19+
20+
[https://python-sprints.github.io/pandas/dashboard.html](https://python-sprints.github.io/pandas/dashboard.html)
21+
22+
Advanced contributors will be able to:
23+
- Help reviewing open pull requests
24+
- Experiment with the Sphinx theme of the pandas documentation
25+
- Improve the validation of docstrings
26+
- Refactor the contributing documentation
27+
- And of course mentor more junior contributors
28+
29+
Before the sprint, and to optimise your time, we recommend trying to set up a pandas development environment in your laptop:
30+
31+
[https://python-sprints.github.io/pandas/guide/pandas_setup.html](https://python-sprints.github.io/pandas/guide/pandas_setup.html)
32+
33+
For this sprint, we welcome our new sponsor QuantumBlack.

temp/_config.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
- _pages/02_get_started.html
24+
- DOCS/
25+
future: true
26+
27+
collections:
28+
sponsors:
29+
output: false
30+
chapters:
31+
output: true
32+
33+
defaults:
34+
-
35+
scope:
36+
path: ""
37+
type: "posts"
38+
values:
39+
layout: "post"
40+
is_post: true
41+
42+
-
43+
scope:
44+
path: ""
45+
type: "chapters"
46+
values:
47+
is_chapter: true
48+
-
49+
scope:
50+
path: ""
51+
type: "pages"
52+
values:
53+
layout: "default"
54+
55+
# command to run build locally:
56+
# bundle exec jekyll serve --host 0.0.0.0 --config _config.yml,_config_dev.yml

temp/harvey_nash.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
obj_id: harvey_nash
3+
name: "Harvey Nash"
4+
logo: static/images/sponsors/harvey_nash.png
5+
link: https://www.linkedin.com/in/hamishpitkeathly/
6+
address: "110 Bishopsgate,<br>London, EC2N 4AY, UK"
7+
lat: 51.5162822
8+
lng: -0.0809643
9+
permanent: true
10+
---
11+
Harvey Nash specialise in professional recruitment.
12+
Since 1988, they supported many of the world's top organisations to recruit, source and manage the highly-skilled talent needed to succeed in an increasingly competitive world.

temp/post.html

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
{% include head.html %}
4+
{% if page.image %}
5+
{% assign image = page.image %}
6+
{% else %}
7+
{% assign image = "static/images/events/default_image_800x800px.jpeg" %}
8+
{% endif %}
9+
{% include get_host_sponsor.html event = page %}
10+
<style>
11+
.post__img-container {
12+
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("{{ site.baseurl }}/{{ image }}");
13+
}
14+
15+
@media (min-width: 769px) {
16+
.post__img-container {
17+
background-image: linear-gradient(75deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.6) 80%, black 87%, black 100%), url("{{ site.baseurl }}/{{ image }}");
18+
}
19+
}
20+
</style>
21+
<body class="body">
22+
{% include navigation.html %}
23+
<main>
24+
<article class="post">
25+
<div class="row">
26+
<div class="no-gutters__col col-md-12 container-fluid">
27+
<div class="row">
28+
<div class="post__img-container col-md-7 col-sm-12">
29+
<!--<h1 class="post__title">{{ page.project }}</h1>-->
30+
<h1 class="post__title">{{ page.title }}</h1>
31+
<!--<h2 class="post__subtitle"><em>{{ page.project_description }}</em></h2>-->
32+
<h2 class="post__subtitle">{{ page.subtitle }}</h2>
33+
</div>
34+
<div class="post__event-col col-md-5 col-12">
35+
<div class="row">
36+
<div class="no-gutters__col col-6">
37+
<!--<h2 class="post__label">Event</h2>-->
38+
<h2 class="post__label">Project</h2>
39+
</div>
40+
</div>
41+
<div class="row">
42+
<div class="post__event-title col-12">
43+
{{ page.project }}
44+
</div>
45+
</div>
46+
47+
<div class="row">
48+
<div class="no-gutters__col col-6">
49+
<h2 class="post__label">Venue</h2>
50+
</div>
51+
</div>
52+
<div class="row">
53+
<div class="post__event-title col-12">
54+
{{ host_sponsor.name }}
55+
</div>
56+
</div>
57+
58+
<div class="row">
59+
<div class="no-gutters__col col-6">
60+
<h2 class="post__label">Date</h2>
61+
</div>
62+
</div>
63+
<div class="row">
64+
<div class="post__event-title col-12">
65+
{{ page.date | date: "%e %B %Y" }}
66+
</div>
67+
</div>
68+
69+
<div class="row">
70+
<div class="post__button-col col-12 no-padding-x">
71+
<div class="row">
72+
{% if page.event_link %}
73+
{% assign meetup_col_class = "col-lg-6" %}
74+
{% assign meetup_button_class = "post__button" %}
75+
{% else %}
76+
{% assign meetup_col_class = "col-12" %}
77+
{% assign meetup_button_class = "post__button-solo" %}
78+
{% endif %}
79+
<div class="{{ meetup_col_class }} text-center">
80+
<a class="{{ meetup_button_class }} btn btn-primary btn-lg text-center" href="{{ page.meetup_link }}">
81+
<i class="post__icon fab fa-meetup"></i>
82+
</a>
83+
</div>
84+
{% if page.event_link %}
85+
<div class="col-lg-6 text-center">
86+
<a class="post__button btn btn-primary btn-lg text-center" href="{{ page.event_link }}">
87+
<i class="post__icon fas fa-external-link-square-alt"></i>
88+
</a>
89+
</div>
90+
{% endif %}
91+
</div>
92+
</div>
93+
</div>
94+
</div>
95+
</div>
96+
</div>
97+
</div>
98+
<div class="container-fluid">
99+
<div class="row">
100+
<div class="post__content col-md-12">
101+
102+
<h1 class="post__content-title">{{ page.title }}</h1>
103+
<p class="post__paragraph">{{ page.content }}</p>
104+
<hr class="post__divider">
105+
<h1 class="post__content-title">When & Where</h1>
106+
<p class="post__address-title">{{ page.date | date: "%e %B %Y" }}, {{ page.time }}</p>
107+
<p class="post__address-title">{{ host_sponsor.name }}</p>
108+
<p class="post__address">{{ host_sponsor.address }}</p>
109+
<div class="chapters__content row">
110+
<div class="col-12 my-auto">
111+
<div id="chapters__map"></div>
112+
{% comment %}
113+
Create a javascript variable for use in the function adding map markers.
114+
{% endcomment %}
115+
{% assign locations = "" | split: ',' %}
116+
{% assign location = page %}
117+
{% assign locations = locations | push: location %}
118+
{% include locations_variable_generator.html locations_array = locations %}
119+
<script async defer
120+
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB0NCzoIqGkYFdpRl-LmgWTKpxPBkqxxO0&callback=initMap">
121+
</script>
122+
</div>
123+
</div>
124+
<hr class="post__divider">
125+
<h1 class="post__content-title">Event's sponsors</h1>
126+
</div>
127+
</div>
128+
{% for sponsor in page.sponsors %}
129+
{% assign sponsor_obj = site.sponsors | where:"obj_id", sponsor | first %}
130+
<div class="row flex-nowrap">
131+
<div class="post__sponsor-col col-md-12">
132+
<div class="row">
133+
<div class="post__logo-col col-sm-3 col-12">
134+
<h3 class="post__sponsor-name">{{ sponsor_obj.name }}</h3>
135+
<a class="post__sponsor-container post__sponsor-link" href="{{ sponsor_obj.link }}">
136+
<img class="post__sponsor-img"
137+
src="{{ site.baseurl }}/{{ sponsor_obj.logo }}"
138+
alt="Sponsor logo">
139+
</a>
140+
</div >
141+
<div class="post__sponsor-info-col col-12 col-sm-auto col-xl-7 ">
142+
<p class="post__sponsor-content">{{ sponsor_obj.content}}</p>
143+
</div>
144+
</div>
145+
</div>
146+
</div>
147+
{% endfor %}
148+
</div>
149+
</article>
150+
{% include footer.html %}
151+
</main>
152+
{% include scripts.html %}
153+
</body>
154+
</html>

0 commit comments

Comments
 (0)