diff options
author | Dan Hersam <dan@hersam.com> | 2015-01-09 20:46:57 +0300 |
---|---|---|
committer | Dan Hersam <dan@hersam.com> | 2015-01-09 20:46:57 +0300 |
commit | a7254f93b5e1e765c55da5a53a5eab27737a5361 (patch) | |
tree | f501eeff0365213ac860b0e838ef38064a9235b6 /layouts |
Initial revision
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 21 | ||||
-rw-r--r-- | layouts/_default/single.html | 18 | ||||
-rw-r--r-- | layouts/index.html | 17 | ||||
-rw-r--r-- | layouts/partials/categories.html | 17 | ||||
-rw-r--r-- | layouts/partials/content.html | 41 | ||||
-rw-r--r-- | layouts/partials/footer.html | 13 | ||||
-rw-r--r-- | layouts/partials/header.html | 59 | ||||
-rw-r--r-- | layouts/partials/recentposts.html | 13 | ||||
-rw-r--r-- | layouts/partials/searchform.html | 18 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 17 | ||||
-rw-r--r-- | layouts/shortcodes/figure.html | 4 |
11 files changed, 238 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..abd9686 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,21 @@ +{{ partial "header.html" . }} + +<div id="main-content" class="main-content"> + + <div id="primary" class="content-area"> + <div id="content" class="site-content" role="main"> + + <header class="archive-header"> + <h1 class="archive-title">{{ .Title }} Archive</h1> + </header> + + {{ range where .Data.Pages "Section" "post" }} + {{ partial "content.html" . }} + {{ end }} + + </div><!-- #content --> + </div><!-- #primary --> + {{ partial "sidebar.html" . }} +</div><!-- #main-content --> + +{{ partial "footer.html" . }}
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..10ed20c --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,18 @@ +{{ partial "header.html" . }} + +<div id="main-content" class="main-content"> + + <div id="primary" class="content-area"> + <div id="content" class="site-content" role="main"> + + {{ partial "content.html" . }} + + {{ template "_internal/disqus.html" . }} + + </div><!-- #content --> + + </div><!-- #primary --> + {{ partial "sidebar.html" . }} +</div><!-- #main-content --> + +{{ partial "footer.html" . }}
\ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..e7101e6 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,17 @@ +{{ partial "header.html" . }} + +<div id="main-content" class="main-content"> + + <div id="primary" class="content-area"> + <div id="content" class="site-content" role="main"> + + {{ range first 10 (where .Data.Pages "Section" "post") }} + {{ partial "content.html" . }} + {{ end }} + + </div><!-- #content --> + </div><!-- #primary --> + {{ partial "sidebar.html" . }} +</div><!-- #main-content --> + +{{ partial "footer.html" . }}
\ No newline at end of file diff --git a/layouts/partials/categories.html b/layouts/partials/categories.html new file mode 100644 index 0000000..e0c4447 --- /dev/null +++ b/layouts/partials/categories.html @@ -0,0 +1,17 @@ +<aside id="categories-3" class="widget widget_categories"> + + <h1 class="widget-title">Categories</h1> + + <ul> + {{ $baseurl := .Site.BaseUrl }} + {{ range $key, $value := .Site.Taxonomies.categories }} + + <li class="cat-item"> + <a href="{{ $baseurl }}/categories/{{ $key | urlize }}/index.html">{{ $key | title }}</a> + </li> + + {{ end }} + + </ul> + +</aside>
\ No newline at end of file diff --git a/layouts/partials/content.html b/layouts/partials/content.html new file mode 100644 index 0000000..c48df40 --- /dev/null +++ b/layouts/partials/content.html @@ -0,0 +1,41 @@ +<article class="post type-post status-publish format-standard hentry"> + + <!-- .entry-header --> + <header class="entry-header"> + + {{ $baseurl := .Site.BaseUrl }} + + <div class="entry-meta"> + <span class="cat-links"> + {{ range .Params.categories }} + <a href="{{ $baseurl }}/categories/{{ lower . | urlize }}/index.html" rel="category">{{ . }}</a> + {{ end }} + </span> + </div> + + <h1 class="entry-title">{{ .Title }}</h1> + + <div class="entry-meta"> + <span class="entry-date"> + <a href="{{ .Permalink }}/index.html" rel="bookmark"> + <time class="entry-date" datetime="{{ .Date }}"> + {{ .Date.Format "January 2" }} + </time> + </a> + </span> + </div><!-- .entry-meta --> + + </header> + + <div class="entry-content"> + {{ .Content }} + </div><!-- .entry-content --> + + <footer class="entry-meta"> + <span class="tag-links"> + {{ range .Params.tags }} + <a href="{{ $baseurl}}/tags/{{ lower . | urlize }}/index.html" rel="tag">{{ . }}</a> + {{ end }} + </span> + </footer> +</article> <!-- #post-## -->
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..a7195e8 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,13 @@ + </div><!-- #main --> + + <footer id="colophon" class="site-footer" role="contentinfo"> + + <div class="site-info"> + <a href="http://gohugo.io">Proudly powered by Hugo</a> + </div><!-- .site-info --> + </footer><!-- #colophon --> + </div><!-- #page --> + + <script type='text/javascript' src='{{ .Site.BaseUrl }}/js/functions.js'></script> +</body> +</html>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..eb45adb --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,59 @@ +<!DOCTYPE html> + +<html lang="{{ with .Site.LanguageCode}}{{ . }}{{ else }}en-US{{end}}"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width"> + <title>{{ if .IsPage }}{{ .Title }} · {{ end }}{{ .Site.Title }}</title> + <link rel="profile" href="http://gmpg.org/xfn/11"> + {{ "<!--[if lt IE 9]>" | safeHtml }} + <script src="{{ .Site.BaseUrl }}/js/html5.js"></script> + {{ "<![endif]-->" | safeHtml }} + + <link href="{{ .Site.BaseUrl }}/index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + + <link rel='stylesheet' id='twentyfourteen-lato-css' href='//fonts.googleapis.com/css?family=Lato%3A300%2C400%2C700%2C900%2C300italic%2C400italic%2C700italic&subset=latin%2Clatin-ext' type='text/css' media='all' /> + + <link rel='stylesheet' id='genericons-css' href='{{ .Site.BaseUrl }}/genericons/genericons.css' type='text/css' media='all' /> + <link rel='stylesheet' id='twentyfourteen-style-css' href='{{ .Site.BaseUrl }}/css/style.css' type='text/css' media='all' /> + <!--[if lt IE 9]> + <link rel='stylesheet' id='twentyfourteen-ie-css' href='/css/ie.css' type='text/css' media='all' /> + <![endif]--> + <script type='text/javascript' src='{{ .Site.BaseUrl }}/js/jquery/jquery.js'></script> + <script type='text/javascript' src='{{ .Site.BaseUrl }}/js/jquery/jquery-migrate.min.js'></script> + <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style> +</head> + +<body class="home blog masthead-fixed list-view full-width grid"> +<div id="page" class="hfeed site"> + <header id="masthead" class="site-header" role="banner"> + <div class="header-main"> + <h1 class="site-title"><a href="{{ .Site.BaseUrl }}/index.html" rel="home">{{ .Site.Title }}</a></h1> + + <div class="search-toggle"> + <a href="#search-container" class="screen-reader-text">Search</a> + </div> + + <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation"> + <button class="menu-toggle">Primary Menu</button> + <a class="screen-reader-text skip-link" href="#content">Skip to content</a> + <div class="nav-menu"> + <ul> + {{ range .Site.Menus.main }} + <li class="page_item"> + <a href="{{ .Url }}index.html">{{ .Name }}</a> + </li> + {{ end }} + </ul> + </div> + </nav> + </div> + + <div id="search-container" class="search-box-wrapper hide"> + <div class="search-box"> + {{ partial "searchform.html" . }} + </div> + </div> + </header><!-- #masthead --> + + <div id="main" class="site-main"> diff --git a/layouts/partials/recentposts.html b/layouts/partials/recentposts.html new file mode 100644 index 0000000..8746e77 --- /dev/null +++ b/layouts/partials/recentposts.html @@ -0,0 +1,13 @@ +<aside id="recent-posts-3" class="widget widget_recent_entries"> + + {{ if isset .Data "Pages" }} + <h1 class="widget-title">Recent Posts</h1> + <ul> + {{ range first 5 (where .Data.Pages "Section" "post") }} + <li> + <a href="{{ .Permalink }}/index.html">{{ .Title }}</a> + </li> + {{ end }} + </ul> + {{ end }} +</aside>
\ No newline at end of file diff --git a/layouts/partials/searchform.html b/layouts/partials/searchform.html new file mode 100644 index 0000000..d8161af --- /dev/null +++ b/layouts/partials/searchform.html @@ -0,0 +1,18 @@ +<script type="text/javascript"> + function site_search(obj) { + var host = window.location.host; + obj.q.value = "site:" + host + " " + obj.ss_q.value; + } +</script> + +<aside id="search-3" class="widget widget_search"> + <form role="search" class="search-form" action="//www.google.com/search" method="get" onSubmit="site_search(this)"> + + <input name="q" type="hidden" /> + <label> + <span class="screen-reader-text">Search for:</span> + <input name="ss_q" type="text" placeholder="Search ..." class="search-field" /> + </label> + <input type="submit" value="Search" class="search-submit" /> + </form> +</aside>
\ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html new file mode 100644 index 0000000..561213f --- /dev/null +++ b/layouts/partials/sidebar.html @@ -0,0 +1,17 @@ +<div id="secondary"> + + {{ if isset .Site.Params "Description" }} + {{ with .Site.Params.Description }}<h2 class="site-description">{{ . }}</h2>{{ end }} + {{ end }} + + <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary"> + + {{ partial "searchform.html" . }} + + {{ partial "recentposts.html" . }} + + {{ partial "categories.html" . }} + + </div> + +</div><!-- #secondary --> diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html new file mode 100644 index 0000000..155de5b --- /dev/null +++ b/layouts/shortcodes/figure.html @@ -0,0 +1,4 @@ +<figure class="wp-caption alignnone"> + <img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}"> + <figcaption class="wp-caption-text">{{ .Get "caption" }}</figcaption> +</figure> |