reorganized folder structure
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{{ if ne .Params.amp.enable false }}
|
||||
{{ partial "amp/google-analytics" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ else }}
|
||||
{{ partial "structure/foot.no-amp" . }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,37 @@
|
||||
{{ with $.Site.Params.stylesheetRegular }}
|
||||
<script>
|
||||
(function() {
|
||||
var styles = [{{ range . }}"{{- . -}}",{{ end }}];
|
||||
window.setTimeout(function() {
|
||||
styles.forEach(function(style) {
|
||||
var styleNode = document.createElement('link');
|
||||
styleNode.setAttribute('href', style);
|
||||
styleNode.setAttribute('media', 'screen');
|
||||
styleNode.setAttribute('rel', 'stylesheet');
|
||||
styleNode.setAttribute('async', 'true');
|
||||
styleNode.setAttribute('type', 'text/css');
|
||||
document.head.appendChild(styleNode);
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.javascriptRegular }}
|
||||
<script>
|
||||
(function() {
|
||||
var scripts = [{{ range . }}"{{- . -}}",{{ end }}];
|
||||
window.setTimeout(function() {
|
||||
scripts.forEach(function(script) {
|
||||
var scriptNode = document.createElement('script');
|
||||
scriptNode.setAttribute('src', script);
|
||||
scriptNode.setAttribute('async', 'true');
|
||||
document.body.appendChild(scriptNode);
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,38 @@
|
||||
{{ if ne .Params.amp.enable false }}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 8 ]><html {{ if isset $.Site.Params "amp" }}amp{{ end }} lang="en" class="no-js oldie"><![endif]-->
|
||||
<!--[if IE 8 ]><html {{ if isset $.Site.Params "amp" }}amp{{ end }} lang="en" class="no-js ie8"><![endif]-->
|
||||
<!--[if IE 9 ]><html {{ if isset $.Site.Params "amp" }}amp{{ end }} lang="en" class="no-js ie9"><![endif]-->
|
||||
<!--[if (gt IE 9)|!(IE)]><!--><html {{ if isset $.Site.Params "amp" }}amp{{ end }} lang="{{ with $.Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}" class="no-js"><!--<![endif]-->
|
||||
<head>
|
||||
<title>{{ .Title }}</title>
|
||||
<meta charset="utf-8">
|
||||
|
||||
{{ partial "amp/header" . }}
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
<link rel="icon" href="/favicon.png" type="image/png" sizes="144x144">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
||||
|
||||
{{ if .RSSLink }}
|
||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
{{ end }}
|
||||
|
||||
<meta name="theme-color" content="{{ $.Site.Params.themeColor }}" />
|
||||
|
||||
{{ partial "seo/main" . }}
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ if isset $.Site.Params "ampmanifest" }}
|
||||
{{ with $.Site.Data.app.banner }}{{ partial "amp/app-banner" . }}{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ else }}
|
||||
{{ partial "structure/head.no-amp" . }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 8 ]><html lang="en" class="no-js oldie"><![endif]-->
|
||||
<!--[if IE 8 ]><html lang="en" class="no-js ie8"><![endif]-->
|
||||
<!--[if IE 9 ]><html lang="en" class="no-js ie9"><![endif]-->
|
||||
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en" class="no-js"><!--<![endif]-->
|
||||
<head>
|
||||
<title>{{ .Title }}</title>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
<link rel="icon" href="/favicon.png" type="image/png" sizes="144x144">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
||||
|
||||
{{ if .RSSLink }}
|
||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
{{ end }}
|
||||
|
||||
<meta name="theme-color" content="{{ $.Site.Params.themeColor }}" />
|
||||
|
||||
{{ partial "seo/main" . }}
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
Reference in New Issue
Block a user