aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html0
-rw-r--r--layouts/_default/single.html3
-rwxr-xr-xlayouts/index.html74
-rw-r--r--layouts/partials/analytics.html0
-rw-r--r--layouts/partials/footer.html61
-rw-r--r--layouts/partials/header.html24
-rw-r--r--layouts/partials/menu.html40
-rw-r--r--layouts/partials/top-block.html19
-rw-r--r--layouts/section/showcase.html12
-rw-r--r--layouts/showcase/thumbnail.html15
10 files changed, 248 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/_default/list.html
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..16f6ffc
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,3 @@
+{{ partial "header.html" . }}
+{{ .Content }}
+{{ partial "footer.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100755
index 0000000..af4654e
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,74 @@
+{{ partial "header.html" . }}
+{{ partial "top-block.html" . }}
+ {{ range $index, $element := .Data.Pages.ByWeight }}{{ if eq .Section "post" }}
+
+ <div id="main">
+ <!-- Intro -->
+ {{ if modBool $index 2 }}<div id="intro" class="counterpoint">{{ else }}<div id="intro" class="point">{{ end}}
+ <div class="container">
+ <div class="row">
+ <div class="col-md-6 col-md-offset-3 text-center">
+ {{ if (isset .Params "icon") }}
+ <i class="lead-icon icon-{{ .Params.icon }}"></i>
+ {{ end }}
+ <h2>{{ .Title }}</h2>
+ <p class="lead">
+ {{ .Content }}
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- /Intro -->
+ {{ end }}
+ {{ if eq .Section "carousel" }}
+ <!-- /Point -->
+
+
+ <div class="callout">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-12 text-center">
+ {{ if (isset .Params "icon") }}
+ <i class="callout-icon icon-{{ .Params.icon }}"></i>
+ {{ end }}
+ <p>{{ .Content }}</p>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12 text-center">
+ <!-- Wrapper for slides -->
+ <div class="carousel-inner owl-carousel">
+ {{ range .Params.carousel }}
+ <div class="item"> <blockquote><p>{{ .quote }}</p>&mdash; {{ .author }} <a href="{{ .url }}">{{ .quote_date }}</a></blockquote> </div>
+ {{ end }}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- /Point -->
+ {{ end }}
+ {{ end }}
+
+ </div>
+
+ <!-- Call to Action -->
+ <div id="action" class="call-to-action">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-10 col-md-offset-1 text-center">
+ <h1 style="padding-bottom:.5em;">Getting Started</h1>
+ <a href="https://github.com/spf13/hugo/releases" class="btn btn-lg btn-primary">Download <i class="icon-arrow-down"></i></a>
+ <a href="/overview/quickstart" style="color:white;font-weight:300;">Quickstart Guide</a>
+ <p>&nbsp;</p>
+ <h4>Using Homebrew?</h4>
+ <pre><code>brew install hugo</code></pre>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- /Call to Action -->
+
+{{ partial "footer.html" . }}
diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/analytics.html
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..1eb3f85
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,61 @@
+<!-- Footer -->
+<footer id="footer">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-6 col-md-offset-3 text-center">
+ <ul class="list-inline">
+ <li><a href="http://twitter.com/spf13" class="icon-twitter icon-2x"></a></li>
+ <li><a href="http://github.com/spf13/hugo" class="icon-octocat icon-2x"></a></li>
+ </ul>
+ <hr>
+ <p>Copyright &copy; Steve Francia 2013&ndash;2014</p>
+ </div>
+ </div>
+ </div>
+</footer>
+<!-- /Footer -->
+
+<!-- Bootstrap core JavaScript -->
+<!-- Placed at the end of the document so the pages load faster -->
+<script src="/js/jquery-2.1.1.min.js"></script>
+<script src="/js/owl.carousel.min.js"></script>
+<!--<script src="/js/bootstrap.min.js"></script>-->
+<script>
+$(function() {
+$('a[href*=#]:not([href=#])').click(function() {
+ if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
+ || location.hostname == this.hostname) {
+
+ var target = $(this.hash);
+ target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
+ if (target.length) {
+ $('html,body').animate({
+ scrollTop: target.offset().top
+ }, 1000);
+ return false;
+ }
+ }
+});
+});
+$('.owl-carousel').owlCarousel({
+loop:true,
+margin:10,
+nav:true,
+autoplay:true,
+autoplayHoverPause:true,
+autoplayTimeout:3000,
+responsive:{
+ 0:{
+ items:1
+ },
+ 1000:{
+ items:3
+ },
+}
+})
+</script>
+
+{{ partial "analytics.html" . }}
+</body>
+
+</html>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..5fdac85
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <title>{{ .Title }}</title>
+
+ <!-- Bootstrap core CSS -->
+ <link href="/css/bootstrap-theme.css" rel="stylesheet">
+
+ <link href='http://fonts.googleapis.com/css?family=Arbutus+Slab&family=Cabin:600&family=Source+Code+Pro' rel='stylesheet' type='text/css'>
+ <!-- Add custom CSS here -->
+ <link href="/css/HPstyles.css" rel="stylesheet">
+ <link href="/css/hugofont.css" rel="stylesheet">
+ <link href="/css/owl.carousel.css" rel="stylesheet">
+ <link href="/css/owl.theme.default.css" rel="stylesheet">
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ </head>
+
+ <body>
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
new file mode 100644
index 0000000..5a9e1dd
--- /dev/null
+++ b/layouts/partials/menu.html
@@ -0,0 +1,40 @@
+<!--sidebar start-->
+<aside>
+ <div id="sidebar" class="nav-collapse ">
+ <!-- sidebar menu start-->
+ <ul class="sidebar-menu">
+ {{ $currentNode := . }}
+ {{ range .Site.Menus.main }}
+ {{ if .HasChildren }}
+
+ <li class="sub-menu{{if $currentNode.HasMenuCurrent "main" . }} active{{end}}">
+ <a href="javascript:;" class="">
+ {{ .Pre }}
+ <!--<i class="icon_desktop"></i>-->
+ <span>{{ .Name }}</span>
+ <span class="menu-arrow fa {{if $currentNode.HasMenuCurrent "main" . }}fa-angle-down{{else}}fa-angle-right{{end}}"></span>
+ </a>
+ <ul class="sub{{if $currentNode.HasMenuCurrent "main" . }} open{{end}}">
+ {{ range .Children }}
+ <li{{if $currentNode.IsMenuCurrent "main" . }} class="active"{{end}}><a href="{{.Url}}"> {{ .Name }} </a> </li>
+ {{ end }}
+ </ul>
+ {{else}}
+ <li>
+ <a class="" href="{{.Url}}">
+ {{ .Pre }}
+ <!--<i class="icon_house_alt"></i>-->
+ <span>{{ .Name }}</span>
+ </a>
+ {{end}}
+ </li>
+ {{end}}
+ <li> <a href="https://github.com/spf13/hugo/issues" target="blank"><i class='fa fa-life-ring'></i>Issues & Help</a> </li>
+ {{ if .IsPage }}
+ {{ $File := .File }} {{with $File.FileName }}<li><a href="https://github.com/spf13/hugo/edit/master/docs/content/{{ $File.Dir }}{{ $File.FileName }}" target="blank"><i class='fa fa-edit'></i> Refine this Page</a> </li>{{end}}
+ {{ end }}
+ </ul>
+ <!-- sidebar menu end-->
+ </div>
+</aside>
+<!--sidebar end-->
diff --git a/layouts/partials/top-block.html b/layouts/partials/top-block.html
new file mode 100644
index 0000000..1427150
--- /dev/null
+++ b/layouts/partials/top-block.html
@@ -0,0 +1,19 @@
+
+ <!-- Full Page Image Header Area -->
+ <div id="top" class="header">
+ <div class="vert-text">
+ <a href="#intro"><img src="{{ .Site.Params.mainIcon }}" class="logo"></a>
+ <div class="siteTitle">{{ .Site.Title }}</div>
+ <div class="description">{{ .Site.Params.description }}</div>
+ <div class="buttonbox">
+ <a href="/overview/introduction" class="btn btn-primary btn-lg">Docs <i class="icon-idea"></i></a>
+ <a href="#action" class="btn btn-success btn-lg">Install <i class="icon-arrow-down"></i></a>
+ <a href="http://discuss.gohugo.io" class="btn btn-info btn-lg">Community <i class="icon-talking"></i></a>
+ <a href="https://github.com/spf13/hugo" class="btn btn-dark btn-lg">GitHub <i class="icon-circlestar"></i></a>
+ {{ range .Site.Params.social }}
+ <a href="{{ .url }}" class="btn btn-default btn-lg"><i class="icon-{{ lower .title }}"></i> <span class="network-name">{{ .title }}</span></a>
+ {{ end }}
+ </div>
+ </div>
+ </div>
+ <!-- /Full Page Image Header Area -->
diff --git a/layouts/section/showcase.html b/layouts/section/showcase.html
new file mode 100644
index 0000000..65ef64b
--- /dev/null
+++ b/layouts/section/showcase.html
@@ -0,0 +1,12 @@
+{{ partial "header.html" . }}
+
+ <h1 id="title">Hugo Built Sites (with source)</h1>
+ <div class="row">
+ {{ range .Data.Pages.ByDate }}
+ {{ .Render "thumbnail"}}
+ {{ end }}
+ </div>
+ <br><br>
+ If you want to be added to this page, please send a <a href="https://github.com/spf13/hugo/pulls">pull request</a>.
+
+{{ partial "footer.html" . }}
diff --git a/layouts/showcase/thumbnail.html b/layouts/showcase/thumbnail.html
new file mode 100644
index 0000000..b130136
--- /dev/null
+++ b/layouts/showcase/thumbnail.html
@@ -0,0 +1,15 @@
+<div class="col-sm-6 col-md-4" style="padding-bottom:1em;">
+ <div class="thumbnail">
+ <a href="{{ .Params.sitelink }}"><img class="img-responsive img-rounded" style="width:100%;" src="{{ .Params.thumbnail }}" alt="{{ .Description }}"></a>
+ <h4>
+ <a href="{{ .Params.sitelink }}">{{ .Title }}</a>
+ {{ if (isset .Params "sourcelink") }}
+ <a href="{{ .Params.sourcelink }}" class="small pull-right">source</a>
+ {{ end }}
+ </h4>
+ {{ range .Params.tags }}
+ <span class="label label-default" style="font-size:60%;">{{ . }}</span>
+ {{ end }}
+ </div>
+</div>
+