Skip to content

Commit 66ba38f

Browse files
committed
Adding news items to front page
1 parent 5e10311 commit 66ba38f

File tree

5 files changed

+51
-2
lines changed

5 files changed

+51
-2
lines changed

_layouts/base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{% include header.html %}
22
{% include nav.html %}
3-
{% include page_header.html %}
43

54
{{ content }}
65

_layouts/index.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
layout: base
3+
---
4+
5+
{% include page_header.html %}
6+
7+
{{ content }}
8+
9+
<section id="news">
10+
<div class="container">
11+
12+
<div class="row">
13+
<div class="col-lg-12 text-center section-header">
14+
<h2>News</h2>
15+
</div>
16+
</div>
17+
18+
{% for post in site.posts limit: 3 %}
19+
<div class="row">
20+
<div class="col-sm-6 col-sm-offset-4">
21+
<h3>{{post['title']}}</h3>
22+
</div>
23+
</div>
24+
<div class="row">
25+
<div class="col-sm-2 col-sm-offset-2">
26+
<div>
27+
{%if post['image'] %}
28+
<div class="center-cropped-small">
29+
<img src="{{n['image']}}" class="img-responsive img-centered news-image">
30+
</div>
31+
{%endif%}
32+
</div>
33+
</div>
34+
35+
<div class="col-sm-6">
36+
<div class="news-text">
37+
<p class="small">
38+
<i>{{ post['date'] | date: "%B %e, %Y"}}</i>
39+
</p>
40+
<p class="small">{{post.excerpt | remove: '<p>' | remove: '</p>' }}</p>
41+
</div>
42+
</div>
43+
</div>
44+
{%endfor%}
45+
46+
</div>
47+
</section>
48+

_posts/2016-03-29-ng_pyastro.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: post
33
title: PyAstro16
44
date: 2016-03-29
5+
image: assets/img/news/pyastro16_nathan.png
56
---
67

78
Nathan Goldbaum <a href="https://www.youtube.com/watch?v=zb0HBu3IhbU">presented his work</a> on releasing large datasets via NDS Labs at PyAstro16, along with a <a href="https://youtu.be/nzr2vMQqiug?t=5m46s">lightning talk</a> on PyMinecraft.

_posts/2016-03-30-new_website.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: post
33
title: New Website
44
date: 2016-03-30
5+
image: assets/img/dxl_logo.svg
56
---
67

78
The DXL has launched a new website, based on the Regolith project.

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# You don't need to edit this file, it's empty on purpose.
33
# Edit theme's home layout instead if you wanna make some changes
44
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
5-
layout: base
5+
layout: index
66
---

0 commit comments

Comments
 (0)