diff options
author | Alan Pearce | 2019-06-15 20:32:22 +0200 |
---|---|---|
committer | Alan Pearce | 2019-06-15 20:32:22 +0200 |
commit | cd464ebccfc2d517bce1abccbcb43e7f3d1948d3 (patch) | |
tree | d27bd82aa0017ce0d285bdd1369430b9a590920b | |
parent | 15a6ffcdbbba13c1635c0fc45bfbf4313e75c074 (diff) | |
parent | e36f5799b396ecf7a665b330da8cac5b0b6e2891 (diff) | |
download | hyde-cd464ebccfc2d517bce1abccbcb43e7f3d1948d3.tar.lz hyde-cd464ebccfc2d517bce1abccbcb43e7f3d1948d3.tar.zst hyde-cd464ebccfc2d517bce1abccbcb43e7f3d1948d3.zip |
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 7 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 6 | ||||
-rw-r--r-- | theme.toml | 2 |
6 files changed, 22 insertions, 9 deletions
diff --git a/README.md b/README.md index d8cb82c..04d9654 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,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/ diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8b6c324..ddf0d35 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,4 +7,4 @@ {{ template "_internal/google_analytics_async.html" . }} </body> -</html> \ No newline at end of file +</html> diff --git a/layouts/index.html b/layouts/index.html index 04d3175..f9ddeae 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" -}} <div class="posts"> {{ range .Data.Pages -}} -<div class="post"> +<article class="post"> <h1 class="post-title"> <a href="{{ .Permalink }}">{{ .Title }}</a> </h1> @@ -12,7 +12,7 @@ <a href="{{ .RelPermalink }}">Read Moreā¦</a> </div> {{ end }} -</div> +</article> {{- end }} </div> {{- end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5d1df3c..d7b936c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,7 @@ <!DOCTYPE html> <html lang="en-GB"> <head> + <link href="//gmpg.org/xfn/11" rel="profile"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> @@ -18,6 +19,8 @@ <link rel="prefetch" href="/css/syntax.css"> {{- end }} <link rel="stylesheet" href="/css/hyde.css"> - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"> + {{ range .AlternativeOutputFormats -}} + {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} + {{ end -}} {{ partial "hook_head_end.html" . }} - </head> \ No newline at end of file + </head> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index c89cc6f..c8fa089 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -19,9 +19,9 @@ <nav> <ul class="sidebar-nav"> - <li><a href="{{ .Site.BaseURL }}">Home</a></li> - {{- range .Site.Menus.main }} - <li><a href="{{.URL}}">{{ .Name }}</a></li> + <li><a href="{{ .Site.BaseURL }}">Home</a> </li> + {{ range .Site.Menus.main -}} + <li><a href="{{.URL}}"> {{ .Name }} </a></li> {{- end }} </ul> </nav> diff --git a/theme.toml b/theme.toml index 4703ca5..a6cdeae 100644 --- a/theme.toml +++ b/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" |