Go to file
ekzyis 21fe5c6688 Use syntaxhighlighting package
i can now use ```sql or ```python and it will automatically have syntax highlighting
2023-11-14 04:16:52 +01:00
blog Use syntaxhighlighting package 2023-11-14 04:16:52 +01:00
html Use syntaxhighlighting package 2023-11-14 04:16:52 +01:00
nginx Update nginx config 2023-08-17 14:56:31 +02:00
public Use syntaxhighlighting package 2023-11-14 04:16:52 +01:00
raw WireGuard Port Forwarding 2023-09-25 02:38:00 +02:00
.gitignore Add Makefile 2023-08-19 02:15:18 +02:00
LICENSE Add LICENSE 2023-05-04 21:46:52 +02:00
Makefile Fix blog index not rebuilt on new blog post 2023-11-04 15:59:15 +01:00
README.md Update README.md 2023-09-25 02:38:00 +02:00
deploy.sh Add Makefile 2023-08-19 02:15:18 +02:00
go.mod Use syntaxhighlighting package 2023-11-14 04:16:52 +01:00
go.sum Use syntaxhighlighting package 2023-11-14 04:16:52 +01:00
html.go WireGuard Port Forwarding 2023-09-25 02:38:00 +02:00
markdown.go Support titles which include : 2023-10-08 23:17:19 +02:00
renderer.go Add Makefile 2023-08-19 02:15:18 +02:00
sync-dev.sh Show rsync progress using -P 2023-10-08 21:08:34 +02:00
syntax.go Use syntaxhighlighting package 2023-11-14 04:16:52 +01:00

README.md

ekzyis.com

My personal website including blog.

Development

This site consists of only static HTML, CSS, JS in public/.

The files are built (or "rendered") with the golang text/template standard package. It doesn't use html/template since I had problems including HTML like a common header, navigation menu, footer for a reusable layout. But this shouldn't be a problem since there is no user-generated content (yet?).

To build the files, a Makefile is used.

Run make build to create the renderer binary.

Run make render to render all files in public/.

Deployment is done by rendering all files in production mode and then copying them where a webserver like nginx can serve them.

I use deploy.sh for this.

How to create new blog post

  1. Create new Markdown file in blog/
  2. It needs to have this header:
Title:        title
Date:         date
ReadingTime:  time
Sats:         0
Comments:     comments

---
  1. Update ComputeTitle in html.go (TODO: make this no longer required)
  2. Run make render.

Done!