Skip to content

Commit 8a312e8

Browse files
committed
Post Designs
1 parent 40c2a00 commit 8a312e8

File tree

18 files changed

+253
-43
lines changed

18 files changed

+253
-43
lines changed

_includes/footer.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
<footer>
3+
<div class="ticker">
4+
<p>The articles featured are excerpts from earlier issues of Nature. This page is not affiliated with the scientific journal Nature.</p>
5+
</div>
6+
<p>© 2025 Amazing Nature</p>
7+
</footer>
8+
9+
</body>
10+
</html>

_includes/head.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Amazing Nature</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta name="description" content="Amazing Nature - Excerpts from earlier issues of Nature.">
8+
<meta name="keywords" content="nature, science, articles, amazing">
9+
<link rel="stylesheet" href="/styles/main.css">
10+
</head>
11+
<body>

_includes/home.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% include 'head.html' %}
2+
3+
<div class="main">
4+
5+
<header>
6+
<h1><a href="/">Amazing Nature</a></h1>
7+
</header>
8+
9+
<section class="content">
10+
{{ content }}
11+
</section>
12+
</div>
13+
14+
{% include 'footer.html' %}

_includes/layout.html

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

_includes/post.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{% include 'head.html' %}
2+
3+
<div class="main">
4+
5+
<header>
6+
<h2><a href="/">Amazing Nature</a></h2>
7+
</header>
8+
9+
<section class="post">
10+
11+
<h1>{{ title }}</h1>
12+
13+
<ul class="sources">
14+
<li>Original Data Publications: {{ publicationDate | date: "%B %Y" }} </li>
15+
<li>Nature Links: <a href="{{natureUrl}}">{{natureUrl}}</a></li>
16+
</ul>
17+
18+
19+
20+
<div class="post-content">
21+
<div class="image">
22+
<img src="../../{{ imgUrl }}" alt="{{ title }}">
23+
</div>
24+
{{ content}}
25+
26+
</div>
27+
28+
</section>
29+
</div>
30+
31+
{% include 'footer.html' %}

assets/img/post-4.jpg

31 KB
Loading

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: layout.html
2+
layout: home.html
33
---
44

55
{% include 'introduction.html' %}

posts/post-1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
2+
layout: post.html
23
title: "A Mysterious Glow on Mars"
34
category: sci-fi
45
natureUrl: https://www.nature.com/articles/050319c0
56
imgUrl: assets/img/post-1.jpg
7+
publicationDate: 1905-08-03
68
summary: "A strange glowing light was spotted on the dark side of Mars, sparking speculation about its origin."
79
---
810

posts/post-2.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
2+
layout: post.html
23
title: "Lectures to Ladies"
34
category: education
4-
natureUrl: https://www.nature.com/articles/050319c0
5+
natureUrl: https://www.nature.com/articles/001112b0
56
imgUrl: assets/img/post-2.jpg
7+
publicationDate: 1869-11-11
8+
69
summary: "In 1869 Britain, the rise of “Ladies’ Lectures” marked a serious and transformative push by women for access to higher education and intellectual empowerment."
710
---
811

posts/post-3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
2+
layout: post.html
23
title: "Penny Science Classes "
34
category: education
45
natureUrl: https://www.nature.com/articles/001057a0
56
imgUrl: assets/img/post-3.jpg
7+
publicationDate: 1869-11-11
8+
69
summary: "With just a penny per class, the Birmingham and Midland Institute turned science education into a working-class revolution—proving that big ideas don’t need big budgets to thrive."
710
---
811

0 commit comments

Comments
 (0)