diff options
-rw-r--r-- | layouts/_default/list.html | 21 | ||||
-rw-r--r-- | layouts/_default/single.html | 21 | ||||
-rw-r--r-- | layouts/index.html | 40 | ||||
-rw-r--r-- | layouts/partials/head.html | 39 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 34 |
5 files changed, 69 insertions, 86 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d376d80..35f2a6a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,15 +1,12 @@ {{ template "theme/partials/head.html" . }} -<body> - + <body> {{ template "theme/partials/sidebar.html" . }} - - <div class="content container"> - <ul class="posts"> - {{ range .Data.Pages }} - <li><span><a href="{{ .Permalink }}">{{ .Title }}</a><time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></li> - {{ end }} - </ul> - </div> - - </body> + <div class="content container"> + <ul class="posts"> + {{ range .Data.Pages }} + <li><span><a href="{{ .Permalink }}">{{ .Title }}</a><time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></li> + {{ end }} + </ul> + </div> + </body> </html> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e0b2f94..f627d2d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,15 +1,12 @@ {{ template "theme/partials/head.html" . }} -<body> - + <body> {{ template "theme/partials/sidebar.html" . }} - - <div class="content container"> -<div class="post"> - <h1>{{ .Title }}</h1> - <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span> - {{ .Content }} -</div> -</div> - - </body> + <div class="content container"> + <div class="post"> + <h1>{{ .Title }}</h1> + <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span> + {{ .Content }} + </div> + </div> + </body> </html> diff --git a/layouts/index.html b/layouts/index.html index b8c9d65..dbc05c6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,26 +1,20 @@ {{ template "theme/partials/head.html" . }} -<body> - + <body> {{ template "theme/partials/sidebar.html" . }} - - <div class="content container"> -<div class="posts"> - - {{ range .Data.Pages }} - <div class="post"> - <h1 class="post-title"> - <a href="{{ .Permalink }}"> - {{ .Title }} - </a> - </h1> - - <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span> - - {{ .Content }} - </div> - {{ end }} -</div> -</div> - - </body> + <div class="content container"> + <div class="posts"> + {{ range .Data.Pages }} + <div class="post"> + <h1 class="post-title"> + <a href="{{ .Permalink }}"> + {{ .Title }} + </a> + </h1> + <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span> + {{ .Content }} + </div> + {{ end }} + </div> + </div> + </body> </html> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4ddf0fa..4e8f1c5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,24 +1,19 @@ <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us"> -<head> - <link href="http://gmpg.org/xfn/11" rel="profile"> - <meta http-equiv="content-type" content="text/html; charset=utf-8"> - - <!-- Enable responsiveness on mobile devices--> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> - - <title> {{ .Title }} · {{ .Site.Title }} </title> - - <!-- CSS --> - <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/poole.css"> - <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/syntax.css"> - <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/hyde.css"> - <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface"> - - <!-- Icons --> - <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png"> - <link rel="shortcut icon" href="/favicon.ico"> - - <!-- RSS --> - <link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> -</head> + <head> + <link href="http://gmpg.org/xfn/11" rel="profile"> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <!-- Enable responsiveness on mobile devices--> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> + <title> {{ .Title }} · {{ .Site.Title }} </title> + <!-- CSS --> + <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/poole.css"> + <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/syntax.css"> + <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/hyde.css"> + <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface"> + <!-- Icons --> + <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png"> + <link rel="shortcut icon" href="/favicon.ico"> + <!-- RSS --> + <link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + </head> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index b199a6b..befbea4 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,19 +1,19 @@ -<div class="sidebar"> - <div class="container sidebar-sticky"> - <div class="sidebar-about"> - <h1>{{ .Site.Title }}</h1> - <p class="lead"> - {{ with .Site.Params.Description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}} - </p> - </div> + <div class="sidebar"> + <div class="container sidebar-sticky"> + <div class="sidebar-about"> + <h1>{{ .Site.Title }}</h1> + <p class="lead"> + {{ with .Site.Params.Description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}} + </p> + </div> - <ul class="sidebar-nav"> - <li><a href="/">Home</a> </li> - {{ range .Site.Menus.main }} - <li><a href="{{.Url}}"> {{ .Name }} </a></li> - {{end}} - </ul> + <ul class="sidebar-nav"> + <li><a href="/">Home</a> </li> + {{ range .Site.Menus.main }} + <li><a href="{{.Url}}"> {{ .Name }} </a></li> + {{end}} + </ul> - <p>{{ with .Site.Params.Copyright }}{{.}}{{ else }}© {{.Now.Format "2006"}}. All rights reserved. {{end}}</p> - </div> -</div> + <p>{{ with .Site.Params.Copyright }}{{.}}{{ else }}© {{.Now.Format "2006"}}. All rights reserved. {{end}}</p> + </div> + </div> |