diff options
author | pdevty <p.dev.ty@gmail.com> | 2015-05-16 13:15:30 +0300 |
---|---|---|
committer | pdevty <p.dev.ty@gmail.com> | 2015-05-16 13:15:30 +0300 |
commit | ab21a80c26390d59455821eed5c2cd041b8f954d (patch) | |
tree | 53b6548aa8d5143bf53cf8cb149f4ff67160d13a | |
parent | c329d5fdae12680e6aa4755bc957046146f1cbef (diff) |
bugfix path
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | archetypes/default.md | 1 | ||||
-rw-r--r-- | layouts/_default/single.html | 4 | ||||
-rw-r--r-- | layouts/partials/content.html | 4 | ||||
-rw-r--r-- | layouts/partials/footer.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 20 |
6 files changed, 23 insertions, 20 deletions
@@ -11,6 +11,7 @@ Material-Design is a material design theme for [Hugo](http://gohugo.io/). - Twitter, Facebook, GitHub links (optional)
- Tags
- Categories
+- Cover image (optional)
- Highlighting source code
## Installation
@@ -37,7 +38,7 @@ baseurl = "Your Site URL" languageCode = "en-us"
title = "Your Site Title"
MetaDataFormat = "toml"
-paginate = 9
+paginate = 9 # To specify a multiple of 3
disqusShortname = "Your Disqus Name" # optional
copyright = "© 2015 Copyright Text"
@@ -49,14 +50,17 @@ copyright = "© 2015 Copyright Text" headerCover = "images/headerCover.png" # optional
footerCover = "images/footerCover.png" # optional
googleAnalyticsUserID = "Your Analytics User Id" # optional
+
+[permalinks]
+ post = "/:year/:month/:day/:title/" # optional
```
content file
```toml
+++
-Categories = ["material","desgin"]
-Tags = ["golang","development"]
+Categories = ["material","desgin"] # optional
+Tags = ["golang","development"] # optional
date = "2015-05-16"
title = "About Hugo"
diff --git a/archetypes/default.md b/archetypes/default.md index 230380b..b03c0c1 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,5 +1,4 @@ +++
-Description = ""
Tags = []
Categories = []
+++
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 728d8b2..7ad1603 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -11,7 +11,7 @@ <p>
{{if .Params.categories }}
{{ range $index, $category := .Params.categories }}
- <a href="{{$baseurl}}categories/{{ $category | urlize }}/">{{ $category }}</a>
+ <a href="{{$baseurl}}/categories/{{ $category | urlize }}/">{{ $category }}</a>
{{ end }}
{{end}}
</p>
@@ -19,7 +19,7 @@ <p>{{ .Date.Format "2 Jan 2006" }}
{{if .Params.tags }}
{{ range $index, $tag := .Params.tags }}
- <a href="{{$baseurl}}tags/{{ $tag | urlize }}/">#{{ $tag }}</a>
+ <a href="{{$baseurl}}/tags/{{ $tag | urlize }}/">#{{ $tag }}</a>
{{ end }}
{{end}}
</p>
diff --git a/layouts/partials/content.html b/layouts/partials/content.html index e405110..2eda591 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -11,7 +11,7 @@ <p>
{{if .Params.categories }}
{{ range $index, $category := .Params.categories }}
- <a href="{{$baseurl}}categories/{{ $category | urlize }}/">{{ $category }}</a>
+ <a href="{{$baseurl}}/categories/{{ $category | urlize }}/">{{ $category }}</a>
{{ end }}
{{end}}
</p>
@@ -20,7 +20,7 @@ {{ .Date.Format "2 Jan 2006" }}
{{if .Params.tags }}
{{ range $index, $tag := .Params.tags }}
- <a href="{{$baseurl}}tags/{{ $tag | urlize }}/">#{{ $tag }}</a>
+ <a href="{{$baseurl}}/tags/{{ $tag | urlize }}/">#{{ $tag }}</a>
{{ end }}
{{end}}
</p>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a419696..28aabe0 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,8 +6,8 @@ </div>
</footer>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
- <script src="{{.Site.BaseUrl}}js/materialize.min.js"></script>
- <script src="{{.Site.BaseUrl}}js/init.js"></script>
+ <script src="{{.Site.BaseUrl}}/js/materialize.min.js"></script>
+ <script src="{{.Site.BaseUrl}}/js/init.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
{{with .Site.Params.googleAnalyticsUserID }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 47cfa10..19f222d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -4,14 +4,14 @@ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<title>{{ .Title }}</title>
- <link href="{{.Site.BaseUrl}}css/materialize.min.css" type="text/css" rel="stylesheet" media="screen,projection"/>
- <link href="{{.Site.BaseUrl}}css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
+ <link href="{{.Site.BaseUrl}}/css/materialize.min.css" type="text/css" rel="stylesheet" media="screen,projection"/>
+ <link href="{{.Site.BaseUrl}}/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/styles/default.min.css">
<style type="text/css">
{{if .Site.Params.footerCover}}
- footer.page-footer{background-image: url({{.Site.BaseUrl}}{{.Site.Params.footerCover}});}
+ footer.page-footer{background-image: url({{.Site.BaseUrl}}/{{.Site.Params.footerCover}});}
{{else}}
- footer.page-footer{background-image: url({{.Site.BaseUrl}}images/default.png);}
+ footer.page-footer{background-image: url({{.Site.BaseUrl}}/images/default.png);}
{{end}}
</style>
</head>
@@ -25,23 +25,23 @@ </div>
<div class="row center">
{{if .Site.Params.github}}
- <a href="https://github.com/{{ .Site.Params.github }}"><img src="{{.Site.BaseUrl}}images/github2-dreamstale35.png"></a>
+ <a href="https://github.com/{{ .Site.Params.github }}"><img src="{{.Site.BaseUrl}}/images/github2-dreamstale35.png"></a>
{{end}}
{{if .Site.Params.facebook}}
- <a href="https://www.facebook.com/{{.Site.Params.facebook}}"><img src="{{.Site.BaseUrl}}images/facebook-dreamstale25.png"></a>
+ <a href="https://www.facebook.com/{{.Site.Params.facebook}}"><img src="{{.Site.BaseUrl}}/images/facebook-dreamstale25.png"></a>
{{end}}
{{if .Site.Params.twitter}}
- <a href="https://twitter.com/{{.Site.Params.twitter}}"><img src="{{.Site.BaseUrl}}images/twitter-dreamstale71.png"></a>
+ <a href="https://twitter.com/{{.Site.Params.twitter}}"><img src="{{.Site.BaseUrl}}/images/twitter-dreamstale71.png"></a>
{{end}}
- <a href="{{.Site.BaseUrl}}index.xml"><img src="{{.Site.BaseUrl}}images/feed-dreamstale27.png"></a>
+ <a href="{{.Site.BaseUrl}}/index.xml"><img src="{{.Site.BaseUrl}}/images/feed-dreamstale27.png"></a>
</div>
</div>
</div>
<div class="parallax">
{{if .Site.Params.headerCover}}
- <img src="{{.Site.BaseUrl}}{{.Site.Params.headerCover}}">
+ <img src="{{.Site.BaseUrl}}/{{.Site.Params.headerCover}}">
{{else}}
- <img src="{{.Site.BaseUrl}}images/default.png">
+ <img src="{{.Site.BaseUrl}}/images/default.png">
{{end}}
</div>
</div>
|