Skip to content

Commit c35bcc8

Browse files
Replaced link to a meetup event with a link to the post content in event.html.
Added post.css to stylesheets. Started working on layout for post. Changed layout for all posts from default to post.
1 parent af10800 commit c35bcc8

11 files changed

+40
-118
lines changed

_includes/event.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h2 class="section-title">Recent Events</h2>
88

99
{% comment %}
1010
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 once
11+
Since we also allow future posts to show upcoming event we have to eliminate the future ones
1212
from displaying in the past ones.
1313
{% endcomment %}
1414

@@ -38,7 +38,8 @@ <h2 class="section-title">Recent Events</h2>
3838
<div class="events__spacer"></div>
3939
<div class="events__img-container">
4040
<div class="events__img-overlay">
41-
<a class="events__link" href="{{ post.link }}" target="_blank">
41+
<!--<a class="events__link" href="{{ post.link }}" target="_blank">-->
42+
<a class="events__link" href="{{ post.url }}">
4243
<i class="events__icon fas fa-external-link-square-alt"></i>
4344
</a>
4445
<div class="events__title-container">

_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
99
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/typography.css">
1010
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/style.css">
11+
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/post.css">
1112
<title>
1213
{% if page.title %}
1314
Python Sprints - {{ page.title }}

_layouts/post.html

