diff options
author | Dennis Eriksen <d@ennis.no> | 2018-10-13 10:10:13 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2018-10-13 10:10:13 +0200 |
commit | 026da97e86656d29a3e780d8f78abae9eb48204d (patch) | |
tree | 26aaef0509943f36ff9dcd107f7dcb8b1f6d57c5 | |
parent | sample index with html5boilerplate (diff) | |
download | rikerz-026da97e86656d29a3e780d8f78abae9eb48204d.tar.gz |
more work
-rw-r--r-- | layouts/index.html | 23 | ||||
-rw-r--r-- | layouts/partials/footer.html | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 0 | ||||
-rw-r--r-- | layouts/partials/header.html | 16 |
4 files changed, 23 insertions, 20 deletions
diff --git a/layouts/index.html b/layouts/index.html index c4ac96a..6d3b85c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,20 +1,3 @@ -<!doctype html> -<html class="no-js" lang=""> - -<head> - <meta charset="utf-8"> - <meta http-equiv="x-ua-compatible" content="ie=edge"> - <title></title> - <meta name="description" content=""> - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> - - <link rel="stylesheet" href="css/normalize.css"> - <link rel="stylesheet" href="css/main.css"> -</head> - -<body> - <p>Hello world! This is HTML5 Boilerplate.</p> - -</body> - -</html> +{{ partial "header" . }} + <p>Hello world! This is HTML5 Boilerplate.</p> +{{ partial "footer" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..f5562b7 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,4 @@ + + </main> +</body> +</html> diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index e69de29..0000000 --- a/layouts/partials/head.html +++ /dev/null diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e69de29..45614b8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -0,0 +1,16 @@ +<!doctype html> +<html class="no-js" lang=""> + +<head> + <meta charset="utf-8"> + <meta http-equiv="x-ua-compatible" content="ie=edge"> + <title>{{ .Title }} {{ if ne .Title .Site.Title }} · {{ .Site.Title }}{{ end }}</title> + <meta name="description" content=""> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + + <link rel="stylesheet" href="css/normalize.css"> + <link rel="stylesheet" href="css/main.css"> +</head> + +<body> + <main> |