Compare commits

..

No commits in common. "trunk" and "c843dca9a5647dd84bc2dd66964d787f708db640" have entirely different histories.

20 changed files with 106 additions and 595 deletions

View File

@ -1,41 +0,0 @@
kind: pipeline
type: kubernetes
name: PR Build
trigger:
event:
- push
- cron
steps:
- name: Build & Publish
image: plugins/kaniko
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: vdhsn/garden
tags:
- ${DRONE_COMMIT_SHA}
- ${DRONE_BRANCH}
---
kind: pipeline
type: kubernetes
name: Deploy
trigger:
event:
- promote
steps:
- name: Publish Latest
image: plugins/kaniko
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: vdhsn/garden
tags:
- latest

View File

@ -4,20 +4,10 @@ COPY . /opt/
WORKDIR /opt
RUN apk add --no-cache git hugo make && make build
RUN apk add --no-cache git hugo && \
hugo --verbose --minify --enableGitInfo
FROM nginx
# ARG SHA "local-dev"
# ARG BUILD_DATE "03-11-2022"
LABEL org.opencontainers.image.created ${BUILD_DATE}
LABEL org.opencontainers.image.source https://git.vdhsn.com/adam/garden.git
LABEL org.opencontainers.image.url https://git.vdhsn.com/adam/garden
LABEL org.opencontainers.image.revision ${SHA}
LABEL org.opencontainers.image.licenses MIT
LABEL org.opencontainers.image.authors "Adam Veldhousen <adam@vdhsn.com>"
COPY --from=builder /opt/public /usr/share/nginx/html
EXPOSE 80

View File

