Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kencx committed Feb 19, 2024
1 parent c315370 commit 0c7b7c9
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 78 deletions.
6 changes: 3 additions & 3 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ copyright = "2021—{year}"
weight = 1

[[menu.main]]
identifier = "notes"
name = "Notes"
url = "notes/"
identifier = "projects"
name = "Projects"
url = "projects/"
weight = 2

[[menu.main]]
Expand Down
17 changes: 11 additions & 6 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Hi I'm Ken. I've built some [projects]({{< ref "/projects" >}}), maintain my own
[homelab]({{< ref "/tags/homelab/" >}}) and occasionally [write about stuff]({{<
ref "/notes" >}}) I learnt. I also enjoy indie games, [keyboards]({{< ref
"/tags/keyboards/"
>}}) and filling up my ever-expanding [reading list]({{< ref "/books" >}}).
Hi I'm Ken. I write about some stuff here when I feel like it. My interests
include software, automation, keyboards, indie games and science fiction.

[Colophon]({{< ref "colophon.md" >}})
- [Colophon](/colophon)
- [Bookshelf](/books)
- [Links]()

## Contact

- Email: ken at cheo dot dev
- [Github](https://github.com/kencx)
- [RSS](/posts/index.xml)
10 changes: 4 additions & 6 deletions content/colophon.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ date: 2022-07-01
draft: false
---

This site is my attempt for [learning in
public](https://www.swyx.io/learn-in-public/). All information represents
my knowledge at that time and is not guaranteed to be accurate, but I
try my best to ensure its researched and referenced. Incomplete documents
will be flagged. Any constructive criticism is welcome.
All information represents my knowledge at that time and is not guaranteed to be
accurate, but I try my best to ensure its researched and referenced. Incomplete
documents will be flagged. Any constructive criticism is welcome.

- Notes are sorted alphabetically with a "last edited" date
- Blog posts are sorted chronologically by the date they are first posted and appended
with a "last edited" date.
- Some documents are incomplete and will be flagged as such.
- A site-wide search engine is _coming soon_.
- A site-wide search engine is probably _coming soon_.

### Software

Expand Down
7 changes: 1 addition & 6 deletions content/projects/calibre-rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ lastmod: 2023-07-10
weight: 2
draft: false
repo_url: https://github.com/kencx/calibre-rest
post_url: posts/calibre-rest
tools:
- Python
- Flask
- Docker
---

A self-hosted REST API server that wraps `calibredb` to expose a Calibre
library.
<!--more-->
I wrote this project as I could not find a good language-agnostic
method to programmatically manipulate a Calibre library (locally or remotely).
Selfhosted REST API server to expose a Calibre library
5 changes: 1 addition & 4 deletions content/projects/homelab.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ lastmod: 2023-07-12
weight: 1
draft: false
repo_url: https://github.com/kencx/homelab
post_url:
tools:
- Ansible
- Terraform
- Packer
---

A Nomad, Consul and Vault cluster hosted on Proxmox. Documentation
[here](https://kencx.github.io/homelab).
<!--more-->
Nomad, Consul and Vault cluster hosted on Proxmox
6 changes: 1 addition & 5 deletions content/projects/keyb.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ lastmod:
weight: 4
draft: false
repo_url: https://github.com/kencx/keyb
post_url: posts/keyb-a-hotkey-cheatsheet-in-the-terminal
tools:
- Go
---

A lightweight and fully customizable hotkey cheatsheet in the terminal.
<!--more-->
`keyb` can create and view custom hotkey cheatsheets in a nice TUI. It supports
fuzzy filtering and vim key bindings.
Lightweight, fully customizable hotkey cheatsheet in the terminal
7 changes: 1 addition & 6 deletions content/projects/sxkcd.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ lastmod:
weight: 3
draft: false
repo_url: https://github.com/kencx/sxkcd
post_url: posts/sxkcd
tools:
- Go
- Svelte
- Redis
- Docker
---

A full-text search engine for [xkcd](https://xkcd.com) comics supported by
Redis. Test it out at [xkcd.cheo.dev](https://xkcd.cheo.dev).
<!--more-->
It features an extensive query syntax with comic number and date
filtering.
Full-text search engine for [xkcd](https://xkcd.com) built with Go and Redis
15 changes: 0 additions & 15 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,4 @@
<div>
<h1>About</h1>
{{ .Content }}

<h2>Projects</h2>
{{ range .Site.Pages }}
{{ if eq .Type "projects" }}
<div>
{{ range .Pages.ByWeight }}
<div class="projects">
<a href="{{ .Params.repo_url }}">{{ .Title }}</a>
{{.Summary}}
</div>
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
21 changes: 10 additions & 11 deletions layouts/projects/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ <h1>

{{ if (where .Site.Pages "Section" "projects") }}
<div>
{{ range .Pages.ByWeight }}
<div class="projects">
<h3>
<a href="{{ .Params.repo_url }}">
{{ .Title }}
</a>
</h3>
<span>
</span>
</div>
<div>{{.Content}}</div>
<ul>
{{ range .Pages.ByTitle }}
<li>
<a href="{{ .Params.repo_url }}">
{{ .Title }}
</a>
</li>
{{ .Summary }}

{{ end }}
</ul>
</div>
{{ end }}
</div>
Expand Down
10 changes: 0 additions & 10 deletions themes/bamboo/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,6 @@ pre, code, kbd, samp, tt, var {
border-left: 4px solid var(--b-focus);
}

/* projects */

.projects {
margin-bottom: 1rem;
}

.projects h3 {
margin-bottom: 0.2rem;
}

/* books */
.card-view {
/* auto scaling grid with max num of columns and min width*/
Expand Down
7 changes: 1 addition & 6 deletions themes/bamboo/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<footer>
<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank"
rel="noopener">&copy; {{ replace .Site.Copyright "{year}" now.Year }}</a> |
<span class="icons">
<a href="{{.Site.Params.github}}">{{ partial "svg/icons" "github" }}</a>
<a href="mailto:{{.Site.Params.email}}">{{ partial "svg/icons" "email" }}</a>
<a href="/posts/index.xml" target="_blank">{{ partial "svg/icons" "rss" }}</a>
</span>
rel="noopener">&copy; {{ replace .Site.Copyright "{year}" now.Year }}</a>

<div class="icons" style="float: right;">
<a href="#top">{{ partial "svg/icons" "up" }}</a>
Expand Down

0 comments on commit 0c7b7c9

Please sign in to comment.