tpl: Rename err-missing-instagram-accesstoken => error-missing-instagram-accesstoken
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 18 Jun 2021 10:27:37 +0000 (12:27 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 18 Jun 2021 10:27:37 +0000 (12:27 +0200)
To get it in line with the other.

tpl/tplimpl/embedded/templates.autogen.go
tpl/tplimpl/embedded/templates/shortcodes/instagram.html
tpl/tplimpl/embedded/templates/shortcodes/instagram_simple.html

index 9584077ef9170c1ba5957921a65b24fffe75aba5..cd706f8e1034f41221be3cefda53220165fd3615 100644 (file)
@@ -500,7 +500,7 @@ if (!doNotTrack) {
 {{- if not $pc.Disable -}}
   {{ $accessToken := site.Config.Services.Instagram.AccessToken }}
   {{- if not $accessToken -}}
-    {{- erroridf "err-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." -}}
+    {{- erroridf "error-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." -}}
   {{- else -}}
     {{- if $pc.Simple -}}
       {{ template "_internal/shortcodes/instagram_simple.html" . }}
@@ -519,7 +519,7 @@ if (!doNotTrack) {
 {{- if not $pc.Disable -}}
   {{ $accessToken := site.Config.Services.Instagram.AccessToken }}
   {{- if not $accessToken -}}
-    {{- erroridf "err-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." -}}
+    {{- erroridf "error-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." -}}
   {{- else -}}
     {{- $id := .Get 0 -}}
     {{- $headers := dict "Authorization" (printf "Bearer %s" $accessToken) -}}
index 46343361f63fbe5950a28698ae1802a7a99cc887..a6cd002df806fe06f7e650bf1c9ec5445fdfedfa 100644 (file)
@@ -2,7 +2,7 @@
 {{- if not $pc.Disable -}}
   {{ $accessToken := site.Config.Services.Instagram.AccessToken }}
   {{- if not $accessToken -}}
-    {{- erroridf "err-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." -}}
+    {{- erroridf "error-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." -}}
   {{- else -}}
     {{- if $pc.Simple -}}
       {{ template "_internal/shortcodes/instagram_simple.html" . }}
index 365d1025eb0dcdb9577909a7b98b316ad0b9e756..f219181ac53ee7a3677330f2534d04781f72423e 100644 (file)
@@ -3,7 +3,7 @@
 {{- if not $pc.Disable -}}
   {{ $accessToken := site.Config.Services.Instagram.AccessToken }}
   {{- if not $accessToken -}}
-    {{- erroridf "err-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." -}}
+    {{- erroridf "error-missing-instagram-accesstoken" "instagram shortcode: Missing config value for services.instagram.accessToken. This can be set in config.toml, but it is recommended to configure this via the HUGO_SERVICES_INSTAGRAM_ACCESSTOKEN OS environment variable. If you are using a Client Access Token, remember that you must combine it with your App ID using a pipe symbol (<APPID>|<CLIENTTOKEN>) otherwise the request will fail." -}}
   {{- else -}}
     {{- $id := .Get 0 -}}
     {{- $headers := dict "Authorization" (printf "Bearer %s" $accessToken) -}}