mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-28 15:05:47 -04:00
Hugo v0.62.0 features (link template hooks!) and fixes
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
ENV HUGO_VERSION 0.60.1
|
||||
ENV HUGO_VERSION 0.62.0
|
||||
# remove/comment the following line completely to build with vanilla Hugo:
|
||||
ENV HUGO_EXTENDED 1
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 🏡 [jarv.is](https://jarv.is/)
|
||||
|
||||
[](https://app.netlify.com/sites/jakejarvis/deploys) [](https://jarv.is/) [](https://github.com/gohugoio/hugo) [](https://github.com/jakejarvis/jarv.is/pulls?q=is%3Apr+label%3Adependencies) [](https://github.com/jakejarvis/jarv.is) [](LICENSE.md) [](https://twitter.com/intent/user?screen_name=jakejarvis)
|
||||
[](https://app.netlify.com/sites/jakejarvis/deploys) [](https://jarv.is/) [](https://github.com/gohugoio/hugo) [](https://github.com/jakejarvis/jarv.is/pulls?q=is%3Apr+label%3Adependencies) [](https://github.com/jakejarvis/jarv.is) [](LICENSE.md) [](https://twitter.com/intent/user?screen_name=jakejarvis)
|
||||
|
||||
|
||||
Personal website of [@jakejarvis](https://github.com/jakejarvis), created and deployed using the following:
|
||||
|
||||
1
layouts/_default/_markup/render-link.html
Normal file
1
layouts/_default/_markup/render-link.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href="{{ .Destination | safeURL }}" {{ with .Title }}title="{{ . }}" {{ end }}target="_blank" rel="noopener">{{ .Text | safeHTML }}</a>
|
||||
@@ -1,5 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<main id="home">
|
||||
{{ .Content }}
|
||||
{{ .Content }}
|
||||
</main>
|
||||
{{ end }}
|
||||
|
||||
@@ -38,4 +38,4 @@
|
||||
</amp-img>
|
||||
</p>
|
||||
|
||||
{{- with .Inner }}<p class="caption">{{ . | markdownify | safeHTML }}</p>{{ end -}}
|
||||
{{- with .Inner }}<p class="caption">{{ $.Page.RenderString . | safeHTML }}</p>{{ end -}}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"
|
||||
alt="{{ . | markdownify | plainify | safeHTMLAttr }}" title="{{ . | markdownify | plainify | safeHTMLAttr }}">
|
||||
</picture>
|
||||
<figcaption>{{ . | markdownify | safeHTML }}</figcaption>
|
||||
<figcaption>{{ $.Page.RenderString . | safeHTML }}</figcaption>
|
||||
</figure>
|
||||
{{ else }}
|
||||
<p><img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
<img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"
|
||||
{{- with .Get "alt" }} alt="{{ . | safeHTMLAttr }}" title="{{ . | safeHTMLAttr }}"{{ end }}
|
||||
{{- with .Inner }} alt="{{ . | markdownify | plainify | safeHTMLAttr }}" title="{{ . | markdownify | plainify | safeHTMLAttr }}"{{ end }}>
|
||||
{{ with .Inner }}<br>{{ . | markdownify | safeHTML }}{{ end -}}
|
||||
{{ with .Inner }}<br>{{ $.Page.RenderString . | safeHTML }}{{ end -}}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user