diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.html | 14 | ||||
| -rw-r--r-- | templates/layouts/default.html | 24 | ||||
| -rw-r--r-- | templates/layouts/header.html | 7 | ||||
| -rw-r--r-- | templates/post.html | 3 |
4 files changed, 32 insertions, 16 deletions
diff --git a/templates/index.html b/templates/index.html index 8f07cc0..e84a09e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,7 +5,7 @@ <li>lang: go</li> <li>infra: kubernetes</li> </ul> - <h2>daily learnings</h2> + <h2>tidbits</h2> <h3>#go</h3> <ul> <li>layout packages by what they do, not by their abstract type</li> @@ -19,15 +19,25 @@ </li> <li>don't use <code>init()</code></li> <li>TFBO (test, fix, benchmark, optimise)</li> + <li>more CPU != more performance + <br/> + more CPU == more Contention + </li> </ul> <h3>#git</h3> <ul> - <li><code>git commit --fixup=<COMMITSH></code> + <li><code>git reflog</code></li> + <li><code>git commit --fixup=<COMMITISH></code> <br /> <code>git rebase origin/main --autosquash</code> </li> </ul> + <h2>resources</h2> + <ul> + <li><a href=https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/runtime/proc.go><code>proc.go</code></a></li> + <li><a href=https://github.com/golang/go/issues/67120>proposal: runtime/metrics: define a recommended set of metrics</a></li> + </ul> <h2>books</h2> <ul> <li><a href=https://www.oreilly.com/library/view/designing-data-intensive-applications/9781491903063 />Designing diff --git a/templates/layouts/default.html b/templates/layouts/default.html index b12c520..8275843 100644 --- a/templates/layouts/default.html +++ b/templates/layouts/default.html @@ -21,16 +21,18 @@ max-width: 70ch; font-family: "Mono"; } + pre { font-family: "Mono"; color: crimson; background-color: #f1f1f1; padding: 2px; - } - pre code { - background: none; - } + } + + pre code { + background: none; + } code { font-family: "Mono"; @@ -51,9 +53,19 @@ </head> <body> - {{ template "header.html" . }} + <h1>a73x</h1> + <nav> + <ul> + <li><a href="/">home</a></li> + <li><a href="/posts.html">posts</a></li> + </ul> + </nav> {{ template "content" . }} + <footer> + <br /><hr /><br /> + <p>see something you disagree with? Email: <a href="mailto:[email protected]">[email protected]</a></p> + </footer> </body> </html> -{{end}} +{{end}}
\ No newline at end of file diff --git a/templates/layouts/header.html b/templates/layouts/header.html deleted file mode 100644 index f1d2d18..0000000 --- a/templates/layouts/header.html +++ /dev/null @@ -1,7 +0,0 @@ -<h1>a73x</h1> -<nav> - <ul> - <li><a href="/">home</a></li> - <li><a href="/posts.html">posts</a></li> - </ul> -</nav> diff --git a/templates/post.html b/templates/post.html index 69c17e2..0a6cc6e 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,5 +1,6 @@ {{template "base" .}} {{define "content"}} -{{ . }} +<h1>{{.Title}}</h1> +{{ .Post }} {{end}} |