Lines changed: 18 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,23 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<body class="body">
4-
<!--Full screen navigation section-->
5-
<nav class="navigation navbar sticky-top navbar-light">
6-
<div class="navigation__brand">
7-
<a class="navigation__brand-link navbar-brand" href="index.html">
8-
<img class="navigation__brand-img" src="{{ site.baseurl }}/static/images/site_logo/python_sprints_logo.png" alt="Python Sprints Logo">
9-
<span class="navigation__brand-name">Python Sprints</span>
10-
</a>
11-
</div>
12-
13-
<div class="navigation__button-open-container">
14-
<div class="navigation__hamburger-bar"></div>
15-
<div class="navigation__hamburger-bar"></div>
16-
<div class="navigation__hamburger-bar"></div>
17-
</div>
18-
19-
<div class="navigation__button-close-container">
20-
<a href="javascript:void(0)" class="navigation__button-close">
21-
<i class="navigation__button-close fas fa-times"></i>
22-
</a>
23-
</div>
24-
<div class="navigation__overlay">
25-
<div class="navigation__overlay-content">
26-
<a class="navigation__link" href="{{ '/' | prepend: site.baseurl }}">Home</a>
27-
<a class="navigation__link" href="{{ '/about' | prepend: site.baseurl }}">About</a>
28-
<a class="navigation__link" href="#">Getting Started</a>
29-
<a class="navigation__link" href="#">Projects</a>
30-
<a class="navigation__link" href="#">Contact</a>
31-
</div>
32-
</div>
33-
</nav>
34-
35-
<div class="container">
36-
{{ content }}
37-
</div>
38-
39-
40-
41-
<!--Footer-->
42-
<footer class="footer">
43-
<div class="row">
44-
<div class="col-md-4 text-center">
45-
<p class="section-content footer__text">Find Us Online</p>
46-
<hr class="footer__divider">
47-
<a href="https://www.meetup.com/Python-Sprints/" target="_blank"><i class="footer__icon fab fa-meetup"></i></a>
48-
<a href="https://twitter.com/py_sprints" target="_blank"><i class="footer__icon fab fa-twitter"></i></a>
49-
</div>
50-
<div class="col-md-4">
51-
<p class="section-content footer__text">Our Sponsors</p>
52-
<hr class="footer__divider">
53-
<div class="row">
54-
<div class="col-lg-6">
55-
<a class="footer__sponsor-link" href="https://www.linkedin.com/in/hamishpitkeathly/">
56-
<img class="footer__img" src="{{ site.baseurl }}/static/images/sponsors/harvey_nash_130x90.png">
57-
</a>
58-
<a class="footer__sponsor-link" href="https://www.python.org/psf/">
59-
<img class="footer__img" src="{{ site.baseurl }}/static/images/sponsors/python_software_foundation.jpeg">
60-
</a>
3+
{% include head.html %}
4+
<body class="body">
5+
{% include navigation.html %}
6+
<main>
7+
<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 }}">
11+
</div>
6112
</div>
62-
<div class="col-lg-6">
63-
<a class="footer__sponsor-link" href="https://www.touchsurgery.com/jobs.html">
64-
<img class="footer__img" src="{{ site.baseurl }}/static/images/sponsors/touch_surgery.png">
65-
</a>
66-
<a class="footer__sponsor-link" href="https://www.bloomberg.com/careers/">
67-
<img class="footer__img" src="{{ site.baseurl }}/static/images/sponsors/bloomberg.png">
68-
</a>
13+
<div class="post__content container-fluid">
14+
<div class="col-md-12">
15+
{{ page.content }}
16+
</div>
6917
</div>
70-
</div>
71-
</div>
72-
<div class="col-md-4">
73-
<p class="section-content footer__text">Python Sprints</p>
74-
<hr class="footer__divider">
75-
<a class="footer__link" href="#" target="_blank">About</a>
76-
<a class="footer__link" href="#" target="_blank">Getting Started</a>
77-
<a class="footer__link" href="#" target="_blank">Projects</a>
78-
<a class="footer__link" href="#" target="_blank">Contact</a>
79-
<a class="footer__link" href="#" target="_blank">Credits</a>
80-
</div>
81-
</div>
82-
83-
<div class="footer__content row container-fluid">
84-
<div class="col-md-12">
85-
<p class="section-content footer__text-copyright">
86-
© Copyright
87-
<script>document.write(new Date().getFullYear())</script>
88-
- Python Sprints
89-
<img class="footer__brand-img" src="{{ site.baseurl }}/static/images/site_logo/python_sprints_logo.png" alt="Python Sprints Logo">
90-
91-
</p>
92-
</div>
93-
</div>
94-
</footer>
95-
<!--Scripts-->
96-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
97-
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
98-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
99-
<script src="{{ site.baseurl }}/static/js/site.js"></script>
100-
</body>
101-
<head>
102-
<meta charset="UTF-8">
103-
<meta name="viewport" content="width=device-width, initial-scale=1">
104-
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
105-
<link href="https://fonts.googleapis.com/css?family=Share+Tech+Mono" rel="stylesheet">
106-
<link href="https://fonts.googleapis.com/css?family=Encode+Sans+Expanded" rel="stylesheet">
107-
<link href="https://fonts.googleapis.com/css?family=Playfair+Display" rel="stylesheet">
108-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
109-
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/typography.css">
110-
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/style.css">
111-
112-
<title> {{ page.title }}</title>
113-
</head>
18+
</article>
19+
{% include footer.html %}
20+
</main>
21+
{% include scripts.html %}
22+
</body>
11423
</html>

_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
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: post
33
title: Bokeh as a backend for Pandas
44
date: 2017-10-04
55
venue: Harvey Nash

_posts/2017-10-24-PyMC3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: post
33
title: PyMC3
44
date: 2017-10-24
55
venue: Zopa

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: post
33
title: www.python.org (Part 1)
44
date: 2017-11-01
55
venue: Bloomberg

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: post
33
title: python-dateutil
44
date: 2017-12-06
55
venue: Bloomberg

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: post
33
title: This is test post in the future no 2 title
44
date: 2022-10-04
55
venue: Test venue 2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: post
33
title: This is test post in the future no 1 title
44
date: 2020-10-04
55
venue: Test venue 1

static/css/post.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.post {
2+
margin-top: -66px;
3+
}
4+
5+
.post__img {
6+
width: 75vw;
7+
}
8+
9+
.post__content {
10+
margin: 5% 15%;
11+
}

0 commit comments

Comments
 (0)