Skip to content

Commit

Permalink
Reorganize menu with more nesting to simplify top level
Browse files Browse the repository at this point in the history
  • Loading branch information
apexskier committed May 9, 2020
1 parent 94874c2 commit 9fdf949
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 44 deletions.
46 changes: 5 additions & 41 deletions content/pages/about.md
@@ -1,7 +1,9 @@
---
title: About
url: /about/
menu: main
menu:
main:
identifier: about
---

I’m a software engineer at [Remitly](https://grnh.se/3c4028751) where I’m
Expand All @@ -19,44 +21,6 @@ Arduino, and 3D printing.

I can be contacted at: <cameron@camlittle.com>.

## This site
## More

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.
{{< subMenu >}}
4 changes: 3 additions & 1 deletion content/pages/hostnames.md
@@ -1,7 +1,9 @@
---
title: Hostnames
url: /hostnames/
menu: main
menu:
main:
parent: about
tags: ["tech"]
---

Expand Down
6 changes: 5 additions & 1 deletion content/pages/apps.md → content/pages/projects.md
@@ -1,7 +1,9 @@
---
title: Projects
url: /projects/
menu: main
menu:
main:
identifier: projects
tags: ["apps"]
---

Expand Down Expand Up @@ -34,3 +36,5 @@ tags: ["apps"]
## And even more

You can see more dead projects on [my GitHub profile](https://github.com/apexskier?tab=repositories&type=source).

{{< subMenu >}}
48 changes: 48 additions & 0 deletions content/pages/site-tech.md
@@ -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.
4 changes: 3 additions & 1 deletion content/pages/video.md
@@ -1,7 +1,9 @@
---
title: Video
url: /video/
menu: main
menu:
main:
parent: projects
---

[Vimeo](https://vimeo.com/apexskier)
Expand Down
9 changes: 9 additions & 0 deletions layouts/partials/findMenuEntry.html
@@ -0,0 +1,9 @@
{{ $result := "" }}

{{ range .Menus }}
{{ with partial "findMenuEntryInMenu" (dict "Page" $.Page "Menu" .) }}
{{ $result = . }}
{{ end }}
{{ end }}

{{ return $result }}
13 changes: 13 additions & 0 deletions layouts/partials/findMenuEntryInMenu.html
@@ -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 }}
9 changes: 9 additions & 0 deletions layouts/shortcodes/subMenu.html
@@ -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 }}

0 comments on commit 9fdf949

Please sign in to comment.