From 365a5731cae14037dba69ede4e70b50fc448e24d Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Sun, 21 Jan 2018 21:17:19 +0700 Subject: [PATCH] revise link to Hyde's options --- README.md | 10 ++++++---- exampleSite/config.toml | 18 ++++++------------ layouts/_default/single.html | 31 ++++++++++++++++++++++++++++++- layouts/partials/head.html | 5 +++++ layouts/partials/sidebar.html | 2 +- static/css/custom.css | 10 ++++++++-- 6 files changed, 56 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index d2388f2..ac804bd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # hyde-hyde -__`hyde-hyde`__ is a [Hugo](https://gohugo.io)'s theme derived from @spf13's [Hyde](https://github.com/spf13/hyde.git) which is in turn ported from @mdo Jekyll's [Hyde](https://github.com/poole/hyde). +__`hyde-hyde`__ is a [Hugo](https://gohugo.io)'s theme derived from @spf13's [Hyde](https://github.com/spf13/hyde.git) which is in turn ported from @mdo Jekyll's [Hyde](https://github.com/poole/hyde). + +You can see a real site in action [here](https://htr3n.github.io). ![hyde-hyde main screen](https://github.com/htr3n/hyde-hyde/blob/master/images/hyde-hyde-main.PNG) @@ -8,7 +10,7 @@ __`hyde-hyde`__ is a [Hugo](https://gohugo.io)'s theme derived from @spf13's [Hy ## Installation -`hyde-hyde` can be easily installed as other themes: +`hyde-hyde` can be easily installed as many other Hugo's themes: ```sh $ cd HUGO_SITE @@ -25,7 +27,7 @@ Then indicate `hyde-hyde` as the main theme ```tomp theme = "hyde-hyde" ``` - + * `config.yaml` ```yaml @@ -34,7 +36,7 @@ theme : "hyde-hyde" ## Options -* `hyde-hyde` essentially inherits all options from [Hyde](https://github.com/spf13/hyde). +* `hyde-hyde` essentially inherits [all options](https://github.com/spf13/hyde#options) from Hyde. ## Author(s) ### Original Developed by Mark Otto diff --git a/exampleSite/config.toml b/exampleSite/config.toml index bd382ff..1dc76dc 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,14 +1,13 @@ ## Basic Configuration -baseurl = "http://localhost:1313/" +baseurl = "https://example.com/" languageCode = "en" theme = "hyde-hyde" -paginate = 7 ## Hugo Built-in Features -disqusShortname = "" -googleAnalytics = "" -enableRobotsTXT = true +# disqusShortname = "" +# googleAnalytics = "" +# enableRobotsTXT = true ## Site Settings [params] @@ -17,6 +16,8 @@ enableRobotsTXT = true # description = "..." authorimage = "/img/hugo.png" dateformat = "Jan 1, 2006" + highlightjs = true + # highlightjsstyle = "github" ## Social Accounts [params.social] @@ -29,13 +30,6 @@ enableRobotsTXT = true stackoverflow = "" email = "your-email@example.com" -## Extras -[params.extra] - copyright = "© 2018. [Some Rights Reserved](http://creativecommons.org/licenses/by/3.0/)." - poweredby = true -# highlightjs = true -# highlightjsstyle = "github" - ## Main Menu [[menu.main]] name = "Posts" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index de1d791..4462e8b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,36 @@ {{ define "main" -}}

{{ .Title }}

- + {{ if ne .Params.showpagemeta false }} +
+ +
+ {{ end }} {{ .Content }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index adb48db..5884b88 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -22,6 +22,11 @@ + + {{ if .Site.Params.highlightjs }} + + {{ end }} + diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 434b3ee..7823850 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -15,7 +15,7 @@ {{ partial "social.html" . }} -

{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}. Some rights reserved. {{end}}

+

{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}. Some Rights Reserved. {{end}}

diff --git a/static/css/custom.css b/static/css/custom.css index 6c5a88d..45128b5 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -5,7 +5,8 @@ body { } code { - font-family: "Fira Code", "Source Code Pro", Consolas, monospace; + font-family: monospace; + font-size: .9rem; } .img-circle { @@ -28,4 +29,9 @@ span, p, code { .text-center { text-align:center; -} \ No newline at end of file +} + +.meta { + font-size: .9rem !important; + font-weight: 300; +}