Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize menu with more nesting to simplify top level
- Loading branch information
Showing
8 changed files
with
95 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
--- | ||
title: Hostnames | ||
url: /hostnames/ | ||
menu: main | ||
menu: | ||
main: | ||
parent: about | ||
tags: ["tech"] | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: Site tech | ||
url: /site-tech/ | ||
menu: | ||
main: | ||
parent: about | ||
tags: ["tech"] | ||
--- | ||
|
||
This site's tech stack throughout the years. | ||
|
||
* Sep 2010 | ||
|
||
Registered [camlittle.com](https://camlittle.com) with GoDaddy and set up a | ||
homemade PHP website. | ||
|
||
* Feb 2012 | ||
|
||
Transferred my domain name to [Namecheap](https://namecheap.com). At some | ||
point, I switched to the [Stacey](http://www.staceyapp.com) CMS with a custom | ||
theme. I chose Stacey because it's very lightweight and PHP was the language I | ||
was primarily using at the time. Hosted on | ||
[Dreamhost](https://www.dreamhost.com) with [Apache](https://httpd.apache.org). | ||
|
||
* June 2014 | ||
|
||
[Jekyll](https://jekyllrb.com) static site with a custom theme. I chose Jekyll | ||
because it's pretty universal and produces a static site. Around this time I | ||
also switched to [DigitalOcean](https://www.digitalocean.com) for hosting and | ||
an [nginx](https://www.nginx.com) web server. | ||
|
||
* March 2020 | ||
|
||
[Hugo](https://gohugo.io) static site with a custom theme. I chose Hugo since | ||
it's the top starred static site generator on | ||
[StaticGen](https://www.staticgen.com) that doesn't rely on client-side rendering. | ||
It has a good mix of power and simplicity and ships as a standalone | ||
binary (no ruby installation to deal with). I still use Digital Ocean and | ||
nginx, but now host several other sites and [tools](/apps). | ||
I'm using [docker](https://www.docker.com) and | ||
[docker-compose](https://docs.docker.com/compose/) to provision and isolate | ||
each app. | ||
|
||
For newer apps, I generally use docker from the start. Some have | ||
images published to [GitHub packages](https://github.com/features/packages), | ||
some don't. For older projects I'm not really planning to revisit or have | ||
archived, I reverse-engineered Dockerfiles and stored them in my | ||
host-configuration repo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
--- | ||
title: Video | ||
url: /video/ | ||
menu: main | ||
menu: | ||
main: | ||
parent: projects | ||
--- | ||
|
||
[Vimeo](https://vimeo.com/apexskier) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{ $result := "" }} | ||
|
||
{{ range .Menus }} | ||
{{ with partial "findMenuEntryInMenu" (dict "Page" $.Page "Menu" .) }} | ||
{{ $result = . }} | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ return $result }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ $result := "" }} | ||
|
||
{{ range .Menu }} | ||
{{ if eq .Page $.Page }} | ||
{{ $result = . }} | ||
{{ else }} | ||
{{ with partial "findMenuEntryInMenu" (dict "Page" $.Page "Menu" .Children ) }} | ||
{{ $result = . }} | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ return $result }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{ with partial "findMenuEntry" (dict "Page" .Page "Menus" .Site.Menus) -}} | ||
<nav> | ||
<ul> | ||
{{ range .Children -}} | ||
<li><a href="{{ .Page.RelPermalink }}">{{ .Name }}</a></li> | ||
{{- end }} | ||
</ul> | ||
</nav> | ||
{{- end }} |