Splitting up into partials
This commit is contained in:
parent
3612009d32
commit
46c25611b6
6 changed files with 50 additions and 34 deletions
10
layouts/_default/single.html
Normal file
10
layouts/_default/single.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ partial "head.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<main class="siteContent container">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</main>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "foot.html" . }}
|
|
@ -1,29 +1,5 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
|
||||
<title>{{ .Site.Title }}</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="../css/concise.min.css" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="../css/starter.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="siteHeader container clearfix">
|
||||
<h1 class="logo">{{ .Site.Title }}</h1>
|
||||
|
||||
<nav class="nav">
|
||||
<ul>
|
||||
{{ range .Site.Menus.main }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
{{ partial "head.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<main class="siteContent container">
|
||||
<h2>Concise Starter Template</h2>
|
||||
|
@ -34,11 +10,5 @@
|
|||
</h4>
|
||||
</main>
|
||||
|
||||
<footer class="siteFooter container">
|
||||
<p>Copyright © {{ .Site.Data.meta.currentyear }} Danielle & Matthew Dillon</p>
|
||||
</footer>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="../js/concise.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "foot.html" . }}
|
||||
|
|
4
layouts/partials/foot.html
Normal file
4
layouts/partials/foot.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="../js/concise.min.js"></script>
|
||||
</body>
|
||||
</html>
|
4
layouts/partials/footer.html
Normal file
4
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<footer class="siteFooter container">
|
||||
<p>Copyright © {{ .Site.Data.meta.currentyear }} Danielle & Matthew Dillon</p>
|
||||
</footer>
|
||||
|
16
layouts/partials/head.html
Normal file
16
layouts/partials/head.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
|
||||
<title>{{ .Site.Title }}</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="../css/concise.min.css" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="../css/starter.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
12
layouts/partials/header.html
Normal file
12
layouts/partials/header.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<header class="siteHeader container clearfix">
|
||||
<h1 class="logo">{{ .Site.Title }}</h1>
|
||||
|
||||
<nav class="nav">
|
||||
<ul>
|
||||
{{ range .Site.Menus.main }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
Loading…
Add table
Reference in a new issue