mirror of
https://github.com/lleene/hugo-site.git
synced 2025-07-12 12:28:31 +02:00
WIP: updated about/resume sections with research interests.:
This commit is contained in:
76
content/posts/2022/hugo-short-codes.md
Normal file
76
content/posts/2022/hugo-short-codes.md
Normal file
@ -0,0 +1,76 @@
|
||||
---
|
||||
title: "Hugo Short Codes"
|
||||
date: 2022-06-14T19:36:18+02:00
|
||||
draft: false
|
||||
toc: false
|
||||
tags:
|
||||
- hugo
|
||||
- code
|
||||
---
|
||||
|
||||
|
||||
|
||||
## Inserting columns
|
||||
|
||||
``` go
|
||||
<div class="flex flex-wrap">
|
||||
<div style="width:10em; padding: 1em;">
|
||||
<img src="{{ .Get "src" }}"
|
||||
{{- if or (.Get "alt") (.Get "caption") }}
|
||||
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify | plainify }}{{ end }}"
|
||||
{{- end -}}
|
||||
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
|
||||
{{- with .Get "height" }} height="{{ . }}"{{ end -}}
|
||||
/>
|
||||
</div>
|
||||
<div class="flex-even markdown-inner">
|
||||
{{ .Inner | markdownify }}
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
## Inserting SVG Figures
|
||||
|
||||
``` go
|
||||
<figure{{ with .Get "class" }} class="{{ . }}"{{ end }}>
|
||||
{{- if .Get "link" -}}
|
||||
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
|
||||
{{- end -}}
|
||||
{{- if false }} <!-- python src_code {{ .Inner }} --> {{ end -}}
|
||||
<img src="{{ .Get "dest" }}"
|
||||
{{- if or (.Get "alt") (.Get "caption") }}
|
||||
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify | plainify }}{{ end }}"
|
||||
{{- end -}}
|
||||
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
|
||||
{{- with .Get "height" }} height="{{ . }}"{{ end -}}
|
||||
/><!-- Closing img tag -->
|
||||
{{- if .Get "link" }}</a>{{ end -}}
|
||||
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
|
||||
<figcaption>
|
||||
{{ with (.Get "title") -}}
|
||||
<h4>{{ . }}</h4>
|
||||
{{- end -}}
|
||||
{{- if or (.Get "caption") (.Get "attr") -}}<p>
|
||||
{{- .Get "caption" | markdownify -}}
|
||||
{{- with .Get "attrlink" }}
|
||||
<a href="{{ . }}">
|
||||
{{- end -}}
|
||||
{{- .Get "attr" | markdownify -}}
|
||||
{{- if .Get "attrlink" }}</a>{{ end }}</p>
|
||||
{{- end }}
|
||||
</figcaption>
|
||||
{{- end }}
|
||||
</figure>
|
||||
```
|
||||
|
||||
|
||||
``` go
|
||||
{< python-svg dest="/images/posts/test.svg" title="This is a pyuthon-svg exmaple." >}
|
||||
railroad.Diagram("foo", railroad.Choice(0, "bar", "baz"), css=style)
|
||||
{< /python-svg >}
|
||||
```
|
||||
|
||||
{{< python-svg dest="/images/posts/test.svg" title="This is a python-svg exmaple." >}}
|
||||
railroad.Diagram("foo", railroad.Choice(0, "bar", "baz"), css=style)
|
||||
{{< /python-svg >}}
|
||||
|
19
content/posts/2022/raspberry-pi-build.md
Normal file
19
content/posts/2022/raspberry-pi-build.md
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
title: "Raspberry Pi Build"
|
||||
date: 2022-06-18T16:12:09+02:00
|
||||
draft: true
|
||||
toc: false
|
||||
images:
|
||||
tags:
|
||||
- untagged
|
||||
---
|
||||
|
||||
|
||||
Change the port for pi-hole lighttpd to 7070
|
||||
|
||||
``` bash
|
||||
apt install nginx postfix
|
||||
apt install dovecot-imapd dovecot-pop3d
|
||||
apt install aspell-en spellutils wdutch wbritish
|
||||
apt install php-net-ldap2 php-crypt-gpg php-net-ldap3
|
||||
```
|
Reference in New Issue
Block a user