mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
tpl: HTTPS the instagram Shortcode JS
This JavaScript will always load over HTTPS so it's best to specify that. Protocol-less loaded resources are an anti-pattern (REF: https://www.paulirish.com/2010/the-protocol-relative-url/)
This commit is contained in:
@@ -256,7 +256,7 @@ Content: {{ .Content }}
|
||||
|
||||
// Regular mode
|
||||
b := hugolib.Test(t, files)
|
||||
b.AssertFileContent("public/index.html", "a7937c49665872d3")
|
||||
b.AssertFileContent("public/index.html", "6e93404b93277876")
|
||||
|
||||
// Simple mode
|
||||
files = strings.ReplaceAll(files, "privacy.instagram.simple = false", "privacy.instagram.simple = true")
|
||||
|
Reference in New Issue
Block a user