From 45b16a0bb4f1edc5e8c623ffe49a56848cb46127 Mon Sep 17 00:00:00 2001 From: k <68973000+moll-y@users.noreply.github.com> Date: Sat, 12 Jun 2021 02:24:59 -0500 Subject: [PATCH] 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. --- exampleSite/content/categories/Test/_index.md | 4 ++-- layouts/partials/helper/image.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exampleSite/content/categories/Test/_index.md b/exampleSite/content/categories/Test/_index.md index 0b3cfa9..de42112 100644 --- a/exampleSite/content/categories/Test/_index.md +++ b/exampleSite/content/categories/Test/_index.md @@ -1,9 +1,9 @@ --- title: "Test" -description: "This is a example category" +description: "This is an example category" slug: "test" image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg" style: background: "#2a9d8f" color: "#fff" ---- \ No newline at end of file +--- diff --git a/layouts/partials/helper/image.html b/layouts/partials/helper/image.html index dd86d27..11fc3b6 100644 --- a/layouts/partials/helper/image.html +++ b/layouts/partials/helper/image.html @@ -8,7 +8,7 @@ {{ $url := urls.Parse $imageValue }} {{ if or (eq $url.Scheme "http") (eq $url.Scheme "https") }} - + {{ $result = merge $result (dict "permalink" $imageValue) }} {{ else }} {{ $pageResourceImage := .Context.Resources.GetMatch (printf "%s" ($imageValue | safeURL)) }} @@ -58,4 +58,4 @@ {{ end }} -{{ return $result }} \ No newline at end of file +{{ return $result }}