mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
fix(typo): change 'a ex.*' for 'an ex.*' (#213)
In order to fix this kind of typo, the (not sophisticated) Regular Expression: `[a-zA-Z] [aA] [aeiouAEIOU]` was ran. That Regular Expression matches some good written sentences like `a User`, therefore, those has been omitted.
This commit is contained in:
parent
325303a7f8
commit
45b16a0bb4
2 changed files with 4 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
title: "Test"
|
title: "Test"
|
||||||
description: "This is a example category"
|
description: "This is an example category"
|
||||||
slug: "test"
|
slug: "test"
|
||||||
image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg"
|
image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg"
|
||||||
style:
|
style:
|
||||||
background: "#2a9d8f"
|
background: "#2a9d8f"
|
||||||
color: "#fff"
|
color: "#fff"
|
||||||
---
|
---
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
{{ $url := urls.Parse $imageValue }}
|
{{ $url := urls.Parse $imageValue }}
|
||||||
|
|
||||||
{{ if or (eq $url.Scheme "http") (eq $url.Scheme "https") }}
|
{{ if or (eq $url.Scheme "http") (eq $url.Scheme "https") }}
|
||||||
<!-- Is a external image -->
|
<!-- Is an external image -->
|
||||||
{{ $result = merge $result (dict "permalink" $imageValue) }}
|
{{ $result = merge $result (dict "permalink" $imageValue) }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $pageResourceImage := .Context.Resources.GetMatch (printf "%s" ($imageValue | safeURL)) }}
|
{{ $pageResourceImage := .Context.Resources.GetMatch (printf "%s" ($imageValue | safeURL)) }}
|
||||||
|
@ -58,4 +58,4 @@
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ return $result }}
|
{{ return $result }}
|
||||||
|
|
Loading…
Reference in a new issue