mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-08-22 01:45:39 -04:00
Hugo v0.62.0 features (link template hooks!) and fixes
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
FROM alpine:latest
|
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:
|
# remove/comment the following line completely to build with vanilla Hugo:
|
||||||
ENV HUGO_EXTENDED 1
|
ENV HUGO_EXTENDED 1
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# 🏡 [jarv.is](https://jarv.is/)
|
# 🏡 [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:
|
Personal website of [@jakejarvis](https://github.com/jakejarvis), created and deployed using the following:
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<a href="{{ .Destination | safeURL }}" {{ with .Title }}title="{{ . }}" {{ end }}target="_blank" rel="noopener">{{ .Text | safeHTML }}</a>
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main id="home">
|
<main id="home">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -38,4 +38,4 @@
|
|||||||
</amp-img>
|
</amp-img>
|
||||||
</p>
|
</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 }}"
|
<img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"
|
||||||
alt="{{ . | markdownify | plainify | safeHTMLAttr }}" title="{{ . | markdownify | plainify | safeHTMLAttr }}">
|
alt="{{ . | markdownify | plainify | safeHTMLAttr }}" title="{{ . | markdownify | plainify | safeHTMLAttr }}">
|
||||||
</picture>
|
</picture>
|
||||||
<figcaption>{{ . | markdownify | safeHTML }}</figcaption>
|
<figcaption>{{ $.Page.RenderString . | safeHTML }}</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p><img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"
|
<p><img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"
|
||||||
|
|||||||
@@ -31,5 +31,5 @@
|
|||||||
<img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"
|
<img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"
|
||||||
{{- with .Get "alt" }} alt="{{ . | safeHTMLAttr }}" title="{{ . | safeHTMLAttr }}"{{ end }}
|
{{- with .Get "alt" }} alt="{{ . | safeHTMLAttr }}" title="{{ . | safeHTMLAttr }}"{{ end }}
|
||||||
{{- with .Inner }} alt="{{ . | markdownify | plainify | safeHTMLAttr }}" title="{{ . | markdownify | plainify | 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>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user