Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pdevty/material-design.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpdevty <p.dev.ty@gmail.com>2015-05-16 04:48:47 +0300
committerpdevty <p.dev.ty@gmail.com>2015-05-16 04:48:47 +0300
commitc329d5fdae12680e6aa4755bc957046146f1cbef (patch)
tree65de9d9da7aa971a74ed3032b10a53b4a87a0bfb
parent4969cd4be8f31f6a5116d978446c72172a4246a2 (diff)
add default png
-rw-r--r--README.md42
-rw-r--r--layouts/partials/header.html12
2 files changed, 39 insertions, 15 deletions
diff --git a/README.md b/README.md
index 87147f4..d108e74 100644
--- a/README.md
+++ b/README.md
@@ -5,10 +5,10 @@ Material-Design is a material design theme for [Hugo](http://gohugo.io/).
## Features
- Material Design
-- Google Analytics
+- Google Analytics (optional)
- Pagination
-- Disqus
-- Social links (Twitter, Facebook, GitHub)
+- Disqus (optional)
+- Twitter, Facebook, GitHub links (optional)
- Tags
- Categories
- Highlighting source code
@@ -21,9 +21,15 @@ $ cd themes
$ git clone https://github.com/pdevty/material-design
```
+## Usage
+
+```shell
+$ hugo server -t material-design -w -D
+```
+
## Configuration
-`config.toml`
+config.toml
```toml
theme="material-design"
@@ -32,23 +38,31 @@ languageCode = "en-us"
title = "Your Site Title"
MetaDataFormat = "toml"
paginate = 9
-disqusShortname = "Your Disqus Name"
+disqusShortname = "Your Disqus Name" # optional
copyright = "© 2015 Copyright Text"
[params]
description = "Your Site Description"
- twitter = "Your Twitter Name"
- github = "Your Github Name"
- facebook = "Your facebook Name"
- headerCover = "images/default.png"
- footerCover = "images/default.png"
- googleAnalyticsUserID = "Your Analytics User Id"
+ twitter = "Your Twitter Name" # optional
+ github = "Your Github Name" # optional
+ facebook = "Your facebook Name" # optional
+ headerCover = "images/headerCover.png" # optional
+ footerCover = "images/footerCover.png" # optional
+ googleAnalyticsUserID = "Your Analytics User Id" # optional
```
-## Usage
+content file
-```shell
-$ hugo server -t material-design -w -D
+```toml
++++
+Categories = ["material","desgin"]
+Tags = ["golang","development"]
+date = "2015-05-16"
+title = "About Hugo"
+
++++
+
+content here
```
## Contributing
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 516a2c3..47cfa10 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -8,7 +8,11 @@
<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}});}
+ {{else}}
+ footer.page-footer{background-image: url({{.Site.BaseUrl}}images/default.png);}
+ {{end}}
</style>
</head>
<body>
@@ -33,5 +37,11 @@
</div>
</div>
</div>
- <div class="parallax"><img src="{{.Site.BaseUrl}}{{.Site.Params.headerCover}}"></div>
+ <div class="parallax">
+ {{if .Site.Params.headerCover}}
+ <img src="{{.Site.BaseUrl}}{{.Site.Params.headerCover}}">
+ {{else}}
+ <img src="{{.Site.BaseUrl}}images/default.png">
+ {{end}}
+ </div>
</div>