├── LICENSE.md ├── README.md ├── archetypes └── default.md ├── images ├── screenshot.png └── tn.png ├── layouts ├── _default │ ├── list.html │ ├── single.html │ └── terms.html ├── index.html └── partials │ ├── content.html │ ├── disqus.html │ ├── footer.html │ ├── header.html │ └── pagination.html ├── static ├── css │ ├── materialize.min.css │ └── style.css ├── font │ ├── material-design-icons │ │ ├── LICENSE.txt │ │ ├── Material-Design-Icons.eot │ │ ├── Material-Design-Icons.svg │ │ ├── Material-Design-Icons.ttf │ │ ├── Material-Design-Icons.woff │ │ └── Material-Design-Icons.woff2 │ └── roboto │ │ ├── Roboto-Bold.ttf │ │ ├── Roboto-Bold.woff │ │ ├── Roboto-Bold.woff2 │ │ ├── Roboto-Light.ttf │ │ ├── Roboto-Light.woff │ │ ├── Roboto-Light.woff2 │ │ ├── Roboto-Medium.ttf │ │ ├── Roboto-Medium.woff │ │ ├── Roboto-Medium.woff2 │ │ ├── Roboto-Regular.ttf │ │ ├── Roboto-Regular.woff │ │ ├── Roboto-Regular.woff2 │ │ ├── Roboto-Thin.ttf │ │ ├── Roboto-Thin.woff │ │ └── Roboto-Thin.woff2 ├── images │ ├── default.png │ ├── facebook-dreamstale25.png │ ├── feed-dreamstale27.png │ ├── github2-dreamstale35.png │ ├── gitlab.png │ ├── gplus48x48.png │ ├── linkedin-dreamstale45.png │ └── twitter-dreamstale71.png └── js │ ├── init.js │ └── materialize.min.js └── theme.toml /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 pdevty 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Material-Design 2 | 3 | Material-Design is a simple material design theme for [Hugo](http://gohugo.io/). 4 | 5 |  6 | 7 | demo : [http://pdevty.github.io/blog/](http://pdevty.github.io/blog/) 8 | 9 | ## Features 10 | 11 | - Simple Material Design by [Materialize](http://materializecss.com/) 12 | - Google Analytics (optional) 13 | - Pagination 14 | - Disqus (optional) 15 | - Twitter, Facebook, Gitlab, GitHub, Google+, LinkedIn links (optional) 16 | - Tags 17 | - Categories 18 | - Cover image (optional) 19 | - Highlighting source code 20 | 21 | ## Installation 22 | 23 | ```shell 24 | $ mkdir themes 25 | $ cd themes 26 | $ git clone https://github.com/pdevty/material-design 27 | ``` 28 | 29 | ## Usage 30 | 31 | ```shell 32 | $ hugo server -t material-design -w -D 33 | ``` 34 | 35 | ## Configuration 36 | 37 | config.toml 38 | 39 | ```toml 40 | theme="material-design" 41 | baseurl = "Your Site URL" 42 | languageCode = "en-us" 43 | title = "Your Site Title" 44 | MetaDataFormat = "toml" 45 | paginate = 9 # To specify a multiple of 3 46 | disqusShortname = "Your Disqus Name" # optional 47 | copyright = "© 2015 Copyright Text" 48 | 49 | [params] 50 | description = "Your Site Description" # optional 51 | twitter = "Your Twitter Name" # optional 52 | gitlab = "Your Gitlab Name" # optional 53 | github = "Your Github Name" # optional 54 | facebook = "Your facebook Name" # optional 55 | gplus = "Your Google+ profile name" # optional 56 | linkedin = "Your LinkedIn Name" # optional 57 | headerCover = "images/headerCover.png" # optional 58 | footerCover = "images/footerCover.png" # optional 59 | googleAnalyticsUserID = "Your Analytics User Id" # optional 60 | 61 | [permalinks] 62 | post = "/:year/:month/:day/:title/" # optional 63 | ``` 64 | 65 | ## Contributing 66 | 67 | 1. Fork it 68 | 2. Create your feature branch (`git checkout -b my-new-feature`) 69 | 3. Commit your changes (`git commit -am 'Add some feature'`) 70 | 4. Push to the branch (`git push origin my-new-feature`) 71 | 5. Create new Pull Request 72 | -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | +++ 2 | Tags = [] 3 | Categories = [] 4 | +++ -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pdevty/material-design/587b3af7db83f4677dfd905520ba968ada3686f7/images/screenshot.png -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pdevty/material-design/587b3af7db83f4677dfd905520ba968ada3686f7/images/tn.png -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ partial "header.html" . }} 2 | 3 |
12 | {{if .Params.categories }} 13 | {{ range $index, $category := .Params.categories }} 14 | {{ $category }} 15 | {{ end }} 16 | {{end}} 17 |
18 |{{ .Content }}
19 |{{ .Date.Format "2 Jan 2006" }} 20 | {{if .Params.tags }} 21 | {{ range $index, $tag := .Params.tags }} 22 | #{{ $tag }} 23 | {{ end }} 24 | {{end}} 25 |
26 | {{ with .Site.DisqusShortname }} 27 | {{ partial "disqus.html" . }} 28 | {{ end }} 29 |12 | {{if .Params.categories }} 13 | {{ range $index, $category := .Params.categories }} 14 | {{ $category }} 15 | {{ end }} 16 | {{end}} 17 |
18 |{{ .Summary }}
19 |20 | {{ .Date.Format "2 Jan 2006" }} 21 | {{if .Params.tags }} 22 | {{ range $index, $tag := .Params.tags }} 23 | #{{ $tag }} 24 | {{ end }} 25 | {{end}} 26 |
27 |