-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Snipcart to v3.0.25; fix Snipcart JS errors #26
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c977923
Update Snipcart to v3.0.25; fix Snipcart JS errors
b7bf52c
Fix typo: currencySimbol -> currencySymbol
f6fc7e2
Fix "Locale en-us was not found" error
b83c30d
Replace var with alias
1651bed
Update default <html lang> to recommended default
c12abb7
A11Y Project recommends against maximum-scale=1
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ with site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> | ||
{{- partial "head.html" . -}} | ||
<body> | ||
{{- partial "preloader.html" . -}} | ||
{{- partial "header.html" . -}} | ||
{{- block "main" . }}{{- end }} | ||
{{- partial "footer.html" . -}} | ||
</body> | ||
</html> | ||
<html lang="{{ with site.LanguageCode }}{{ . }}{{ else }}en{{ end }}"> | ||
{{- partial "head.html" . -}} | ||
<body> | ||
{{- partial "preloader.html" . -}} | ||
{{- partial "header.html" . -}} | ||
{{- block "main" . }}{{- end }} | ||
{{- partial "footer.html" . -}} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta charset="UTF-8"> | ||
<title>{{ .Title }}</title> | ||
|
||
{{ "<!-- mobile responsive meta -->" | safeHTML }} | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
{{ "<!-- Mobile Responsive Meta -->" | safeHTML }} | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}"> | ||
{{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} | ||
{{ hugo.Generator }} | ||
|
||
{{ "<!-- plugins -->" | safeHTML }} | ||
{{ "<!-- Plugins -->" | safeHTML }} | ||
{{ range site.Params.plugins.css }} | ||
<link rel="stylesheet" href="{{ .link | absURL }}"> | ||
{{ end }} | ||
<link rel="preconnect" href="https://app.snipcart.com"> | ||
<link rel="preconnect" href="https://cdn.snipcart.com"> | ||
<link id="snipcart-theme" type="text/css" href="https://cdn.snipcart.com/themes/v3.0.21/default/snipcart.css" rel="stylesheet"> | ||
<script async src="https://cdn.snipcart.com/themes/v3.0.21/default/snipcart.js"></script> | ||
|
||
{{ with site.Params.snipcartApiKey }} | ||
{{ "<!-- Snipcart -->" | safeHTML }} | ||
<link rel="preconnect" href="https://app.snipcart.com/"> | ||
<link rel="preconnect" href="https://cdn.snipcart.com/"> | ||
<link rel="stylesheet" href="https://cdn.snipcart.com/themes/v3.0.25/default/snipcart.css"> | ||
<script async src="https://cdn.snipcart.com/themes/v3.0.25/default/snipcart.js"></script> | ||
{{ end }} | ||
|
||
{{ "<!-- Main Stylesheet -->" | safeHTML }} | ||
{{ $styles := resources.Get "scss/style.scss" | toCSS | minify }} | ||
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen"> | ||
|
||
{{ "<!--Favicon-->" | safeHTML }} | ||
{{ "<!-- Favicon -->" | safeHTML }} | ||
<link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon"> | ||
<link rel="icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon"> | ||
|
||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reference: https://www.a11yproject.com/posts/2013-01-14-never-use-maximum-scale/