Browse Source

feat(Archive) page restructure

Joe Richardson 4 months ago
parent
commit
b40f3cb499

+ 1
- 1
site/content/information/index.md View File

@@ -17,7 +17,7 @@ I’m available for freelance, I mostly focus on Front-end Development for small
17 17
 ### About this site
18 18
 
19 19
 * Built with [Hugo](https://gohugo.io/)
20
-* Hosting by [Vultr](//vultr.com/?ref=8368723) <sup>(Referral link)</sup>
20
+* Hosting by [Vultr](//vultr.com/?ref=8368723) <small>(Referral link)</small>
21 21
 * Deployments with [Buddy](//buddy.works)
22 22
 * Source code stored on [Gitea](//git.jrich.cc/dope/jrich)
23 23
 * Font is [System Font Stack](//css-tricks.com/snippets/css/system-font-stack/)

BIN
site/layouts/.index.html.swp View File


+ 1
- 1
site/layouts/index.html View File

@@ -8,7 +8,7 @@
8 8
 
9 9
   <h2 class="pt mb-">Recent Notes</h2>
10 10
 
11
-  {{ range first 4 (where .Site.RegularPages "Type" "!=" "page") }}
11
+  {{ range first 4 (where .Site.RegularPages "Type" "post") }}
12 12
 
13 13
     <article class="article">
14 14
       <header class="db mb--small df jcb aic">

+ 18
- 18
site/layouts/page/archive.html View File

@@ -1,23 +1,23 @@
1
-{{ partial "meta" . }}
2
-{{ partial "header" . }}
1
+{{ define "main"  }}
3 2
 
4
-<main class="content" role="main">
5
-  <div class="inner">
6
-    {{ range (.Site.RegularPages.GroupByDate "2006") }}
7
-    <h3>{{ .Key }}</h3>
3
+<section class="mt0 content fs14 fw-medium mw-slim page"> 
4
+  {{ range (.Site.RegularPages.GroupByDate "2006") }}
5
+    {{ if (gt .Key 2000) }}
6
+      <h3>{{ .Key }}</h3>
8 7
 
9
-    <ul class="archive-list">
10
-      {{ range (where .Pages "Type" "!=" "page") }}
8
+      <ul class="archive-list">
11 9
 
12
-      <li>
13
-        {{ .PublishDate.Format "02 Jan" }}
14
-        -
15
-        <a href="{{ .RelPermalink }}">{{ .Title }}</a>
16
-      </li>
10
+        {{ range (where .Pages "Type" "post") }}
11
+        <li>
12
+          {{ .PublishDate.Format "02 Jan" }}
13
+          -
14
+          <a href="{{ .RelPermalink }}">{{ .Title }}</a>
15
+        </li>
16
+        {{ end }}
17 17
 
18
-      {{ end }}
19
-    </ul>
18
+      </ul>
20 19
     {{ end }}
21
-  </div>
22
-  {{ partial "footer" . }}
23
-</main>
20
+  {{ end }}
21
+</section>
22
+
23
+{{ end  }}