aboutsummaryrefslogtreecommitdiffgithub
diff options
context:
space:
mode:
authorAustin Adams <git@austinjadams.com>2022-10-03 10:51:59 -0400
committerAustin Adams <git@austinjadams.com>2022-10-03 10:51:59 -0400
commitf578c3b6792b0947ffc7493b721a3e0646367236 (patch)
tree7874b282a6807f0290cac771a9e977f07ae7f114
parent5a5d0d0b6c9d1f793872af518c208ece2a1c7642 (diff)
downloadwebzone-f578c3b6792b0947ffc7493b721a3e0646367236.tar.gz
webzone-f578c3b6792b0947ffc7493b721a3e0646367236.tar.xz
Move about page to homepage
-rw-r--r--content/_index.md (renamed from content/about.md)3
-rw-r--r--content/blog/including-recent-commits-hugo.md7
-rw-r--r--layouts/partials/home.html25
-rw-r--r--layouts/partials/layout.html6
4 files changed, 12 insertions, 29 deletions
diff --git a/content/about.md b/content/_index.md
index 4be61fd..9cfc6d4 100644
--- a/content/about.md
+++ b/content/_index.md
@@ -2,8 +2,9 @@
type = "info"
date = "2017-02-21T14:14:38-05:00"
draft = false
-title = "About me"
+title = "Home"
description = "About me"
+aliases = [ "/about/" ]
+++
<style>
diff --git a/content/blog/including-recent-commits-hugo.md b/content/blog/including-recent-commits-hugo.md
index 7d05f13..473f77c 100644
--- a/content/blog/including-recent-commits-hugo.md
+++ b/content/blog/including-recent-commits-hugo.md
@@ -23,6 +23,12 @@ On a high level, my solution works like the following:
3. Whenever I push to one of my git repositories, rebuild the site.
(This currently takes less than a tenth of a second.)
+**Edit (October 2022): I removed recent commits and blog posts from the front
+page of my website because in my new career (grad school), it makes more sense
+to prioritize my "about" page over my blog or commits. If you want to see what
+the finished product of this post looked like, [you can try the Internet
+Archive][11].**
+
Part 1: The Script
==================
@@ -155,3 +161,4 @@ repositories that I wanted to update my homepage upon receving a push.
[8]: https://gohugo.io/
[9]: https://en.wikipedia.org/wiki/Breadth-first_search
[10]: {{< ref "/blog/using-git-to-deploy-a-hugo-blog-atomically.md" >}}
+[11]: http://web.archive.org/web/20190124070113/https://austinjadams.com/
diff --git a/layouts/partials/home.html b/layouts/partials/home.html
deleted file mode 100644
index 81925ae..0000000
--- a/layouts/partials/home.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="recent-pane recent-blog">
- <h2 class="recent-title">Recent Blog Posts</h2>
- <ul>
- {{ range first 3 (where (where .Site.RegularPages "Section" "=" "blog") ".Params.unlisted" "!=" true) }}
- <li>
- <a href="{{ .Permalink }}" title="{{ .Description }}">{{ .Title }}</a>
- <div class="recent-date">{{ .Date.Format "January 2, 2006" }}</div>
- <blockquote>{{ .Summary }}</blockquote>
- </li>
- {{ end }}
- </ul>
-</div><div class="recent-pane recent-git">
- <h2 class="recent-title">Recent Commits</h2>
- <ul>
- {{ range first 8 (where .Site.RegularPages "Section" "=" "commit") }}
- <li>
- <div class="recent-git-meta">
- <a href="https://code.austinjadams.com/{{ .Params.repo }}/">{{ .Params.repo }}</a>
- <span class="recent-date">{{ .Date.Format "2006-01-02" }}:</span>
- </div>
- <a class="recent-git-summary" href="https://code.austinjadams.com/{{ .Params.repo }}/commit/?id={{ .Params.hash }}">{{ .Params.summary }}</a>
- </li>
- {{ end }}
- </ul>
-</div>
diff --git a/layouts/partials/layout.html b/layouts/partials/layout.html
index 5949639..909fb8b 100644
--- a/layouts/partials/layout.html
+++ b/layouts/partials/layout.html
@@ -4,7 +4,7 @@
*/}}<!DOCTYPE html>
<html>
<head>
- <title>{{ if .IsPage }}{{ .Title }} « {{ end }}{{ if $isBlog }}Blog « {{ end }}{{ .Site.Title }}</title>
+ <title>{{ if (or .IsHome (not .IsNode)) }}{{ .Title }} « {{ end }}{{ if $isBlog }}Blog « {{ end }}{{ .Site.Title }}</title>
<meta charset="utf-8">
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
@@ -46,7 +46,7 @@
<ul id="navigation">
<li><a class="navlink" href="/blog/">blog</a></li><!--
--><li><a class="navlink" href="/work/">work</a></li><!--
- --><li><a class="navlink" href="/about/">about</a></li><!--
+ --><li><a class="navlink" href="/">about</a></li><!--
--><li><a class="navlink" href="/cv.pdf">résumé</a></li><!--
--><li><a class="navlink" id="emailaddr" title="{{ .Site.Params.email }}" href="mailto:{{ .Site.Params.email }}">contact</a></li>
</ul>
@@ -54,7 +54,7 @@
</header>
<div id="content">
{{ if .IsHome }}
- {{ partial "home.html" . }}
+ {{ .Content }}
{{ else if .IsNode }}
{{ partial "post_list.html" . }}
{{ else if (eq .Section "blog") }}