diff --git a/README.md b/README.md index 4bc27f6..348e551 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ __`Hyde-hyde`__ is a [Hugo](https://gohugo.io)'s theme inspired and derived from @spf13's [Hyde](https://github.com/spf13/hyde.git) and [Nate Finch's blog](https://npf.io). +> NOTICE: Maintainers / collaborators seeking: As I'm underwater with my full time job at the moment, I'm actively looking for and welcome any new maintainers or collaborators. If you are interested, comment on [#130](https://github.com/htr3n/hyde-hyde/issues/130) and I can add you to the project. TIA. + ## Breaking Changes Since version 2.0, __`hyde-hyde`__ has been overhauled and, therefore, might cause some disruptions. @@ -159,6 +161,16 @@ Here is a longer summary of the project. You can write as long as you wish. If you want to adjust the portfolio page to your needs, please have a look at the [main template](https://github.com/htr3n/hyde-hyde/blob/master/layouts/portfolio/list.html), that uses this [partial template](https://github.com/htr3n/hyde-hyde/blob/master/layouts/partials/portfolio/content.html) and [this SCSS style](https://github.com/htr3n/hyde-hyde/blob/master/assets/scss/hyde-hyde/_project.scss). +### Posts in home page +By default hugo will show in your home page the most populated section. +This means that if you have more projects than posts, by default your home page will list your projects instead of your posts. +If you want to change this behaviour you can change the [mainsections](https://gohugo.io/functions/where/#mainsections). +For example, for the [exampleSite](https://github.com/htr3n/hyde-hyde/tree/master/exampleSite) this is how you should change the `config.toml` file: +``` +[params] + mainSections = ["posts"] +``` + ## Some Screenshots ### Main page diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4661ff8..7e3baed 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -23,7 +23,9 @@ theme = "hyde-hyde" dateformat = "Jan 2, 2006" # sidebar, copyright & license + #logoimage = "/img/hugo.png" copyright = "htr3n" + since = 2019 license = "CC BY-SA 4.0" licenseURL = "https://creativecommons.org/licenses/by-sa/4.0" showBuiltWith = true @@ -49,8 +51,10 @@ theme = "hyde-hyde" linkedin = "" twitter = "" facebook = "" + microblog = "" stackoverflow = "" telegram = "" + # orcid = "" email = "your-email@example.com" # gravatar = "your-email@example.com" # pgpkey = "" diff --git a/layouts/partials/footer/font-awesome-js.html b/layouts/partials/footer/font-awesome-js.html index d94a68c..a92a75a 100644 --- a/layouts/partials/footer/font-awesome-js.html +++ b/layouts/partials/footer/font-awesome-js.html @@ -1 +1 @@ - + diff --git a/layouts/partials/header/meta.html b/layouts/partials/header/meta.html index 5adbbe8..e0ce340 100644 --- a/layouts/partials/header/meta.html +++ b/layouts/partials/header/meta.html @@ -1,6 +1,5 @@ - {{ "" | safeHTML }} {{ hugo.Generator }} diff --git a/layouts/partials/highlight-js.html b/layouts/partials/highlight-js.html index 87c347d..e20528b 100644 --- a/layouts/partials/highlight-js.html +++ b/layouts/partials/highlight-js.html @@ -1,13 +1,12 @@ -{{ if or ((not (isset .Params "highlight")) and ((isset .Params "highlight") .Params.highlight)) }} +{{- if (.Site.Params.highlightjs) -}} +{{ if (or (not (isset .Params "highlight")) (and (isset .Params "highlight") .Params.highlight)) }} {{ $.Scratch.Set "hl_languages" (union (.Site.Params.highlightjslanguages) (.Params.highlightjslanguages)) }} - {{ if (.Site.Params.highlightjs) }} - + {{ with $.Scratch.Get "hl_languages" }} {{ range . }} {{ end }} {{ end }} - {{ end }} {{ $.Scratch.Delete "hl_languages" }} {{ end }} +{{- end -}} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 2e33fec..e256384 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -3,7 +3,15 @@