commit 406c5961cbce9b9defde833e3c68c73a0a05536e Author: vimux Date: Fri Oct 14 23:41:10 2016 +0300 Initial commit diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..2a56551 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2016 Vimux + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2b5c613 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Blank + +Blank — starter [Hugo](//gohugo.io/) theme for developers. Use it to make your own theme. + +![Blank theme screenshot](/images/splash.png) + +## Installation + +In your Hugo site `themes` directory, run: + +``` +$ git clone https://github.com/vimux/blank +``` + +Next, open `config.toml` in the base of the Hugo site and ensure the theme option is set to `blank`. + +``` +theme = "blank" +``` + +For more information read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo. + +## Contributing + +Have you found a bug or got an idea for a new feature? Feel free to use the [issue tracker](//github.com/Vimux/blank/issues) to let me know. Or make directly a [pull request](//github.com/Vimux/blank/pulls). + +## License + +This theme is released under the [MIT license](LICENSE.md). \ No newline at end of file diff --git a/images/screenshot.png b/images/screenshot.png new file mode 100644 index 0000000..106f7cf Binary files /dev/null and b/images/screenshot.png differ diff --git a/images/splash.png b/images/splash.png new file mode 100644 index 0000000..23f7f54 Binary files /dev/null and b/images/splash.png differ diff --git a/images/tn.png b/images/tn.png new file mode 100644 index 0000000..3175dd8 Binary files /dev/null and b/images/tn.png differ diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..e8560c6 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,10 @@ +{{ partial "header.html" . }} +
+ {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }} + {{ range $paginator.Pages }} + {{ partial "summary.html" . }} + {{ end }} + {{ partial "pagination.html" . }} +
+{{ partial "sidebar.html" . }} +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..f584e0f --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,22 @@ +{{ partial "header.html" . }} +
+
+

{{ .Title }}

+ +
+ {{ .Content }} +
+
+
    + {{ range .Params.tags }} +
  • {{ . }}
  • + {{ end }} +
+
+
+ {{ template "_internal/disqus.html" . }} +
+
+
+{{ partial "sidebar.html" . }} +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..e8560c6 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,10 @@ +{{ partial "header.html" . }} +
+ {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }} + {{ range $paginator.Pages }} + {{ partial "summary.html" . }} + {{ end }} + {{ partial "pagination.html" . }} +
+{{ partial "sidebar.html" . }} +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/article.html b/layouts/partials/article.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..7e7d2b1 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..63e6e84 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,23 @@ + + + + + + + {{ .Title }} + {{ with .Site.Params.description }}{{ end }} + {{ with .Site.Params.author }}{{ end }} + {{ if .RSSlink -}}{{- end }} + {{ .Hugo.Generator }} + + +
+ {{ .Site.Title }} + +
\ No newline at end of file diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100644 index 0000000..892afec --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,9 @@ +
+{{ if .Paginator.HasPrev }} + Previous Page +{{ end }} +{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }} +{{ if .Paginator.HasNext }} + Next Page +{{ end }} +
\ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html new file mode 100644 index 0000000..e941767 --- /dev/null +++ b/layouts/partials/sidebar.html @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html new file mode 100644 index 0000000..5315fd4 --- /dev/null +++ b/layouts/partials/summary.html @@ -0,0 +1,13 @@ +
+

{{ .Title }}

+ + {{ range .Params.tags }} + {{ . }} + {{ end }} +
+ {{ .Summary }} + {{ if .Truncated }} + Read more... + {{ end }} +
+
\ No newline at end of file diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..5adf2fe --- /dev/null +++ b/theme.toml @@ -0,0 +1,12 @@ +name = "Blank" +license = "MIT" +licenselink = "https://github.com/vimux/blank/blob/master/LICENSE.md" +description = "Starter Hugo theme for developers." +homepage = "https://github.com/vimux/blank/" +tags = ["blog", "plain", "blank", "starter"] +features = ["blog"] +min_version = 0.17 + +[author] + name = "Vimux" + homepage = "https://github.com/vimux" \ No newline at end of file