Browse Source

feat(theme/simplest): Flesh out homepage.

jackyalcine 9 months ago
parent
commit
7a85240a6f
Signed by: Jacky Alciné <yo@jacky.wtf> GPG Key ID: 537A4F904B15268D

+ 9
- 0
themes/simplest/tmpl/_footer.html.liquid View File

@@ -0,0 +1,9 @@
1
+      <footer class="site-footer">
2
+        <div class="container">
3
+          <small class="pull-left">&copy;{{ site.time | date: '%Y' }} All rights reserved. Made with <a href="http://jekyllrb.com/" target="_blank">Jekyll</a> and ♥</small>
4
+          <small class="pull-right">by <a href="http://nandomoreira.me/" target="_blank">nandomoreira.me</a></small>
5
+        </div>
6
+      </footer>
7
+    </main>
8
+  </body>
9
+</html>

+ 24
- 0
themes/simplest/tmpl/_header.html.liquid View File

@@ -0,0 +1,24 @@
1
+<!DOCTYPE html>
2
+<html>
3
+  <head>
4
+    <meta charset="utf-8">
5
+    <meta name="apple-mobile-web-app-capable" content="yes">
6
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+    <meta name="viewport" content="width=device-width, initial-scale=1">
8
+    <meta name="HandheldFriendly" content="True">
9
+    <meta name="MobileOptimized" content="320">
10
+    {% koype.render meta %}
11
+    {% import type=style path=theme.css %}
12
+  </head>
13
+  <body>
14
+    <main class="wrapper">
15
+      <header class="site-header">
16
+        <nav class="nav">
17
+          <div class="container">
18
+            <h1 class="logo"><a href="{{ '/' | prepend: h.card.uri }}">{{ h.card.preferred_name }}<span>blog</span></a></h1>
19
+            <ul class="navbar">
20
+              <li><a href="{{ '/about' | prepend: h.card.uri }}">about</a></li>
21
+            </ul>
22
+          </div>
23
+        </nav>
24
+      </header>

+ 33
- 0
themes/simplest/tmpl/home.html.liquid View File

@@ -0,0 +1,33 @@
1
+<section class="intro">
2
+  <div class="container">
3
+    <p class="lead">
4
+      Hi, I'm
5
+      <strong class="author-name" itemprop="name">
6
+        {{ h.card.preferred_name }}
7
+      </strong>.
8
+  </div>
9
+</section>
10
+
11
+<section class="post-list">
12
+  <div class="container">
13
+    <h2>Writing..</h2>
14
+    {% assign entry = "latest"|get_entry %}
15
+    <article class="post-item">
16
+      <p>
17
+        <span class="post-meta">
18
+          {{ entry.published_at | date: "%b %-d, %Y" }}
19
+        </span>
20
+        &mdash;
21
+        <strong>
22
+          <a class="post-link" href="{{ entry.uri }}">
23
+            {{entry.title }}
24
+          </a>
25
+        </strong> &mdash;
26
+        <span>
27
+          {{ entry.json.content.plain | truncatewords: 40 }}
28
+        </span>
29
+        <a class="post-link readmore" href="{{ entry.url }}">Read more</a>
30
+      </p>
31
+    </article>
32
+  </div>
33
+</section>

Loading…
Cancel
Save