updates to styles and hugo version

master
Adam Veldhousen 4 years ago
parent e9e7ae17f0
commit b71e9ae9b2
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B

@ -16,7 +16,7 @@ RUN useradd -m -u 1000 -U -p '' -s /bin/bash hugo \
&& mkdir -p /opt/workdir \ && mkdir -p /opt/workdir \
&& chown -R 1000:1000 /home/hugo /opt/workdir /usr/local/bin/hugo && chown -R 1000:1000 /home/hugo /opt/workdir /usr/local/bin/hugo
USER hugo USER 1000
WORKDIR /opt/workdir WORKDIR /opt/workdir

@ -2,6 +2,7 @@
title: "{{ replace .Name "-" " " | title }}" title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }} date: {{ .Date }}
draft: true draft: true
tags: []
--- ---
Headers Headers
@ -93,8 +94,6 @@ Syntax highlighting
} }
``` ```
Example code Example code
```go ```go

@ -1,5 +1,6 @@
@import "nav"; @import "nav";
@import "list"; @import "list";
@import "syntax";
html, html,
body { body {
@ -23,7 +24,7 @@ p {
max-width: 1280px; max-width: 1280px;
margin: 0 auto; margin: 0 auto;
display: grid; display: grid;
grid-template-columns: 5fr 1.5fr; grid-template-columns: 3fr 1fr;
} }
#header { #header {
@ -48,3 +49,16 @@ p {
grid-column-end: 3; grid-column-end: 3;
font-size: 0.8rem; font-size: 0.8rem;
} }
.highlight {
line-height: 1.5em;
margin: 15px 0;
.chroma {
padding-right: 10px;
}
}
#openring {
margin: 35px 0;
}

@ -9,10 +9,10 @@ nav {
} }
.title { .title {
font-size: 0.8rem; font-size: 0.9rem;
} }
} }
#license { #license {
font-size: 0.8rem; font-size: 1rem;
} }

@ -29,17 +29,30 @@ summaryLength = 32
url = "https://git.vdhsn.com/adam/blog" url = "https://git.vdhsn.com/adam/blog"
[[menu.other]] [[menu.other]]
name = "keybase.io/aveldhousen" Title = "Find me on GitHub"
url = "https://keybase.io/aveldhousen"
[[menu.other]]
name = "github.com/adamveld12" name = "github.com/adamveld12"
url = "https://github.com/adamveld12" url = "https://github.com/adamveld12"
[[menu.other]]
Title = "Follow me on Keybase"
name = "keybase.io/aveldhousen"
url = "https://keybase.io/aveldhousen"
[[menu.other]] [[menu.other]]
name = "RSS" name = "RSS"
url = "/index.xml" url = "/index.xml"
[[menu.other]] [[menu.other]]
name = "Resume" name = "Resume"
url = "/resume_2019.pdf" url = "/resume_2019.pdf"
[markup]
[markup.highlight]
codeFences = true
guessSyntax = false
lineNoStart = 1
lineNos = true
lineNumbersInTable = true
noClasses = false
style = "monokai"
tabWidth = 4

@ -1,14 +1,13 @@
--- ---
title: "Git Tips - Lint + Test Pre-commit Hook" title: "Git Tips - Lint + Test Pre-commit Hook"
date: 2020-01-01T21:00:39Z date: 2020-01-01T21:00:39Z
tags: [git, bash, ] tags: [git, bash]
--- ---
One of my favorite inventions is a `pre-commit` hook that auto runs test and lint commands from a `makefile` or One of my favorite inventions is a `pre-commit` hook that auto runs test and lint commands from a `makefile` or
`package.json` if they're found: `package.json` if they're found:
```sh ```bash {linenos=table}
{{<highlight bash "linenos=table">}}
#!/usr/bin/env bash #!/usr/bin/env bash
if [ -f "$PWD/makefile" ] && [ ! -z "$(cat $PWD/makefile | grep '^lint:')" ]; then if [ -f "$PWD/makefile" ] && [ ! -z "$(cat $PWD/makefile | grep '^lint:')" ]; then
@ -26,7 +25,6 @@ elif [ -f "$PWD/package.json" ] && [ ! -z "$(cat $PWD/package.json | grep "^\"te
echo "running npm run test" echo "running npm run test"
npm run test npm run test
fi fi
{{</highlight>}}
``` ```
The `/usr/bin/env bash` piece ensures that the script has access to all of the environment variables you expect in your The `/usr/bin/env bash` piece ensures that the script has access to all of the environment variables you expect in your

@ -2,8 +2,8 @@
if [ -z "$(docker ps | grep hugo)" ]; then if [ -z "$(docker ps | grep hugo)" ]; then
exec docker run -it --rm --name hugo \ exec docker run -it --rm --name hugo \
-p 1313:1313 \ -p 1313:1313 \
-u ${UID}:${UID} \
-v $PWD:/opt/workdir \ -v $PWD:/opt/workdir \
-u 0 \
--entrypoint=/usr/local/bin/hugo hugo $@ --entrypoint=/usr/local/bin/hugo hugo $@
else else
exec docker exec -it hugo hugo $@ exec docker exec -it hugo hugo $@

Loading…
Cancel
Save