diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-06-18 18:48:34 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-06-18 18:48:34 +0200 |
| commit | ffe3ec0b24834b38564db3c63d99eecdb62a37c4 (patch) | |
| tree | 8ef0fd0aea4060440d325b33a6e78fcadf9476e4 | |
| parent | e34f07dc8bd8db122616b27329404947b49b0d3b (diff) | |
| download | mitjafelicijan.com-ffe3ec0b24834b38564db3c63d99eecdb62a37c4.tar.gz | |
Upgraded to jbmafp v0.2
| -rw-r--r-- | .github/workflows/deploy.yaml | 2 | ||||
| -rwxr-xr-x | templates/note.html | 17 | ||||
| -rwxr-xr-x | templates/post.html | 14 |
3 files changed, 29 insertions, 4 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index de81bd3..6f31879 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml | |||
| @@ -27,7 +27,7 @@ jobs: | |||
| 27 | uses: actions/configure-pages@v3 | 27 | uses: actions/configure-pages@v3 |
| 28 | - name: Run a multi-line script | 28 | - name: Run a multi-line script |
| 29 | run: | | 29 | run: | |
| 30 | wget https://github.com/mitjafelicijan/jbmafp/releases/download/v0.1/jbmafp.zip | 30 | wget https://github.com/mitjafelicijan/jbmafp/releases/download/v0.2/jbmafp.zip |
| 31 | unzip jbmafp.zip | 31 | unzip jbmafp.zip |
| 32 | chmod +x jbmafp | 32 | chmod +x jbmafp |
| 33 | ./jbmafp -b | 33 | ./jbmafp -b |
diff --git a/templates/note.html b/templates/note.html index 36c6a3c..c5241c3 100755 --- a/templates/note.html +++ b/templates/note.html | |||
| @@ -4,11 +4,24 @@ | |||
| 4 | {{ define "description" }}{{ .Page.Summary }}{{ end }} | 4 | {{ define "description" }}{{ .Page.Summary }}{{ end }} |
| 5 | 5 | ||
| 6 | {{ define "content" }} | 6 | {{ define "content" }} |
| 7 | <div> | 7 | <section> |
| 8 | <h1>{{ .Page.Title }}</h1> | 8 | <h1>{{ .Page.Title }}</h1> |
| 9 | <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p> | 9 | <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p> |
| 10 | <div> | 10 | <div> |
| 11 | {{ .Page.HTML }} | 11 | {{ .Page.HTML }} |
| 12 | </div> | 12 | </div> |
| 13 | </div> | 13 | </section> |
| 14 | |||
| 15 | <br><hr> | ||
| 16 | |||
| 17 | <section> | ||
| 18 | <p><big><strong>Other notes</strong></big></p> | ||
| 19 | <ul> | ||
| 20 | {{ range random 20 .Pages }} | ||
| 21 | {{ if and (eq .Type "note") (not .Draft) }} | ||
| 22 | <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> | ||
| 23 | {{ end }} | ||
| 24 | {{ end }} | ||
| 25 | </ul> | ||
| 26 | </section> | ||
| 14 | {{ end }} | 27 | {{ end }} |
diff --git a/templates/post.html b/templates/post.html index 5e4ce80..6061e47 100755 --- a/templates/post.html +++ b/templates/post.html | |||
| @@ -12,8 +12,20 @@ | |||
| 12 | </div> | 12 | </div> |
| 13 | </section> | 13 | </section> |
| 14 | 14 | ||
| 15 | <br><hr> | ||
| 16 | |||
| 17 | <section> | ||
| 18 | <p><big><strong>Other posts</strong></big></p> | ||
| 19 | <ul> | ||
| 20 | {{ range random 20 .Pages }} | ||
| 21 | {{ if and (eq .Type "post") (not .Draft) }} | ||
| 22 | <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> | ||
| 23 | {{ end }} | ||
| 24 | {{ end }} | ||
| 25 | </ul> | ||
| 26 | </section> | ||
| 27 | |||
| 15 | {{ if .Page.Meta.mathjax }} | 28 | {{ if .Page.Meta.mathjax }} |
| 16 | <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> | ||
| 17 | <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script> | 29 | <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script> |
| 18 | {{ end }} | 30 | {{ end }} |
| 19 | 31 | ||
