]> njoseph.me Git - hyde.git/commitdiff
Merge pull request #15 from digitalcraftsman/change-theme-in-configs-globally
authordigitalcraftsman <digitalcraftsman@users.noreply.github.com>
Wed, 15 Jul 2015 10:08:39 +0000 (12:08 +0200)
committerdigitalcraftsman <digitalcraftsman@users.noreply.github.com>
Wed, 15 Jul 2015 10:08:39 +0000 (12:08 +0200)
Added an option change the theme globally in the configs

layouts/404.html [new file with mode: 0644]
layouts/partials/head.html
layouts/partials/sidebar.html
theme.toml

diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644 (file)
index 0000000..822572d
--- /dev/null
@@ -0,0 +1,12 @@
+{{ partial "head.html" . }}
+<body>
+
+{{ partial "sidebar.html" . }}
+
+    <div class="content container">
+      <h1>404: Page not found</h1>
+        <p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ .Site.BaseURL }}">Head back home</a> to try finding it again.</p>
+    </div>
+
+  </body>
+</html>
index a9f9401fc5d1767cca17898c43fc36c8472bee3a..fba4ccc0f6dcf9746da8ebe0bbb14c0e655a7a57 100644 (file)
@@ -3,6 +3,7 @@
 <head>
   <link href="http://gmpg.org/xfn/11" rel="profile">
   <meta http-equiv="content-type" content="text/html; charset=utf-8">
+  {{ .Hugo.Generator }}
 
   <!-- Enable responsiveness on mobile devices-->
   <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
   <title> {{ .Title }} &middot; {{ .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="{{ .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="https://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">
+  <link rel="shortcut icon" href="/favicon.png">
 
   <!-- RSS -->
   <link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
index 645b25c9a9fc2c593f55c35df450d8810e4fce02..4bdc33e84d2f833c688ad74f007d4b36de6690d3 100644 (file)
@@ -1,7 +1,7 @@
 <div class="sidebar">
   <div class="container sidebar-sticky">
     <div class="sidebar-about">
-      <h1>{{ .Site.Title }}</h1>
+      <a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a>
       <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>
@@ -10,7 +10,7 @@
     <ul class="sidebar-nav">
       <li><a href="/">Home</a> </li>
       {{ range .Site.Menus.main }}
-        <li><a href="{{.Url}}"> {{ .Name }} </a></li>
+        <li><a href="{{.URL}}"> {{ .Name }} </a></li>
       {{end}}
     </ul>
 
index f4f238e4ce78ff5d9921933e2ae0258ce5802561..d5caeb52848703ada19c06ab6906351975e36fa2 100644 (file)
@@ -3,6 +3,7 @@ license = "MIT"
 description = "An elegant open source and mobile first theme"
 tags = ["blog", "company"]
 features = ["blog", ]
+min_version = 0.14
 
 [author]
     name = "spf13"