From aa297d560c80ed960b7d2c4dae396d702cbcc068 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Mon, 16 Dec 2019 00:06:36 -0600 Subject: [PATCH] Updating hyde theme --- themes/hyde/CHANGELOG.md | 0 themes/hyde/LICENSE.md | 0 themes/hyde/README.md | 55 +++++++++++++++++- themes/hyde/archetypes/default.md | 0 themes/hyde/go.mod | 3 + themes/hyde/images/screenshot.png | Bin themes/hyde/images/tn.png | Bin themes/hyde/layouts/404.html | 0 themes/hyde/layouts/_default/baseof.html | 0 themes/hyde/layouts/_default/list.html | 0 themes/hyde/layouts/_default/single.html | 0 themes/hyde/layouts/index.html | 2 +- themes/hyde/layouts/partials/head.html | 11 ++-- themes/hyde/layouts/partials/head_fonts.html | 0 .../hyde/layouts/partials/hook_head_end.html | 0 themes/hyde/layouts/partials/sidebar.html | 0 .../apple-touch-icon-144-precomposed.png | Bin 0 -> 570 bytes themes/hyde/static/css/hyde.css | 0 themes/hyde/static/css/poole.css | 9 +-- themes/hyde/static/css/print.css | 0 themes/hyde/static/css/syntax.css | 0 themes/hyde/static/favicon.png | Bin 0 -> 183 bytes themes/hyde/theme.toml | 2 +- 23 files changed, 71 insertions(+), 11 deletions(-) mode change 100644 => 100755 themes/hyde/CHANGELOG.md mode change 100644 => 100755 themes/hyde/LICENSE.md mode change 100644 => 100755 themes/hyde/README.md mode change 100644 => 100755 themes/hyde/archetypes/default.md create mode 100755 themes/hyde/go.mod mode change 100644 => 100755 themes/hyde/images/screenshot.png mode change 100644 => 100755 themes/hyde/images/tn.png mode change 100644 => 100755 themes/hyde/layouts/404.html mode change 100644 => 100755 themes/hyde/layouts/_default/baseof.html mode change 100644 => 100755 themes/hyde/layouts/_default/list.html mode change 100644 => 100755 themes/hyde/layouts/_default/single.html mode change 100644 => 100755 themes/hyde/layouts/index.html mode change 100644 => 100755 themes/hyde/layouts/partials/head.html mode change 100644 => 100755 themes/hyde/layouts/partials/head_fonts.html mode change 100644 => 100755 themes/hyde/layouts/partials/hook_head_end.html mode change 100644 => 100755 themes/hyde/layouts/partials/sidebar.html create mode 100755 themes/hyde/static/apple-touch-icon-144-precomposed.png mode change 100644 => 100755 themes/hyde/static/css/hyde.css mode change 100644 => 100755 themes/hyde/static/css/poole.css mode change 100644 => 100755 themes/hyde/static/css/print.css mode change 100644 => 100755 themes/hyde/static/css/syntax.css create mode 100755 themes/hyde/static/favicon.png mode change 100644 => 100755 themes/hyde/theme.toml 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 0000000000000000000000000000000000000000..19323de1ee3aa16ca05e222a3aecdb5d6251b578 GIT binary patch literal 570 zcmeAS@N?(olHy`uVBq!ia0vp^6F``Q2}owBl)eX2k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+81HzxIEGZ*dUMAxuPH$0z{6W5pO}33{8R+o-182kbX-^L zyVq(_$?dkxymG3UulmYkZQng|_TB%H6+f@$X}ox(sO!gN*I(XMWl&3CV)Hq`!ZV|R zQ^J5z*dT#PE#Ux*&w&Qc84W-#BQsdR`YZ0c*7hGyzP-(R-^@)q@BgmIoOSu-mM4k7 z_PyVAPWBm}_ca5a%STtO`ef7p>HF{H*W=e;f4M#-GVJ=-KZjccjuqBCdwV{A>j&{) zNoP;8Uw;1+NV!}-@9{-55RcuMuKC?xyXVEu^Upv3@xAuibVF;`Ck-a$z;_$0TLl*N z966iDoYVR3_uoIh)9U9{yL+!sPp!0&$rIbGv-)+_zeFdF#}@Z=_zoBBj9C>W*49B zfA@zWXZPJ@);|C4me{h+n3$n*s-2HGCoG$9$11@vE!bP|@u3yZfQf;@)78&qol`;+ E0G>zh-v9sr literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..84cce4dd307a78a3a9455c4fed62b49b9c7e61ad GIT binary patch literal 183 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WBuiW)N`mv#O3D+9QW+dm@{>{( zJaZG%Q-e|yQz{EjrrH1%MS8k8hE&{2x^n4K(gM|lqy>f&TN57WCL9#mRrOU%@9M2v zw~lByu=VViq&Z7-h83rlMDLS8?zSQ~WwmG?M|puWCl{~GxYDGU!#GW<*Dv&0hD=YC eg9!tN0mC+9$z85`0v~~vFnGH9xvX