Browse Source

updates to styles and hugo version

master
Adam Veldhousen 1 month ago
parent
commit
b71e9ae9b2
No known key found for this signature in database
7 changed files with 40 additions and 16 deletions
  1. 1
    1
      Dockerfile.dev
  2. 1
    2
      archetypes/default.md
  3. 15
    1
      assets/css/layout.scss
  4. 2
    2
      assets/css/nav.scss
  5. 18
    5
      config.toml
  6. 2
    4
      content/posts/git-tips-lint-test-precommit-hook.md
  7. 1
    1
      hugo

+ 1
- 1
Dockerfile.dev View File

@@ -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


+ 1
- 2
archetypes/default.md View File

@@ -2,6 +2,7 @@
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
tags: []
---
Headers

@@ -93,8 +94,6 @@ Syntax highlighting
}
```


Example code

```go

+ 15
- 1
assets/css/layout.scss View File

@@ -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;
}

+ 2
- 2
assets/css/nav.scss View File

@@ -9,10 +9,10 @@ nav {
}

.title {
font-size: 0.8rem;
font-size: 0.9rem;
}
}

#license {
font-size: 0.8rem;
font-size: 1rem;
}

+ 18
- 5
config.toml View File

@@ -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

+ 2
- 4
content/posts/git-tips-lint-test-precommit-hook.md View File

@@ -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

+ 1
- 1
hugo View File

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

Loading…
Cancel
Save