diff --git a/themes/hyde/CHANGELOG.md b/themes/hyde/CHANGELOG.md old mode 100644 new mode 100755 diff --git a/themes/hyde/LICENSE.md b/themes/hyde/LICENSE.md old mode 100644 new mode 100755 diff --git a/themes/hyde/README.md b/themes/hyde/README.md old mode 100644 new mode 100755 index d8cb82c..5fa97e6 --- a/themes/hyde/README.md +++ b/themes/hyde/README.md @@ -11,6 +11,7 @@ It pairs a prominent sidebar with uncomplicated content. - [Installation](#installation) - [Options](#options) - [Sidebar menu](#sidebar-menu) + - [Sidebar description](#sidebar-description) - [Sticky sidebar content](#sticky-sidebar-content) - [Themes](#themes) - [Reverse layout](#reverse-layout) @@ -23,6 +24,16 @@ It pairs a prominent sidebar with uncomplicated content. ## Installation +### Quick Start + +To give you a running start this installation puts a fully configured [starter repo](https://github.com/forestryio/hyde-hugo-starter) into your Git account and sets it up in a content manager / CMS. + +_[Forestry](https://forestry.io) Starter-Kit:_ + +[![Import this project into Forestry](https://assets.forestry.io/import-to-forestry.svg)](https://app.forestry.io/quick-start?repo=forestryio/hyde-hugo-starter&provider=github&engine=hugo&version=0.49) + +### Standard Installation + To install Hyde as your default theme, first install this repository in the `themes/` directory: $ cd themes/ @@ -42,7 +53,49 @@ Hyde includes some customizable options, typically applied via classes on the `< ### Sidebar menu -Create a list of nav links in the sidebar by assigning "menu=main" in the front matter. +Create a list of nav links in the sidebar by assigning "menu=main" in the front matter, like so: + +**TOML** +```toml +theme = "hyde" + +[Menus] + main = [ + {Name = "Github", URL = "https://github.com/username/"}, + {Name = "LinkedIn", URL = "https://www.linkedin.com/in/username/"} + ] +``` + +**YAML** +```yaml +theme: "hyde" + +Menus: + main: + - Name: "Github" + URL: "https://github.com/username/" + - Name: "LinkedIn" + URL: "https://www.linkedin.com/in/username/" +``` + +### Sidebar description +Customise the describe of your page using `description`, like so: + +**TOML** +```toml +theme = "hyde" + +[params] + description = "Your custom description" +``` + +**YAML** +```yaml +theme: "hyde" + +params: + description = "Your custom description" +``` ### Sticky sidebar content diff --git a/themes/hyde/archetypes/default.md b/themes/hyde/archetypes/default.md old mode 100644 new mode 100755 diff --git a/themes/hyde/go.mod b/themes/hyde/go.mod new file mode 100755 index 0000000..3ee4de3 --- /dev/null +++ b/themes/hyde/go.mod @@ -0,0 +1,3 @@ +module github.com/spf13/hyde + +go 1.12 diff --git a/themes/hyde/images/screenshot.png b/themes/hyde/images/screenshot.png old mode 100644 new mode 100755 diff --git a/themes/hyde/images/tn.png b/themes/hyde/images/tn.png old mode 100644 new mode 100755 diff --git a/themes/hyde/layouts/404.html b/themes/hyde/layouts/404.html old mode 100644 new mode 100755 diff --git a/themes/hyde/layouts/_default/baseof.html b/themes/hyde/layouts/_default/baseof.html old mode 100644 new mode 100755 diff --git a/themes/hyde/layouts/_default/list.html b/themes/hyde/layouts/_default/list.html old mode 100644 new mode 100755 diff --git a/themes/hyde/layouts/_default/single.html b/themes/hyde/layouts/_default/single.html old mode 100644 new mode 100755 diff --git a/themes/hyde/layouts/index.html b/themes/hyde/layouts/index.html old mode 100644 new mode 100755 index 6b273ff..ec6d2eb --- a/themes/hyde/layouts/index.html +++ b/themes/hyde/layouts/index.html @@ -1,6 +1,6 @@ {{ define "main" -}}
-{{ range .Data.Pages -}} +{{ range .Site.RegularPages -}}

{{ .Title }} diff --git a/themes/hyde/layouts/partials/head.html b/themes/hyde/layouts/partials/head.html old mode 100644 new mode 100755 index ff4879b..d5e52eb --- a/themes/hyde/layouts/partials/head.html +++ b/themes/hyde/layouts/partials/head.html @@ -1,9 +1,9 @@ - + - {{ .Hugo.Generator }} + {{ hugo.Generator }} @@ -13,6 +13,7 @@ {{- else -}} {{ .Title }} · {{ .Site.Title }} {{- end }} + @@ -26,8 +27,10 @@ - - + + {{ range .AlternativeOutputFormats -}} + {{ printf `` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} + {{ end -}} {{ partial "hook_head_end.html" . }} diff --git a/themes/hyde/layouts/partials/head_fonts.html b/themes/hyde/layouts/partials/head_fonts.html old mode 100644 new mode 100755 diff --git a/themes/hyde/layouts/partials/hook_head_end.html b/themes/hyde/layouts/partials/hook_head_end.html old mode 100644 new mode 100755 diff --git a/themes/hyde/layouts/partials/sidebar.html b/themes/hyde/layouts/partials/sidebar.html old mode 100644 new mode 100755 diff --git a/themes/hyde/static/apple-touch-icon-144-precomposed.png b/themes/hyde/static/apple-touch-icon-144-precomposed.png new file mode 100755 index 0000000..19323de Binary files /dev/null and b/themes/hyde/static/apple-touch-icon-144-precomposed.png differ diff --git a/themes/hyde/static/css/hyde.css b/themes/hyde/static/css/hyde.css old mode 100644 new mode 100755 diff --git a/themes/hyde/static/css/poole.css b/themes/hyde/static/css/poole.css old mode 100644 new mode 100755 index 7ddd054..ec6a32f --- a/themes/hyde/static/css/poole.css +++ b/themes/hyde/static/css/poole.css @@ -63,11 +63,12 @@ body { background-color: #fff; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; + text-size-adjust: 100%; } /* No `:visited` state is required by default (browsers will use `a`) */ a { - color: #268bd2; + color: #227bb9; text-decoration: none; } /* `:focus` is linked to `:hover` for basic accessibility */ @@ -152,7 +153,7 @@ pre { code { padding: .25em .5em; font-size: 85%; - color: #bf616a; + color: #b3555e; background-color: #f9f9f9; border-radius: 3px; } @@ -322,7 +323,7 @@ tbody tr:nth-child(odd) th { display: block; margin-top: -.5rem; margin-bottom: 1rem; - color: #9a9a9a; + color: #757575; } /* Related posts */ @@ -343,7 +344,7 @@ tbody tr:nth-child(odd) th { color: #999; } .related-posts li a:hover { - color: #268bd2; + color: #227bb9; text-decoration: none; } .related-posts li a:hover small { diff --git a/themes/hyde/static/css/print.css b/themes/hyde/static/css/print.css old mode 100644 new mode 100755 diff --git a/themes/hyde/static/css/syntax.css b/themes/hyde/static/css/syntax.css old mode 100644 new mode 100755 diff --git a/themes/hyde/static/favicon.png b/themes/hyde/static/favicon.png new file mode 100755 index 0000000..84cce4d Binary files /dev/null and b/themes/hyde/static/favicon.png differ diff --git a/themes/hyde/theme.toml b/themes/hyde/theme.toml old mode 100644 new mode 100755 index 4703ca5..a6cdeae --- a/themes/hyde/theme.toml +++ b/themes/hyde/theme.toml @@ -4,7 +4,7 @@ licenselink = "https://github.com/spf13/hyde/blob/master/LICENSE.md" description = "An elegant open source and mobile first theme" tags = ["blog", "company"] features = ["blog", "themes", "disqus"] -min_version = 0.21 +min_version = 0.53 [author] name = "spf13"