@ -1,15 +0,0 @@
# Garden
[![Build Status](https://ci.vdhsn.com/api/badges/adam/garden/status.svg?ref=refs/heads/trunk)](https://ci.vdhsn.com/adam/garden)
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/vdhsn/garden?style=for-the-badge)
![Website](https://img.shields.io/website?down_message=Outage&label=vdhsn.com&style=for-the-badge&up_message=Up&url=https%3A%2F%2Fvdhsn.com)
My attempt at digital gardening
## Developing
Mainline is `trunk`
To publish latest tag, Promote in Drone

View File

@ -1,25 +1,18 @@
baseURL = "https://vdhsn.com"
keywords = ["Adam Veldhousen", "blog", "software", "life", "health"]
author = "Adam Veldhousen"
languageCode = "en-us"
title = "Adam Veldhousen - Bit Garden"
title = "Adam Veldhousen - Raised Beds"
theme = "digitalgarden"
pygmentsStyle = "solarized-light" # solarized-light, -dark or -dark256
summaryLength = 32
enableRobotsTXT = true
enableEmoji = true
googleAnalytics = "UA-155338921-1"
googleAnalytics = "UA-PROPERTY_ID"
[params]
favicon = "/party-tp.gif"
webmentions = true
webmentionsToken = "ic1WKZMcnQjvAZzwdjSmpQ"
[markup]
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
codeFences = true
guessSyntax = false
@ -42,20 +35,10 @@ googleAnalytics = "UA-155338921-1"
url = '/health'
weight = 2
[[menu.main]]
name = 'Recipes'
url = '/recipes'
weight = 3
[[menu.main]]
name = 'Thinking'
url = '/thinking'
weight = 4
[[menu.main]]
name = 'Software'
url = '/software'
weight = 5
weight = 2
[[menu.social]]

View File

@ -4,28 +4,34 @@ title: Homepage
# Hello 👋
**I'm Adam V. and I build software for a living, and sometimes for fun. I love to learn new things and am curious about about the world.**
**Welcome to my digital garden!**
I'm Adam V. and I write software for a living, and sometimes for fun.
[Resume](/resume_2019.pdf) | PGP: [A466CEE1415C0B9C](/gpg.pub) | [My Git Server](https://git.vdhsn.com) | [The code for this blog](https://git.vdhsn.com/adam/garden)
[Resume](/resume_2019.pdf) | PGP: [A466CEE1415C0B9C](/gpg.pub) | [The code for this blog](https://git.vdhsn.com/adam/garden)
## Blogs I'm into lately
This is my attempt at a Digital Garden and public learning space. Things will shift and move over time here. The goal isn't to get traffic to this site, but to learn and grow through writing and and exposing my thoughts to the world.
- [Lethain](https://lethain.com/)
If you want to start collecting your ideas 💡, curate thought provoking & interesting content 💬&nbsp; and learn about gardening:
## Links
→ [History of digital gardens](https://maggieappleton.com/garden-history)
→ [Software](/software)
→ [Digital gardening awesome list](https://github.com/maggieappleton/digital-gardeners)
→ [Health](/health)
A digital garden is like a personal wiki and a knowledge database of thoughts and ideas. Similar to a traditional garden, a digital one will also container various kinds of content (plants), of which may even be unrelated to each other. Ideas are not refined, thoughts are not tailored. Here is an excellent write-up about the [history of digital gardens](https://maggieappleton.com/garden-history)
## Some blogs I'm into lately
Twitter, for some, is also equivalent to a digital garden. It lets you share thoughts and ideas with everyone. But how often do you go back to those tweets? Not often. That's why you need a space for your ideas on the internet **that you own**. Check out `Digital gardens let you cultivate your own little bit of the internet` [post](https://www.technologyreview.com/2020/09/03/1007716/digital-gardens-let-you-cultivate-your-own-little-bit-of-the-internet/) by MIT technology review
→ [Lethain](https://lethain.com/)
→ [Paul Graham](https://paulgraham.com/)
<hr />
Building your own digital garden is not a fad. It's a necessity. Tools like Roam Research, Obsidian and Notion provided means to interlink content, even over a graphical way. Still not sold? Check out [The Digital Garden](https://dev.to/jbranchaud/the-digital-garden-l10) by Josh Branchaud.
Start collecting your ideas 💡, curate thought provoking & interesting content 💬&nbsp; and learn.
[Learn more from a master gardener](https://github.com/maggieappleton/digital-gardeners)

View File

@ -1,8 +1,7 @@
---
title: Health
description: Health related notes. Physical, Mental, Spiritual, Social etc.
---
# Health :heart:
Mental, Physical, Emotional health and wellbeing.

View File

@ -1,155 +1,56 @@
---
title: "ADHD"
date: 2022-03-27T11:00:00-06:00
date: 2022-03-10T20:19:09-06:00
draft: true
tags: [health, mental]
---
Notes from:
<iframe style="border-radius:12px" src="https://open.spotify.com/embed/episode/4Ahg0IWnyDPpKwIrrogOis?utm_source=generator&t=1354233" width="100%" height="232" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"></iframe>
> Remember, all of us can improve our focus. The ability to focus is a skill that can and should be trained.
## What is ADHD
Used to be call ADD (Attention Deficit Disorder) - first appeared in standard medical literature in 1904.
Strong genetic component
- If you have a relative with ADHD, you are much more likely to have it.
- The closer the relative is related to you, the more likely you are to have it.
- 1 Parent = 25%
- 1 Fraternal twin = 75% etc
ADHD has nothing to do with intelligence or IQ. ]
Mid 80s started to rename ADD to ADHD - which has led to better diagnoses []
1 in 10 children have ADHD (10-12%). 50% will resolve with proper treatment. []
Increased levels of ADHD in adults recently. Smart phone use: email, text, social media pull attention in various directions at all times causing people to lose their ability to focus.
### Symptoms and Phenotypes:
- Lack of attention, focus, concentraion (intense laser focus on things that are enjoyable)
Attention: perception, how we percieve the sensory world. Hearing soundwaves, feel sensations etc. You only pay attention to some of those at a time AKA paying attention to those and ignoring others.
People with ADHD can also [Hyperfocus]() on things that they really enjoy. (ie kids playing video games for extended periods of time)
Much of life involves focusing on things we don't enjoy.
- Impulsivity
Impulse conrol: Limiting our perception, ignoring some of our sensory inputs.
- Poor time perception
Often running late or procrastinate. If given a deadline (and consequences are severe enough) often they can be very good at this. Other times, they can underestimate the time it takes to achieve goals.
Often have trouble sheduling activities to meet deadlines (ie finishing a set of tasks before lunch time, often not taking advantage of the time and obssessing about lunch)
- Poor organizational skills
Uses the [Pile system]() to organize things in physical space, basically piling things up in a way that only makes sense to them.
- Poor working memory
Working memory is the ability to keep specific info available for later use in the short term (ie someone tells you a series of items to order at a restaurant you may forget these before you ask the waiter).
People with ADHD often have great longer term memories.
> deficits in working memory is also a symptom of age related cognitive decline, and frontal lobe damage
## Physiology
Dopamine: (neromodulator - changes the way we percieve the world)
Creates a heightened state of focus. State of motivation, [Exteroception]().
Turns on areas that narrow visual and auditory focus.
More = narrowing of focus, less = less focus
Two neuro circuit networks/brain areas primarily involved with ADHD
- [Default Mode Network]():
Active when we're not doing anything, idling
These areas should all be active together
- Dorsal lateral prefontal cortex
- Posterior singular cortex
- lateral porietal lobe
In an ADHD sufferer (or even someone lacking sleep) these areas do not coordinate together effectively
- [Task Networks]():
Goal oriented brain areas
- Medial Prefontal cortex: shuts down impulsivity
These two areas communicate with each other. Without ADHD, these areas are anti-correlated (one activates while the other shutsdown, out of phase).
With ADHD, these areas are more coordinated/correlated.
> ie guitar, bass, drums playing together in way that sounds terrible (no harmony).
When someone w/ ADHD get's better, these brain circuits work better.
Dopamine acts as a conductor between these networks.
### Is Dopamine too low?
[2015 Spencer, Biological Psychology Low Dopamine Hypothesis]() - If dopamine is too low, unnecessary neurons in the brain fire that are unrelated to attention.
ADHD sufferers typically use stimulant drugs/chemicals to self medicate to increase dopamine (dopaminergic compounds):
- caffeine:
engages circuits directly that increase focus.
- cocaine
- amphetamines: Increased dopamine and norepinepherine and small bump in serotonin
- [ritaline](): first generation drug for ADHD. Methylphenadate - (similar to [Speed]())
- [adderal](): More commonly perscribed nowadays. Doesn't last in bloodstream as long.
Combo of amphetamine and dextro amphetamine. 25% of college students and up to 35% of all people between
17-30 are taking this on a regular basis to function in their life even though they are not diagnosed . This is higher than canabis consumption in this age group. [why is this the case recently?]()
- [modafinil]():
- cigarettes/vaping (nicotine):
in children you commonly see:
- preference for sugary foods and drinks
- video games
Consuming these will cause ADHD sufferers to acheive focus, people without ADHD just experience high energy (children lose their mins)
Are the brain areas not working properly even if dopamine is sufficient?
## How to improve
## Studies and other sources
-------------------------
# Default post template
## Writing tips
1. Find a good topic and commit to it
eg how to get started blogging
2. Make your goals and audience specific
Who is my Audience: eg People who want to start blogging, especially about technical topics, but havent done it yet.
What is my Goal: eg. Give people a concrete set of steps and pointers so they can get started.
3. Have a beginning, middle, and end
4. Get feedback and iterate
5. Add finishing touches: packaging, publication, and promotion
From [freeCodeCamp: How to write a great technical blog post][1]
[1]: https://www.freecodecamp.org/news/how-to-write-a-great-technical-blog-post-414c414b67f6/
## Syntax highlighting example
```go {linenos=table,hl_lines=[8,"15-17"],linenostart=199}
// GetTitleFunc returns a func that can be used to transform a string to
// title case.
//
// The supported styles are
//
// - "Go" (strings.Title)
// - "AP" (see https://www.apstylebook.com/)
// - "Chicago" (see https://www.chicagomanualofstyle.org/home.html)
//
// If an unknown or empty style is provided, AP style is what you get.
func GetTitleFunc(style string) func(s string) string {
switch strings.ToLower(style) {
case "go":
return strings.Title
case "chicago":
tc := transform.NewTitleConverter(transform.ChicagoStyle)
return tc.Title
default:
tc := transform.NewTitleConverter(transform.APStyle)
return tc.Title
}
}
```

View File

@ -1,9 +0,0 @@
---
title: "Recipes"
---
Food and drink recipes.
You bear the full responsibility for what happens to you by trying these.

View File

@ -1,59 +0,0 @@
---
title: "Introduction to Beer Brewing"
date: 2022-03-14T23:10:27-05:00
draft: true
tags: [beer, post]
---
Various tips and info on beer brewing
## Ingredients
- Water:
> Give or take, water makes up 90-96% of any beer recipe.
- Barely:
> Each recipe will be different, but youll be using around 2 lbs of malted barley or grains in most 1-gallon recipes.
- Hops:
> We use hops to add bitterness, and often, to add a floral flavour to the beer, both of which act to balance the sweetness of the malt.
- Yeast:
> These varieties can be categorized into two types: lager and ale yeasts. Lager yeasts ferment at colder temperatures, and ale yeasts at temperatures closer to room temperature.
## [Beer in a bag method][1]
1. Convert the malted barley into sugars by soaking them in a hot water bath. The official name for this process is called “the Mash”. In more advanced brewing, you would “sparge” or rinse the grains to extract more sugars, but for our method, well still make awesome beer without sparging.
2. Next comes “The Boil.” We remove the grains from the water and bring this sweet liquid to a boil. Well add bittering hops and let the whole thing boil for an hour. In some recipes, youll continue to add bittering hops throughout the boil. And if youre using aroma hops, youll add them at the end of the boil, once you have shut off the heat. What youre left with is a solution called “wort.” I know, its not the most appealing term, is it…
3. We then have to cool the wort to “pitching” temperature. This step is quite an important one. We cant take our sweet time bringing cooling our liquid to the temperature needed to add our yeast (usually in and around 20℃ or 68℉). We want to do this in about 30 minutes or less to avoid risks of contamination. This means well add our brewing pot to an ice batch in the sink to cool it quickly.
4. Add the yeast (aka “pitching the yeast”) and let it ferment. With the wort at the right temperature, we transfer it to a fermenting vessel (in our case, a 1-gallon glass carboy, which well discuss in more detail later this week), add the yeast to the wort, which in brew-speak is called “pitching the yeast.” Seal the carboy with an airlock, store in a dry, dark, cool spot and let mother nature do her thing.
5. Bottle your beer and let it condition. After two weeks, our beer will be ready for bottling. All yeasts will have consumed most of the sugars and converted the wort into flat beer. Of course, we want bubbles! So, well transfer the wort to a bottling bucket with a small dose of sugar and then transfer that new solution to individual bottles. This will allow residual yeast to snack on the sugars and in so doing, carbonate the beer. This process will take at least two weeks, but youll probably want to wait 30 days before opening your first bottle.
Advantages and Disadvantages
Some of the advantages of the brew in a bag method include:
- Equipment Cost If you have a large brew pot already, the only additional equipment needed is a bag, which you can make yourself if you have access to a sewing machine.
- Simplicity Brew in a bag lets you move to all grain or partial mash brewing in a simple way, and the method itself is very simple to set up and execute, even with limited space.
The limitations include:
- Batch Size All of the grains have to fit in the bag, and the bag has to be lifted out without breaking, so this does place some limitations on high gravity batches. However with a properly stitched grain bag, double batches are possible though a pulley may be desirable.
- Efficiency Since BIAB is a full volume method, you will lose a few percent efficiency overall batch efficiency is usually lower than with fly sparge methods. However, this can easily be compensated by adding a little more grain to the batch and formulating your recipes with the appropriate lower brewhouse efficiency estimate. Experienced BIAB brewers have reported efficiency as high as 80% in some cases.
- High Water to Grain Ratio Mashing at a high water to grain ratio, as is the case here, results in lower levels of beta-amalyse, resulting in more dextrines in the finished beer. This can translate to higher body than desired at the high end of the mash temperature range (156-158F). Conversely, the thin mash also works poorly at the low end (148-150F), creating dry beer. In general BIAB works best in the mid mash temperature range (150-156F). Finally, if you are brewing a beer high in non-barley adjuncts such as flaked wheat, BIAB may not be the best option. (Ref: BN Article on BIAB)
## [Non alcoholic beer][4]
[1]: https://www.beercraftr.com/learn-to-brew-beer/
[2]: https://www.popsci.com/science/article/2012-11/beersci-marijuana-related-hops/
[3]: http://beersmith.com/blog/2009/04/14/brew-in-a-bag-biab-all-grain-beer-brewing/
[4]: https://byo.com/article/brew-a-great-non-alcoholic-beer/

View File

@ -1,27 +1,4 @@
---
title: Software
description: Software I use
---
# Software 'n' stuff :computer:
This section is all about software related topics
Below are some links that I've found useful around the web lately.
### Kubernetes
- [Kubernetes in Production: The Ultimate Guide to Monitoring Resource Metrics with Prometheus](https://www.replex.io/blog/kubernetes-in-production-the-ultimate-guide-to-monitoring-resource-metrics)
- [K8s Monitor Pod CPU and memory usage with Prometheus](https://itnext.io/k8s-monitor-pod-cpu-and-memory-usage-with-prometheus-28eec6d84729)
- [Understanding machine cpu usage](https://www.robustperception.io/understanding-machine-cpu-usage)
### Digital Garden templates
- [doubleloop digital garden](https://commonplace.doubleloop.net/digital-garden) (I like the template :grin:)
### Tools
- [Netshoot](https://github.com/nicolaka/netshoot)

View File

@ -1,39 +0,0 @@
---
title: "Etcd data loss"
date: 2022-03-15T13:00:00Z
tags: [kubernetes, ops, etcd, homelab]
draft: false
---
After executing `systemctl reboot` I noticed that my k8s cluster would not come back up.
Digging around in the container logs I found an error in the etcd container:
```
etcd panic: freepages: failed to get all reachable pages
goroutine 112 [running]:
github.com/coreos/etcd/cmd/vendor/github.com/coreos/bbolt.(*DB).freepages.func2(0xc42007e720)
/tmp/etcd-release-3.3.10/etcd/release/etcd/gopath/src/github.com/coreos/etcd/cmd/vendor/github.com/coreos/bbolt/db.go:976 +0xfb
created by github.com/coreos/etcd/cmd/vendor/github.com/coreos/bbolt.(*DB).freepages
/tmp/etcd-release-3.3.10/etcd/release/etcd/gopath/src/github.com/coreos/etcd/cmd/vendor/github.com/coreos/bbolt/db.go:974 +0x1b7
```
I then found [this github issue in etcd][1] and [a very good comment in another][2], leading me to believe this was caused by
powering down my server without gracefully shutting down etcd.
This is the price I pay for running a single node etcd cluster :sad:.
In the perfect world I would want my k8s homelab setup to:
1. Run a full HA etcd cluster
2. Do rolling shutdowns of the servers for updates
3. Regularly backup `/var/lib/etcd`
Meantime, all of the terraform, longhorn backups and fluxcd work I have done are about to pay off. :grin:
[1]: https://github.com/etcd-io/etcd/issues/10722
[2]: https://github.com/kubernetes/kubernetes/issues/88574#issuecomment-591931659

View File

@ -1,82 +0,0 @@
---
title: "Fresh Arch Linux Software Installation List"
date: 2022-03-27T21:00:00Z
tags: [linux, software]
draft: false
---
A listing of software that I use for my Arch linux installs on my laptop.
> ?: unsure of the package name or where it comes from
## Package management
1. yay
1. Flatpak
1. AppImage
## Hardware utiils (Networking, Audio, Bluetooth)
1. iwctl
1. pipewire
1. playerctl
1. pavucontrol
1.
## Desktop environment
1. Sway
1. Waybar
1. drun
1. D-Feet
1. Seahorse
1. blueman
1. [Emptty](https://github.com/tvrzna/emptty) (instead of LightDM)
1. xdg-utils
1. dconf-editor ?
1. fontconfig ?
1. tlp
1. gnome-keyring-daemon ?
## Development
1. docker
1. podman
1. terminator
1. Wezterm
1. Visual Studio Code
1. asdf
1. [Brew]()
1. [Kind]()
1. age
1. sops
1. make
1. Rust
1. Golang
1. Ruby
1. Python 3
1.
## Other apps
1. Spotify
1. OBS
1. Firefox Developer Edition
1. Google Chrome
1. Discord
1. Steam
1. Keybase
1. Insomnia
1. Unity
1. epson-inkjet-printer-escpr
1. htop
1. ntop
1. powertop
1. iotop
1. neofetch
1. wl-clipboard
1. youtube-dl

View File

@ -0,0 +1,22 @@
---
title: "Reading List"
date: 2022-03-09
draft: false
description: Cookie sweet donut candy pastry apple dolor orange lollipop biscuit. Muffin cream ipsum ipsum sprinkles sugar tiramisu pastry sweet tiramisu.
---
## Kubernetes
- [Kubernetes in Production: The Ultimate Guide to Monitoring Resource Metrics with Prometheus](https://www.replex.io/blog/kubernetes-in-production-the-ultimate-guide-to-monitoring-resource-metrics)
- [K8s Monitor Pod CPU and memory usage with Prometheus](https://itnext.io/k8s-monitor-pod-cpu-and-memory-usage-with-prometheus-28eec6d84729)
- [Understanding machine cpu usage](https://www.robustperception.io/understanding-machine-cpu-usage)
## Digital Garden templates
- []()
- [](https://commonplace.doubleloop.net/digital-garden)
## Tools
- [Netshoot](https://github.com/nicolaka/netshoot)

View File

@ -1,21 +0,0 @@
---
title: "Trunk_branches"
description: "Usefult organization, communication and problem solving frameworks"
date: 2022-03-12T12:42:49-06:00
draft: true
tags: [management, programming, career]
---
### Trunk and Branches Model
> Source: [Trunk and Branches on lethain.com](https://lethain.com/trunk-and-branches/)
### MECE
> [MECE Priniple](https://en.wikipedia.org/wiki/MECE_principle)
### Minto Framework
> [Minto Framework]()
### RACI Model
> [RACI Model](https://en.wikipedia.org/wiki/Responsibility_assignment_matrix)

View File

@ -1,18 +0,0 @@
---
title: Thinking
---
# Thinking :brain:
Thought frameworks, productivity, philosophy, and other thoughty stuff.
### [PARA](https://fortelabs.co/blog/para/)
Projects, Areas, Reasearch, Archives
![Projects, Areas, Reasearch, Archives](https://i0.wp.com/cdn-images-1.medium.com/max/800/1*i6I0M5kaZUOwIfq5q5W4mQ.jpeg?w=900&ssl=1)
### [Minto Framework]()
### [RACI]()

View File

@ -1,24 +1,18 @@
{{ define "main" }}
{{ $description := .Description }}
<div class="flex h-screen relative">
<section
class="w-full h-full md:min-w-[400px] md:w-1/4 bg-slate-50 dark:bg-slate-800 border-r border-slate-200 dark:border-slate-700 flex flex-col py-3 overflow-y-auto scroll-area">
<a href="{{ .Permalink }}">
<h2 class="font-bold mb-5 py-1 pl-12 pr-3 md:px-3">
{{ if .Content }}
Topics
{{ else }}
{{ .Title }}
{{ end }}
</h2>
<h2 class="font-bold mb-5 py-1 pl-12 pr-3 md:px-3">{{ .Title }}</h2>
</a>
<ul class="space-y-2.5">
<div class="space-y-2.5">
{{ range .Data.Pages -}}
<li>
<a class="block px-3 py-4 hover:bg-slate-200 dark:hover:bg-slate-700" href="{{ .RelPermalink }}">
{{ $description := .Params.Description }}
{{ $title := .Params.title }}
{{ $title := .Params.title }}
{{ with .Params.images }}
{{- range first 1 . }}
<img class="rounded max-w-full mb-4" src="{{ . }}" alt="{{ $title }}" />
@ -26,27 +20,16 @@
{{ end }}
<h3 class="text-lg font-semibold mb-0.5">{{ $title }}</h3>
<div class="text-sm text-slate-500 dark:text-slate-400 line-clamp-2">
{{ .Summary }}
{{ $description }}
</div>
</a>
</li>
{{ end -}}
</ul>
</div>
</section>
<main class="h-screen overflow-y-auto w-full">
<div class="px-6 py-20 w-full lg:w-[580px] mx-auto prose dark:prose-invert h-fit prose-img:mx-auto">
{{ if .Content }}
{{ .Content }}
{{ else }}
<!-- <h1>{{ .Title }}</h1> -->
<p class="text-center p-8 text-2xl text-slate-300 dark:text-slate-700">Select a post to read on the left</p>
{{ end}}
</div>
<main class="hidden md:grid h-screen place-items-center flex-1">
<p class="text-center p-8 text-2xl text-slate-300 dark:text-slate-700">Select a post to read</p>
</main>
</div>
{{ end }}

View File

@ -1,63 +0,0 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="{{ if (isset .Site.Params "favicon") }}{{ .Site.Params.favicon }}{{ else }}/favicon.ico{{ end }}">
<title>
{{ block "title" . }} {{- .Title }} - {{ .Site.Title -}} {{ end }}
</title>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}" />
{{- if .Keywords }}
<meta name="keywords" content="{{ delimit .Keywords "," }}" />
{{ end -}}
{{- if .Params.Author }}
<meta name="author" content="{{ .Params.Author}}" />
{{ end -}}
{{ hugo.Generator }}
<link rel="stylesheet" href="{{ "/css/main.css" | absURL}}" />
<!-- Katex support -->
{{ if .Params.math }}
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.css"
integrity="sha384-D+9gmBxUQogRLqvARvNLmA9hS2x//eK1FhVb9PiU86gmcrBrJAQT8okdJ4LMp2uv"
crossorigin="anonymous"
>
<script defer
src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.js"
integrity="sha384-483A6DwYfKeDa0Q52fJmxFXkcPCFfnXMoXblOkJ4JcA8zATN6Tm78UNL72AKk+0O"
crossorigin="anonymous"
></script>
<script defer
src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/contrib/auto-render.min.js"
integrity="sha384-yACMu8JWxKzSp/C1YV86pzGiQ/l1YUfE8oPuahJQxzehAjEt2GiQuy/BIvl9KyeF"
crossorigin="anonymous"
onload="renderMathInElement(document.body);"
></script>
{{ end }}
{{ if and (isset .Site.Params "webmentions") .Site.Params.webmentions }}
{{ $webmention_username := strings.TrimPrefix "http://" (strings.TrimPrefix "https://" .Site.BaseURL) }}
<link rel="webmention" href="https://webmention.io/{{ $webmention_username }}/webmention" />
<link rel="pingback" href="https://webmention.io/{{ $webmention_username }}/xmlrpc" />
{{ end }}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/schema.html" . }}
{{ template "_internal/schema.html" . }}
</head>

View File

@ -1,4 +1,4 @@
<svg class="h-4 w-4" viewBox="0 0 448 512" fill="none" stroke="currentColor" stroke-width="40"
<svg class="h-4 w-4" viewBox="0 0 448 512" fill="none" stroke="white" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" >
<!--! Font Awesome Pro 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
<path d="M286.17 419a18 18 0 1 0 18 18 18 18 0 0 0-18-18zm111.92-147.6c-9.5-14.62-39.37-52.45-87.26-73.71q-9.1-4.06-18.38-7.27a78.43 78.43 0 0 0-47.88-104.13c-12.41-4.1-23.33-6-32.41-5.77-.6-2-1.89-11 9.4-35L198.66 32l-5.48 7.56c-8.69 12.06-16.92 23.55-24.34 34.89a51 51 0 0 0-8.29-1.25c-41.53-2.45-39-2.33-41.06-2.33-50.61 0-50.75 52.12-50.75 45.88l-2.36 36.68c-1.61 27 19.75 50.21 47.63 51.85l8.93.54a214 214 0 0 0-46.29 35.54C14 304.66 14 374 14 429.77v33.64l23.32-29.8a148.6 148.6 0 0 0 14.56 37.56c5.78 10.13 14.87 9.45 19.64 7.33 4.21-1.87 10-6.92 3.75-20.11a178.29 178.29 0 0 1-15.76-53.13l46.82-59.83-24.66 74.11c58.23-42.4 157.38-61.76 236.25-38.59 34.2 10.05 67.45.69 84.74-23.84.72-1 1.2-2.16 1.85-3.22a156.09 156.09 0 0 1 2.8 28.43c0 23.3-3.69 52.93-14.88 81.64-2.52 6.46 1.76 14.5 8.6 15.74 7.42 1.57 15.33-3.1 18.37-11.15C429 443 434 414 434 382.32c0-38.58-13-77.46-35.91-110.92zM142.37 128.58l-15.7-.93-1.39 21.79 13.13.78a93 93 0 0 0 .32 19.57l-22.38-1.34a12.28 12.28 0 0 1-11.76-12.79L107 119c1-12.17 13.87-11.27 13.26-11.32l29.11 1.73a144.35 144.35 0 0 0-7 19.17zm148.42 172.18a10.51 10.51 0 0 1-14.35-1.39l-9.68-11.49-34.42 27a8.09 8.09 0 0 1-11.13-1.08l-15.78-18.64a7.38 7.38 0 0 1 1.34-10.34l34.57-27.18-14.14-16.74-17.09 13.45a7.75 7.75 0 0 1-10.59-1s-3.72-4.42-3.8-4.53a7.38 7.38 0 0 1 1.37-10.34L214 225.19s-18.51-22-18.6-22.14a9.56 9.56 0 0 1 1.74-13.42 10.38 10.38 0 0 1 14.3 1.37l81.09 96.32a9.58 9.58 0 0 1-1.74 13.44zM187.44 419a18 18 0 1 0 18 18 18 18 0 0 0-18-18z"/>

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -43,7 +43,7 @@
{{ range .Site.Menus.social }}
<li>
<a class="px-2 py-1.5 rounded-md text-sm block text-slate-800 dark:text-slate-50 {{ if eq (.URL|absURL) $permalink }} bg-slate-800 text-white dark: {{ else }} hover:bg-slate-200 dark:hover:bg-slate-700 {{ end }}"
href="{{ .URL }}" target="_blank" rel="me noopener noreferrer">
href="{{ .URL }}" target="_blank" rel="noopener noreferrer">
<span class="sr-only">{{ .Name }}</span>
{{ if eq .Name "GitHub" }}
<span>{{- partial "icon/githubIcon.html" . -}}</span>

View File

@ -15,12 +15,9 @@ publish:
--label="org.opencontainers.image.revision=${SHA}" \
--label="org.opencontainers.image.licenses=MIT" \
--label="org.opencontainers.image.authors=Adam Veldhousen <adam@vdhsn.com>" \
-t vdhsn/garden:latest \
-t vdhsn/garden:${SHA} \
.
-t vdhsn/garden:latest .
docker push vdhsn/garden:latest
docker push vdhsn/garden:${SHA}
build:
hugo --verbose --minify --enableGitInfo