1
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:
2019-12-23 09:48:12 -06:00
parent 8a2f67de66
commit f10510a7ab
7 changed files with 7 additions and 6 deletions

View File

@@ -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

View File

@@ -1,6 +1,6 @@
# 🏡  [jarv.is](https://jarv.is/)
[![Netlify Status](https://api.netlify.com/api/v1/badges/a7403a53-fd9d-44c0-a708-a84d9fc1454d/deploy-status)](https://app.netlify.com/sites/jakejarvis/deploys) [![View website](https://img.shields.io/badge/view%20site-jarv.is-green)](https://jarv.is/) [![Hugo v0.60.1](https://img.shields.io/badge/hugo-v0.60.1-orange)](https://github.com/gohugoio/hugo) [![Dependabot](https://api.dependabot.com/badges/status?host=github&repo=jakejarvis/jarv.is)](https://github.com/jakejarvis/jarv.is/pulls?q=is%3Apr+label%3Adependencies) [![GitHub repo size](https://img.shields.io/github/repo-size/jakejarvis/jarv.is)](https://github.com/jakejarvis/jarv.is) [![License](https://img.shields.io/github/license/jakejarvis/jarv.is?color=red)](LICENSE.md) [![Twitter Follow](https://img.shields.io/twitter/follow/jakejarvis?label=Follow&style=social)](https://twitter.com/intent/user?screen_name=jakejarvis)
[![Netlify Status](https://api.netlify.com/api/v1/badges/a7403a53-fd9d-44c0-a708-a84d9fc1454d/deploy-status)](https://app.netlify.com/sites/jakejarvis/deploys) [![View website](https://img.shields.io/badge/view%20site-jarv.is-green)](https://jarv.is/) [![Hugo v0.62.0](https://img.shields.io/badge/hugo-v0.62.0-orange)](https://github.com/gohugoio/hugo) [![Dependabot](https://api.dependabot.com/badges/status?host=github&repo=jakejarvis/jarv.is)](https://github.com/jakejarvis/jarv.is/pulls?q=is%3Apr+label%3Adependencies) [![GitHub repo size](https://img.shields.io/github/repo-size/jakejarvis/jarv.is)](https://github.com/jakejarvis/jarv.is) [![License](https://img.shields.io/github/license/jakejarvis/jarv.is?color=red)](LICENSE.md) [![Twitter Follow](https://img.shields.io/twitter/follow/jakejarvis?label=Follow&style=social)](https://twitter.com/intent/user?screen_name=jakejarvis)
Personal website of [@jakejarvis](https://github.com/jakejarvis), created and deployed using the following:

View File

@@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title }}title="{{ . }}" {{ end }}target="_blank" rel="noopener">{{ .Text | safeHTML }}</a>

View File

@@ -1,5 +1,5 @@
{{ define "main" }}
<main id="home">
{{ .Content }}
{{ .Content }}
</main>
{{ end }}

View File

@@ -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 -}}

View File

@@ -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 }}"

View File

@@ -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>