Skip to content

Commit 7bf7a2d

Browse files
Changed name of images folder for events from events_past to events (as we will keep future ones here as well).
Modified the paths to events images in all post .md files accordingly. Removed unused styling from post.scss. Added credit for default image for posts to credits.txt. Added default image for posts to be used with future events as a background.
1 parent d1ed9a2 commit 7bf7a2d

15 files changed

+14
-13
lines changed

_layouts/post.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
{% 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 %}
49
<style>
510
.post__img-container {
6-
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("{{ site.baseurl }}/{{ page.image }}");
11+
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("{{ site.baseurl }}/{{ image }}");
712
}
813

914
@media (min-width: 769px) {
1015
.post__img-container {
11-
background-image: linear-gradient(75deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.5) 80%, black 87%, black 100%), url("{{ site.baseurl }}/{{ page.image }}");
16+
background-image: linear-gradient(75deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.5) 80%, black 87%, black 100%), url("{{ site.baseurl }}/{{ image }}");
1217
}
1318
}
1419
</style>
1520
<body class="body">
1621
{% include navigation.html %}
1722
<main>
1823
<article class="post">
19-
<!--HAve to move this IF statement to the background image style above and give and else with a standard background for events without the image yet-->
20-
{% if page.image %}
2124
<div class="row">
2225
<div class="no-gutters__col col-md-12 container-fluid">
2326
<div class="row">
@@ -70,7 +73,6 @@ <h2 class="post__label">Date</h2>
7073
</div>
7174
</div>
7275
</div>
73-
{% endif %}
7476
<div class="container-fluid">
7577
<div class="row">
7678
<div class="post__content col-md-12">

_posts/2017-10-04-Bokeh-As-A-Backend-For-Pandas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project_description: Powerful Python data analysis toolkit
66
date: 2017-10-04
77
venue: Harvey Nash
88
link: https://www.meetup.com/Python-Sprints/events/243422372/
9-
image: static/images/events_past/pandas_bokeh_backend_harvey_nash_960x539px.jpeg
9+
image: static/images/events/pandas_bokeh_backend_harvey_nash_960x539px.jpeg
1010
sponsors:
1111
- harvey_nash
1212
---

_posts/2017-10-24-PyMC3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project_description: Bayesian Modeling and Probabilistic Machine Learning with T
66
date: 2017-10-24
77
venue: Zopa
88
link: https://www.meetup.com/Python-Sprints/events/244062594/
9-
image: static/images/events_past/pymc3_zopa_960x539px.jpeg
9+
image: static/images/events/pymc3_zopa_960x539px.jpeg
1010
sponsors:
1111
- zopa
1212
---

_posts/2017-11-01-www.python.org-Part1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project_description: Official Python Software Foundation website
66
date: 2017-11-01
77
venue: Bloomberg
88
link: https://www.meetup.com/Python-Sprints/events/244388482/
9-
image: static/images/events_past/python_dot_org_part1_bloomberg_960x539px.jpeg
9+
image: static/images/events/python_dot_org_part1_bloomberg_960x539px.jpeg
1010
sponsors:
1111
- bloomberg
1212
---

_posts/2017-12-06-python-dateutil.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project_description: Powerful extensions to datetime
66
date: 2017-12-06
77
venue: Bloomberg
88
link: https://www.meetup.com/Python-Sprints/events/245317647/
9-
image: static/images/events_past/dateutil_bloomberg_960x539px.jpeg
9+
image: static/images/events/dateutil_bloomberg_960x539px.jpeg
1010
sponsors:
1111
- bloomberg
1212
---

_posts/2020-10-04-Test-future-post-no-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: This is test post in the future no 2 title
44
date: 2022-10-04
55
venue: Test venue 2
66
link: www.blizzard.com
7-
image: static/images/events_past/pandas_bokeh_backend_harvey_nash_960x539px.jpeg
7+
image: static/images/events/pandas_bokeh_backend_harvey_nash_960x539px.jpeg
88
---
99

1010
Test post in the future 2 content

_posts/2022-10-04-Test-future-post-no-2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: This is test post in the future no 1 title
44
date: 2020-10-04
55
venue: Test venue 1
66
link: www.google.com
7-
image: static/images/events_past/pandas_bokeh_backend_harvey_nash_960x539px.jpeg
7+
image: static/images/events/pandas_bokeh_backend_harvey_nash_960x539px.jpeg
88
---
99

1010
Test post in the future 1 content

_sass/post.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
}
121121

122122
.post__sponsor-link {
123-
//text-align: center;
124123
line-height: 102px;
125124
width: 278px;
126125
height: 102px;

static/credits.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
<a href='https://www.freepik.com/free-vector/abstract-running-design_1113095.htm'>Designed by Freepik</a>
66

7-
<a href='https://www.freepik.com/free-photo/blurred-traffic-light-trails-on-road_1193611.htm'>Designed by Freepik</a>
7+
<a href='https://www.freepik.com/free-vector/abstract-vector-mesh-background-chaotically-connected-points-and-polygons-flying-in-space-flying-debris-futuristic-technology-style-card-lines-points-circles-and-planes-futuristic-design_1283675.htm'>Designed by Freepik</a>

static/images/events_past/dateutil_bloomberg_960x539px.jpeg renamed to static/images/events/dateutil_bloomberg_960x539px.jpeg

File renamed without changes.

0 commit comments

Comments
 (0)