Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jnsgruk/jnsgr.uk
My personal webpage and blog
https://github.com/jnsgruk/jnsgr.uk
blog go hugo nix nix-flake personal-website static-site
Last synced: 4 months ago
JSON representation
My personal webpage and blog
- Host: GitHub
- URL: https://github.com/jnsgruk/jnsgr.uk
- Owner: jnsgruk
- License: apache-2.0
- Created: 2020-03-18T08:24:04.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T11:16:42.000Z (5 months ago)
- Last Synced: 2024-09-17T14:06:42.315Z (5 months ago)
- Topics: blog, go, hugo, nix, nix-flake, personal-website, static-site
- Language: CSS
- Homepage: https://jnsgr.uk
- Size: 32.6 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jnsgr.uk
This repository contains the code for my personal website https://jnsgr.uk.
The site is a simple business-card style site built with [Hugo](https://gohugo.io), and served
with [gosherve](https://github.com/jnsgruk/gosherve), which is a tiny little Go webserver that I
wrote for serving this page, as well as some static URL redirects from a Github gist.The site is hosted on a free instance at [Fly.io](https://fly.io), and deployed automatically with
Github Actions.## Building
This project is packaged with Nix, both as a standard Nix package and an OCI container:
```shell
# Build the Nix package for the site
nix build .#jnsgruk# Build the OCI image
nix build .#jnsgruk-container# Load the container into Docker, and run
docker load < result
# The image tag will the commit short hash
docker run --rm -p 8080:8080 -p 8081:8081 "jnsgruk/jnsgr.uk:$(git rev-parse --short HEAD)"
```To build and serve just the Hugo site during development:
```shell
# Optional: enter a shell with all the dependencies present.
nix developcd site
hugo serve
```