feat: design
This commit is contained in:
42
layouts/_default/single.html
Normal file
42
layouts/_default/single.html
Normal file
@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Hello World</title>
|
||||
<link rel="apple-touch-icon" href="images/pwa-icon-256.png" />
|
||||
{{ $style := resources.Get "styles/main.sass" }}
|
||||
{{ with $style }}
|
||||
{{ $styleCSS := . | toCSS }}
|
||||
<link rel="stylesheet" href="{{ $styleCSS.Permalink }}">
|
||||
{{ end }}
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="white" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<h1>Ceiba App</h1>
|
||||
<h2>{{ .Title }}</h2>
|
||||
</header>
|
||||
{{ partial "scores" . }}
|
||||
|
||||
{{/* safeHTML `
|
||||
<div id="app"></div>
|
||||
` */}}
|
||||
|
||||
{{ $js := resources.Get "js/sw.js" }}
|
||||
{{ with $js }}
|
||||
{{ $secureJS := . | js.Build }}
|
||||
<!--script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script-->
|
||||
{{ end }}
|
||||
|
||||
{{ $js := resources.Get "js/main.js" }}
|
||||
{{ with $js }}
|
||||
{{ $secureJS := . | js.Build }}
|
||||
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user