1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-12-03 03:48:55 -05:00

just some spring cleaning 🧹

This commit is contained in:
2021-05-20 10:33:59 -04:00
parent e4ab02749b
commit 378b2385da
14 changed files with 85 additions and 63 deletions

View File

@@ -5,11 +5,11 @@
{{/* If this is a page/post, link View Source to specific file on GitHub; otherwise, just link to repo homepage */}}
{{- with .Site.Params.social.githubRepo }}
{{- $githubURL := printf "https://github.com/%s" . }}
{{- $githubURL := print "https://github.com/" . }}
{{- if not $.IsPage }}
{{- $.Scratch.Set "sourceURL" $githubURL }}
{{- else }}
{{- $.Scratch.Set "sourceURL" (printf "%s/blob/main/content/%s" $githubURL $.File.Path) }}
{{- $.Scratch.Set "sourceURL" (print $githubURL "/blob/main/content/" $.File.Path) }}
{{- end }}
{{- end }}