diff options
| -rw-r--r-- | public/ethos.html | 42 | ||||
| -rw-r--r-- | public/index.html | 42 | ||||
| -rw-r--r-- | public/posts.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-08-25-01.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-08-25-02.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-08-25-03.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-08-26-01.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-08-31-01.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-09-04-01.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-09-08-01.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-11-09-01.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-12-08-01.html | 42 | ||||
| -rw-r--r-- | public/posts/2024-12-08-02.html | 47 | ||||
| -rw-r--r-- | public/static/styles.css | 11 | ||||
| -rw-r--r-- | templates/layouts/_default.html | 30 |
15 files changed, 330 insertions, 262 deletions
diff --git a/public/ethos.html b/public/ethos.html index c23291e..8074b39 100644 --- a/public/ethos.html +++ b/public/ethos.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>ethos</h1> <h3 id="this-site-has-an-ethos">This Site Has an Ethos</h3> diff --git a/public/index.html b/public/index.html index de115be..0c0e403 100644 --- a/public/index.html +++ b/public/index.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>home</h1> <p>Welcome!</p> diff --git a/public/posts.html b/public/posts.html index af96d3f..19e8928 100644 --- a/public/posts.html +++ b/public/posts.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>posts</h1> <ul> diff --git a/public/posts/2024-08-25-01.html b/public/posts/2024-08-25-01.html index 91f5a84..1ece8bc 100644 --- a/public/posts/2024-08-25-01.html +++ b/public/posts/2024-08-25-01.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>Go Benchmarking</h1> <nav> diff --git a/public/posts/2024-08-25-02.html b/public/posts/2024-08-25-02.html index 541697b..d94dde8 100644 --- a/public/posts/2024-08-25-02.html +++ b/public/posts/2024-08-25-02.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>Go Project Layouts</h1> <p>Do you lay awake at night and consider how to optimally layout your Go project? diff --git a/public/posts/2024-08-25-03.html b/public/posts/2024-08-25-03.html index d3fa17c..958e495 100644 --- a/public/posts/2024-08-25-03.html +++ b/public/posts/2024-08-25-03.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>Levels of Optimisation</h1> <nav> diff --git a/public/posts/2024-08-26-01.html b/public/posts/2024-08-26-01.html index 547e86c..bf8958c 100644 --- a/public/posts/2024-08-26-01.html +++ b/public/posts/2024-08-26-01.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>Writing HTTP Handlers</h1> <p>I’m sharing how I write handlers in Go.</p> diff --git a/public/posts/2024-08-31-01.html b/public/posts/2024-08-31-01.html index 955c4d0..63ae11c 100644 --- a/public/posts/2024-08-31-01.html +++ b/public/posts/2024-08-31-01.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>Go's unique pkg</h1> <p><a href="https://pkg.go.dev/unique">https://pkg.go.dev/unique</a></p> diff --git a/public/posts/2024-09-04-01.html b/public/posts/2024-09-04-01.html index 248ec34..e45a1e8 100644 --- a/public/posts/2024-09-04-01.html +++ b/public/posts/2024-09-04-01.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>Kubernetes Intro</h1> <nav> diff --git a/public/posts/2024-09-08-01.html b/public/posts/2024-09-08-01.html index ade7fdf..c42980b 100644 --- a/public/posts/2024-09-08-01.html +++ b/public/posts/2024-09-08-01.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>Building a Static Site with Hugo and Docker</h1> <nav> diff --git a/public/posts/2024-11-09-01.html b/public/posts/2024-11-09-01.html index a79f7e4..f76b944 100644 --- a/public/posts/2024-11-09-01.html +++ b/public/posts/2024-11-09-01.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>Refactoring</h1> <nav> diff --git a/public/posts/2024-12-08-01.html b/public/posts/2024-12-08-01.html index 919339c..fec317b 100644 --- a/public/posts/2024-12-08-01.html +++ b/public/posts/2024-12-08-01.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>Simplifying Interfaces with Function Types</h1> <p>In Go, you can define methods on type aliases, which means that we can define a type alias of a function, and then define methods on that function.</p> diff --git a/public/posts/2024-12-08-02.html b/public/posts/2024-12-08-02.html index f4e67c4..0c5ca17 100644 --- a/public/posts/2024-12-08-02.html +++ b/public/posts/2024-12-08-02.html @@ -15,25 +15,29 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - - - <li><a class="no-decorations" href="/">home</a></li> - - - - <li><a class="no-decorations" href="/posts">posts</a></li> - - - - <li><a class="no-decorations" href="/ethos">ethos</a></li> - - - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + + + <li><a class="no-decorations" href="/">home</a></li> + + + + <li><a class="no-decorations" href="/posts">posts</a></li> + + + + <li><a class="no-decorations" href="/ethos">ethos</a></li> + + + </ul> + </nav> + </div> <h1>You and Your Career</h1> <blockquote> @@ -49,10 +53,11 @@ <li>Doing significant work often involves an element of luck, but as Hamming puts it, ‘luck favours the prepared mind’. Being in the right place at the right time will only matter if you have the knowledge or skills to execute. Creating opportunities is important but wasted if you aren’t ready to perform. Conversely, having the ability to perform but no opportunities can feel just as futile. The key lies in striking a balance—cultivating both readiness and the conditions where luck can find you.</li> <li>Knowledge and productivity are like compound interest—consistent effort applied over time leads to exponential growth. In a field as vast as software, even a surface-level awareness of an idea can prove valuable when the time comes to use it, while deeper understanding builds expertise. Mastering the fundamentals is crucial; they are learned once and applied repeatedly in various contexts.</li> <li>Maintain enough self-belief to persist, but enough self-awareness to recognise and adapt to mistakes. Software is more akin to an art than a science—there are no perfect solutions, only trade-offs. Success often lies in minimising the disadvantages rather than chasing absolutes.</li> -<li>To do important work, focus on important problems. What do you care about deeply? How can you work to address it? The answer is personal, but taking time to reflect is crucial.</li> +<li>To do important work, focus on important problems. What do you care about deeply? How can you work to address it? The answer is personal, but I think there’s great importance is reflecting on it, even if the answer changes.<br> +</li> </ol> -<p>These aren’t all the points Hamming raises, but some points that stuck with me; I highly recommend listening to the talk yourself so that you may draw your own conclusions.</p> +<p>These aren’t all the points Hamming raises, but they are some of the points that stuck with me; I highly recommend listening to the talk yourself so that you may draw your own conclusions.</p> <p>The average career is only 80,000 hours, so spend it well.</p> diff --git a/public/static/styles.css b/public/static/styles.css index 32ec67e..7259353 100644 --- a/public/static/styles.css +++ b/public/static/styles.css @@ -51,6 +51,17 @@ main { margin-right: auto; } +.header { + display: flex; + justify-content: space-between; +} + +.header-title { + +} +.nav { + align-self: center; +} .nav ul { display: flex; list-style: none; diff --git a/templates/layouts/_default.html b/templates/layouts/_default.html index 4ea8888..dfc5a7e 100644 --- a/templates/layouts/_default.html +++ b/templates/layouts/_default.html @@ -15,19 +15,23 @@ <body> <main> - <h1>a73x</h1> - <sub>high effort, low reward</sub> - <nav class="nav"> - <ul> - {{ range $vvv, $navPair:= .Nav}} - {{ if eq $.Path $navPair.Path }} - <li><a href="{{$navPair.Path}}">{{$navPair.Title}}</a></li> - {{else}} - <li><a class="no-decorations" href="{{$navPair.Path}}">{{$navPair.Title}}</a></li> - {{end}} - {{end}} - </ul> - </nav> + <div class="header"> + <div class="header-title"> + <h1>a73x</h1> + <sub>high effort, low reward</sub> + </div> + <nav class="nav"> + <ul> + {{ range $vvv, $navPair:= .Nav}} + {{ if eq $.Path $navPair.Path }} + <li><a href="{{$navPair.Path}}">{{$navPair.Title}}</a></li> + {{else}} + <li><a class="no-decorations" href="{{$navPair.Path}}">{{$navPair.Title}}</a></li> + {{end}} + {{end}} + </ul> + </nav> + </div> {{ template "content" . }} <footer> <br /> |
