updates to styles and hugo version
parent
e9e7ae17f0
commit
b71e9ae9b2
|
|
@ -16,7 +16,7 @@ RUN useradd -m -u 1000 -U -p '' -s /bin/bash hugo \
|
|||
&& mkdir -p /opt/workdir \
|
||||
&& chown -R 1000:1000 /home/hugo /opt/workdir /usr/local/bin/hugo
|
||||
|
||||
USER hugo
|
||||
USER 1000
|
||||
|
||||
WORKDIR /opt/workdir
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
tags: []
|
||||
---
|
||||
Headers
|
||||
|
||||
|
|
@ -93,8 +94,6 @@ Syntax highlighting
|
|||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
Example code
|
||||
|
||||
```go
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
@import "nav";
|
||||
@import "list";
|
||||
@import "syntax";
|
||||
|
||||
html,
|
||||
body {
|
||||
|
|
@ -23,7 +24,7 @@ p {
|
|||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 5fr 1.5fr;
|
||||
grid-template-columns: 3fr 1fr;
|
||||
}
|
||||
|
||||
#header {
|
||||
|
|
@ -48,3 +49,16 @@ p {
|
|||
grid-column-end: 3;
|
||||
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 {
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
#license {
|
||||
font-size: 0.8rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
|
|
|||
23
config.toml
23
config.toml
|
|
@ -29,17 +29,30 @@ summaryLength = 32
|
|||
url = "https://git.vdhsn.com/adam/blog"
|
||||
|
||||
[[menu.other]]
|
||||
name = "keybase.io/aveldhousen"
|
||||
url = "https://keybase.io/aveldhousen"
|
||||
|
||||
[[menu.other]]
|
||||
Title = "Find me on GitHub"
|
||||
name = "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]]
|
||||
name = "RSS"
|
||||
url = "/index.xml"
|
||||
|
||||
[[menu.other]]
|
||||
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"
|
||||
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
|
||||
`package.json` if they're found:
|
||||
|
||||
```sh
|
||||
{{<highlight bash "linenos=table">}}
|
||||
```bash {linenos=table}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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"
|
||||
npm run test
|
||||
fi
|
||||
{{</highlight>}}
|
||||
```
|
||||
|
||||
The `/usr/bin/env bash` piece ensures that the script has access to all of the environment variables you expect in your
|
||||
|
|
|
|||
Loading…
Reference in New Issue