diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-01-09 08:07:03 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-01-09 08:07:03 -0500 |
| commit | 2ad28cbbfb4287164e7877923291bb18519688fc (patch) | |
| tree | 7a7dac539d2085cb72cd357246620f7f2021f5e8 /htdocs/software/samanthony.xyz.html | |
| parent | ebf4af075b194229dd1cf3163b1e3cec1f1d3a0d (diff) | |
| download | samanthony.xyz-2ad28cbbfb4287164e7877923291bb18519688fc.zip | |
replace repo contents with revamped site
Diffstat (limited to 'htdocs/software/samanthony.xyz.html')
| -rw-r--r-- | htdocs/software/samanthony.xyz.html | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/htdocs/software/samanthony.xyz.html b/htdocs/software/samanthony.xyz.html deleted file mode 100644 index dc0c38c..0000000 --- a/htdocs/software/samanthony.xyz.html +++ /dev/null @@ -1,50 +0,0 @@ -{{ define "title" }} - <title>software | samanthony.xyz</title> -{{ end }} - -{{ define "style" }} -<style> - h1, h2 { margin-bottom: 0px; } - h2 { - margin-top: 0px; - padding-left: 1em; - color: grey; - } -</style> -{{ end }} - -{{ define "body_content" }} - <header> - <h1>samanthony.xyz</h1> - <h2>This website</h2> - <hr> - </header> - <p> - Get a copy of the source code with - <code>git clone git://samanthony.xyz/samanthony.xyz.git</code>. - </p> - <p> - The site uses HTML templates to avoid tedium and for the ability to make - small changes across the entire site without editing multiple files. It uses - the html/template package included in Go's standard library. - </p> - <p> - A server is required to serve these templates. Once again Go provides with - the built in http package. This makes writing a web server extremely easy. - All you have to do is write a function to handle incoming requests and call - http.ListenAndServe(). Painless. - </p> - <p> - Since I'm running OpenBSD, TLS can be dealt with external to the webserver - by using relayd. As an aside, I encourage anyone looking for an operating - system to give OpenBSD a look. It's been an absolute pleasure to work with - so far. As long as you don't expect it to be exactly like a Linux-based - system (it's not), then not only is it more secure, but also - <em>easier to use</em> than something Linux-based. Even for a noob like - myself. Sane design and good documentation go a long way. - </p> - <p> - Inspiration was taken from httpd and the server runs chroot'd. When - serving content it also drops down to an unprivileged user with setuid. - </p> -{{ end }} |