Personal web presence
https://pat-s.me
- JavaScript 86.6%
- CSS 7.5%
- HTML 5.3%
- Rebol 0.3%
- Just 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .crow | ||
| assets | ||
| content | ||
| fontawesome | ||
| layouts | ||
| static | ||
| themes | ||
| .editorconfig | ||
| .editorconfig-checker.json | ||
| .gitignore | ||
| .gitmodules | ||
| .hugo_build.lock | ||
| .lycheeignore | ||
| .markdownlint.yaml | ||
| .pre-commit-config.yaml | ||
| .prettierignore | ||
| .prettierrc.json | ||
| .yamllint | ||
| config.toml | ||
| go.mod | ||
| go.sum | ||
| index.Rmd | ||
| Justfile | ||
| Makefile | ||
| netlify.toml | ||
| pat-s_web.Rproj | ||
| README.md | ||
| renovate.json | ||
README
Deployed on a small VPS behind NGINX.
Theme: etch
Usage instructions
The etch theme does not support rendering of .Rmd documents.
Hence, each post which requires R code to be rendered is knitted first to .md.
When using .Rmd directly, syntax highlighting would not work.
NOTE: On a new local clone, do the following to properly init the theme:
git submodule update
git submodule init
Images
For code which produces images, post-processing is needed with respect to file paths.
The code is stored in the render.R file of the respective post.
Example:
# fix path of figures created by code
system("gsed -i 's#content/posts#/posts#g' content/posts/2016-11-01-oddsratio/2016-11-01-oddsratio.md")
Auto-dark mode
The etch theme comes with an automatic auto-dark mode which respects system settings.
New post
just new-post <title>
Anchors for headers
- Add
layouts/_default/_markup/render-heading.html
Style:
main#content a.hash-link.nohover {
text-decoration: none;
}
No matching headings