Skip to content

Commit c0fe377

Browse files
Working on layout for the standard post.
Added post.scss, removed post.css. will eventually convert css to scss. Added project and project description variables to metadate in post.
1 parent c35bcc8 commit c0fe377

File tree

8 files changed

+56
-16
lines changed

8 files changed

+56
-16
lines changed

_layouts/post.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@
55
{% include navigation.html %}
66
<main>
77
<article class="post">
8-
<div class="container m-auto">
9-
<div class="col-md-12">
10-
<img class="post__img img-fluid" src="{{ site.baseurl }}/{{ page.image }}">
8+
{% if page.image %}
9+
<div class="row">
10+
<div class="no-gutters__col col-md-12">
11+
<div class="post_img-container container-fluid" style='background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("{{ site.baseurl }}/{{ page.image }}");'>
12+
<h1 class="post__title">{{ page.title }}</h1>
13+
<h2 class="post__subtitle"><em>{{ page.project_description }}</em></h2>
14+
</div>
1115
</div>
1216
</div>
13-
<div class="post__content container-fluid">
17+
{% endif %}
18+
<div class="row post__content container-fluid">
1419
<div class="col-md-12">
20+
<h2>Project: {{ page.project }}</h2>
21+
<h3>Venue: {{ page.venue }}, {{ page.date | date: "%e %B %Y" }}</h3>
22+
<h3><a href="{{ page.link }}">Meetup event</a> </h3>
1523
{{ page.content }}
1624
</div>
1725
</div>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: post
33
title: Bokeh as a backend for Pandas
4+
project: Pandas
5+
project_description: Powerful Python data analysis toolkit
46
date: 2017-10-04
57
venue: Harvey Nash
68
link: https://www.meetup.com/Python-Sprints/events/243422372/

_posts/2017-10-24-PyMC3.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: post
33
title: PyMC3
4+
project: PyMC3
5+
project_description: Bayesian Modeling and Probabilistic Machine Learning with Theano
46
date: 2017-10-24
57
venue: Zopa
68
link: https://www.meetup.com/Python-Sprints/events/244062594/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: post
33
title: www.python.org (Part 1)
4+
project: www.python.org
5+
project_description: Official Python Software Foundation website
46
date: 2017-11-01
57
venue: Bloomberg
68
link: https://www.meetup.com/Python-Sprints/events/244388482/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: post
33
title: python-dateutil
4+
project: date-util
5+
project_description: Powerful extensions to datetime
46
date: 2017-12-06
57
venue: Bloomberg
68
link: https://www.meetup.com/Python-Sprints/events/245317647/

static/css/post.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

static/css/post.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
# For front matter
3+
---
4+
.post {
5+
margin-top: -66px;
6+
}
7+
8+
.post_img-container {
9+
background-size: cover;
10+
background-position: center center;
11+
height: 50vh;
12+
}
13+
14+
.post__title {
15+
padding-top: 10%;
16+
text-align: center;
17+
font-size: 3em;
18+
font-family: 'Encode Sans Expanded', sans-serif;
19+
color: antiquewhite;
20+
}
21+
22+
.post__subtitle {
23+
padding-top: 1%;
24+
text-align: center;
25+
font-size: 1.5em;
26+
font-family: 'Encode Sans Expanded', sans-serif;
27+
color: #818181;
28+
}
29+
30+
.post__img {
31+
}
32+
33+
.post__content {
34+
}
35+

static/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/*antiquewhite - title of images in events*/
1010

1111
.body {
12-
background-color: #f4fcff;
12+
background-color: aliceblue;
1313
overflow-x: hidden;
1414
}
1515

0 commit comments

Comments
 (0)