diff options
author | Urm3l <t.fabritz@gmail.com> | 2019-04-01 16:07:07 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2019-04-01 16:07:07 +0300 |
commit | a6ebcb96de0a60b0c448cfe73cd38ff1d16a4cca (patch) | |
tree | b6d29c91eca572488db51e9fab3b43c1f2b28bf7 | |
parent | 3e897a825d7add7faa799369c40c92e5f165fcab (diff) |
Fix featured bug (#62)5.1.1
* Fix featured bug
* Minor version bump
* Update package version to 5.1.1
-rw-r--r-- | exampleSite/config-prod.toml | 4 | ||||
-rw-r--r-- | exampleSite/config.toml | 4 | ||||
-rw-r--r-- | layouts/index.html | 5 | ||||
-rw-r--r-- | package-lock.json | 2 | ||||
-rw-r--r-- | package.json | 2 |
5 files changed, 11 insertions, 6 deletions
diff --git a/exampleSite/config-prod.toml b/exampleSite/config-prod.toml index d027559..256bee4 100644 --- a/exampleSite/config-prod.toml +++ b/exampleSite/config-prod.toml @@ -8,6 +8,8 @@ disqusShortname = "" # [params] # set below parameter to define a favicon # favicon = "favicon.ico" + # set to change date format + # dateFormat = "2.1.2006" # Below parameters can be set to override default post settings # [params.posts] @@ -27,5 +29,3 @@ disqusShortname = "" # languageName = "Français" # title = "Massively - Version Française" -#[params] - #DateFormat = "2.1.2006"
\ No newline at end of file diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 31abfe6..7e6195f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,6 +8,8 @@ disqusShortname = "" # [params] # set below parameter to define a favicon # favicon = "favicon.ico" + # set to change date format + # dateFormat = "2.1.2006" # Below parameters can be set to override default post settings # [params.posts] @@ -25,4 +27,4 @@ disqusShortname = "" title = "Massively - Versión Español" #[languages.fr] # languageName = "Français" -# title = "Massively - Version Française" +# title = "Massively - Version Française"
\ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index b8eb2e2..c527088 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -33,7 +33,10 @@ {{ if eq $postsFeaturedPost "true" }} {{ partial "posts/featured.html" (dict "firstpost" $firstPost "siteData" (index .Site.Data .Site.Language.Lang)) }} {{ end }} - {{ partial "posts/list.html" (dict "posts" $postsPaging "siteData" (index .Site.Data .Site.Language.Lang)) }} + + {{ if (not (and (eq (len $posts) 1) (eq $postsFeaturedPost "true"))) }} + {{ partial "posts/list.html" (dict "posts" $postsPaging "siteData" (index .Site.Data .Site.Language.Lang)) }} + {{ end }} {{ $paginator := .Paginator }} {{ $outer := . }} diff --git a/package-lock.json b/package-lock.json index 0e8383b..70d0343 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { "name": "hugo-theme-massively", - "version": "5.1.0", + "version": "5.1.1", "lockfileVersion": 1 } diff --git a/package.json b/package.json index d456632..4c5959b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-theme-massively", - "version": "5.1.0", + "version": "5.1.1", "description": "HTML5 UP theme Massively for Hugo", "main": "index.js", "repository": { |