Splitting up into partials

This commit is contained in:
Matthew Dillon 2015-06-20 16:44:50 -08:00
parent 3612009d32
commit 46c25611b6
6 changed files with 50 additions and 34 deletions

View 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" . }}

View file

@ -1,29 +1,5 @@
<!doctype html> {{ partial "head.html" . }}
<html> {{ partial "header.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>
<main class="siteContent container"> <main class="siteContent container">
<h2>Concise Starter Template</h2> <h2>Concise Starter Template</h2>
@ -34,11 +10,5 @@
</h4> </h4>
</main> </main>
<footer class="siteFooter container"> {{ partial "footer.html" . }}
<p>Copyright &copy; {{ .Site.Data.meta.currentyear }} Danielle &amp; Matthew Dillon</p> {{ partial "foot.html" . }}
</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>

View 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>

View file

@ -0,0 +1,4 @@
<footer class="siteFooter container">
<p>Copyright &copy; {{ .Site.Data.meta.currentyear }} Danielle &amp; Matthew Dillon</p>
</footer>

View 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>

View 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>