From 0b7cd844856e1dd82e9683400b4e7e740e96a5ec Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 21 Jun 2022 22:46:31 +0100 Subject: [PATCH] Add UTM referral to unsplash links --- layouts/_default/single.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b2b2dd4..807f121 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,9 +8,11 @@ {{ partial "comments.html" . }} {{ partial "related-content.html" . }} + {{ $unsplash_utm := (printf "utm_source=%s&utm_medium=referral" (lower .Site.Params.author)) }} + {{ with .Scratch.Get "unsplash_data" }}
- Header photo by {{ .user.name }} on Unsplash. + Header photo by {{ .user.name }} on Unsplash.
{{ end }}