Add basic template with static files
This commit is contained in:
parent
b17b20b03f
commit
175e0c76cf
3 changed files with 15 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ .Title }}</title>
|
||||
{{ partial "style.html" "css/font-awesome.css" }}
|
||||
{{ partial "style.html" "scss/index.scss" }}
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "script.html" "js/bootstrap.js" }}
|
||||
</body>
|
||||
</html>
|
2
layouts/partials/script.html
Normal file
2
layouts/partials/script.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ $script := resources.Get . | minify | fingerprint }}
|
||||
<script type="text/javascript" src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
|
2
layouts/partials/style.html
Normal file
2
layouts/partials/style.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ $style := resources.Get . | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" />
|
Reference in a new issue