Split main template mostly into partials
This commit is contained in:
parent
28b32bae5c
commit
faec5a0344
9 changed files with 83 additions and 79 deletions
3
content/_index.md
Normal file
3
content/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
landing: true
|
||||
---
|
|
@ -1,51 +1,5 @@
|
|||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Alpha by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Alpha by HTML5 UP</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<!--[if lte IE 8]><script src="build/js/ie/html5shiv.js"></script><![endif]-->
|
||||
<link rel="stylesheet" href="build/css/main.css" />
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap-grid.min.css">
|
||||
|
||||
<!--[if lte IE 8]><link rel="stylesheet" href="build/css/ie8.css" /><![endif]-->
|
||||
</head>
|
||||
<body class="landing">
|
||||
{{ partial "page_start.html" . }}
|
||||
<div id="page-wrapper">
|
||||
|
||||
<!-- Header -->
|
||||
<header id="header" class="alt">
|
||||
<h1><a href="index.html">Alpha</a> by HTML5 UP</h1>
|
||||
<nav id="nav">
|
||||
<ul>
|
||||
<li><a href="index.html">Home</a></li>
|
||||
<li>
|
||||
<a href="#" class="icon fa-angle-down">Layouts</a>
|
||||
<ul>
|
||||
<li><a href="generic.html">Generic</a></li>
|
||||
<li><a href="contact.html">Contact</a></li>
|
||||
<li><a href="elements.html">Elements</a></li>
|
||||
<li>
|
||||
<a href="#">Submenu</a>
|
||||
<ul>
|
||||
<li><a href="#">Option One</a></li>
|
||||
<li><a href="#">Option Two</a></li>
|
||||
<li><a href="#">Option Three</a></li>
|
||||
<li><a href="#">Option Four</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#" class="button">Sign Up</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Banner -->
|
||||
<section id="banner">
|
||||
<h2>Alpha</h2>
|
||||
|
@ -144,36 +98,5 @@
|
|||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer id="footer">
|
||||
<ul class="icons">
|
||||
<li><a href="#" class="icon fa-twitter"><span class="label">Twitter</span></a></li>
|
||||
<li><a href="#" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
|
||||
<li><a href="#" class="icon fa-instagram"><span class="label">Instagram</span></a></li>
|
||||
<li><a href="#" class="icon fa-github"><span class="label">Github</span></a></li>
|
||||
<li><a href="#" class="icon fa-dribbble"><span class="label">Dribbble</span></a></li>
|
||||
<li><a href="#" class="icon fa-google-plus"><span class="label">Google+</span></a></li>
|
||||
</ul>
|
||||
<ul class="copyright">
|
||||
<li>© Untitled. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="build/js/jquery.min.js"></script>
|
||||
<script src="build/js/jquery.dropotron.min.js"></script>
|
||||
<script src="build/js/jquery.scrollgress.min.js"></script>
|
||||
<script src="build/js/skel.min.js"></script>
|
||||
<script src="build/js/util.js"></script>
|
||||
<!--[if lte IE 8]><script src="build/js/ie/respond.min.js"></script><![endif]-->
|
||||
<script src="build/js/main.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{{ partial "page_end.html" . }}
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<footer id="footer">
|
||||
<ul class="icons">
|
||||
<li><a href="#" class="icon fa-twitter"><span class="label">Twitter</span></a></li>
|
||||
<li><a href="#" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
|
||||
<li><a href="#" class="icon fa-instagram"><span class="label">Instagram</span></a></li>
|
||||
<li><a href="#" class="icon fa-github"><span class="label">Github</span></a></li>
|
||||
<li><a href="#" class="icon fa-dribbble"><span class="label">Dribbble</span></a></li>
|
||||
<li><a href="#" class="icon fa-google-plus"><span class="label">Google+</span></a></li>
|
||||
</ul>
|
||||
<ul class="copyright">
|
||||
<li>© Untitled. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
|
||||
</ul>
|
||||
</footer>s
|
10
layouts/partials/head.html
Normal file
10
layouts/partials/head.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<head>
|
||||
<title>Alpha by HTML5 UP</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<!--[if lte IE 8]><script src="build/js/ie/html5shiv.js"></script><![endif]-->
|
||||
<link rel="stylesheet" href="build/css/main.css" />
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap-grid.min.css">
|
||||
|
||||
<!--[if lte IE 8]><link rel="stylesheet" href="build/css/ie8.css" /><![endif]-->
|
||||
</head>
|
26
layouts/partials/navbar.html
Normal file
26
layouts/partials/navbar.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<header id="header" class="alt">
|
||||
<h1><a href="index.html">Alpha</a> by HTML5 UP</h1>
|
||||
<nav id="nav">
|
||||
<ul>
|
||||
<li><a href="index.html">Home</a></li>
|
||||
<li>
|
||||
<a href="#" class="icon fa-angle-down">Layouts</a>
|
||||
<ul>
|
||||
<li><a href="generic.html">Generic</a></li>
|
||||
<li><a href="contact.html">Contact</a></li>
|
||||
<li><a href="elements.html">Elements</a></li>
|
||||
<li>
|
||||
<a href="#">Submenu</a>
|
||||
<ul>
|
||||
<li><a href="#">Option One</a></li>
|
||||
<li><a href="#">Option Two</a></li>
|
||||
<li><a href="#">Option Three</a></li>
|
||||
<li><a href="#">Option Four</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#" class="button">Sign Up</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
4
layouts/partials/page_end.html
Normal file
4
layouts/partials/page_end.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{ partial "footer.html" . }}
|
||||
{{ partial "scripts.html" . }}
|
||||
</body>
|
||||
</html>
|
16
layouts/partials/page_start.html
Normal file
16
layouts/partials/page_start.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Alpha by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
<html>
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
{{ if .Params.landing }}
|
||||
<body class="landing">
|
||||
{{ else }}
|
||||
<body>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "navbar.html" . }}
|
9
layouts/partials/scripts.html
Normal file
9
layouts/partials/scripts.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<script src="build/js/jquery.min.js"></script>
|
||||
<script src="build/js/jquery.dropotron.min.js"></script>
|
||||
<script src="build/js/jquery.scrollgress.min.js"></script>
|
||||
<script src="build/js/skel.min.js"></script>
|
||||
<script src="build/js/util.js"></script>
|
||||
<!--[if lte IE 8]><script src="build/js/ie/respond.min.js"></script><![endif]-->
|
||||
<script src="build/js/main.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
|
Loading…
Reference in a new issue