diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-06-28 13:45:47 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-06-28 13:45:47 +0300 |
commit | 7a5b595fb9f93c81cfefdbaa4510a9bce7dc66cf (patch) | |
tree | f03cd3a8a89fdfeb2c183f5eb42c742e72b792db | |
parent | 756792be83fa66e6d112097461d4c29571933398 (diff) |
Restructure to fit new build
-rw-r--r-- | config.toml | 1 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/theme-details.html | 26 |
3 files changed, 18 insertions, 11 deletions
diff --git a/config.toml b/config.toml index 341d2d1..4a0adec 100644 --- a/config.toml +++ b/config.toml @@ -5,6 +5,7 @@ googleAnalytics = "UA-7131036-4" disableKinds = ["taxonomyTerm"] + [markup.goldmark.renderer] unsafe= true diff --git a/layouts/index.html b/layouts/index.html index 098edf4..78c0f7c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,4 @@ {{ define "main" }} - {{ $section_to_display := .Site.RegularPages }} + {{ $section_to_display := site.RegularPages }} {{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display) }} {{ end }} diff --git a/layouts/partials/theme-details.html b/layouts/partials/theme-details.html index 69b06d8..1ed1888 100644 --- a/layouts/partials/theme-details.html +++ b/layouts/partials/theme-details.html @@ -1,21 +1,21 @@ <h1 class="primary-color"> - {{ .Params.name}} + {{ .Title }} </h1> -<p class="description f4">{{ .Description }}</p> +{{ with .Params.meta.description }}<p class="description f4">{{ . }}</p>{{ end }} <ul class="list nested-links pl0"> - {{ if isset .Params "author" }} - {{ if isset .Params.author "name" }} + {{ with .Params.meta.author }} + {{ if reflect.IsMap . }} <li class="mb2"> <span class="label"> Author: </span> - {{with .Params.author.homepage}}<a href="{{.}}">{{else}}<span class="value">{{end}}{{.Params.author.name}} - {{with .Params.author.homepage}}</a>{{else}}</span>{{end}} + {{with .homepage}}<a href="{{.}}">{{else}}<span class="value">{{end}}{{.name}} + {{with .homepage}}</a>{{else}}</span>{{end}} </li> {{ end }} {{ end }} - {{ with .Params.authors }} + {{ with .Params.meta.authors }} <li class="mb2"> <span class="label"> Authors: @@ -27,22 +27,28 @@ </li> {{ end }} - {{ with .Params.min_version }} + {{ with .Params.hugoVersion.min }} <li class="mb2"> <span class="label">Minimum Hugo Version:</span> <span class="value">{{ . }}</span> </li> {{ end }} + {{ with .Params.githubInfo }} + <li class="mb2"> + <span class="label">GitHub Stars:</span> <span class="value">{{ .Stars }}</span> + </li> +{{ end }} + <li class="mb2"> <span class="label">Updated:</span> <span class="value">{{ .Lastmod.Format "2006-01-02" }}</span> </li> - {{ with .Params.license }} + {{ with .Params.meta.license }} <li class="mb2"> <span class="label">License:</span> {{ with $.Params.licenselink }}<a href="{{ . }}">{{else}}<span class="value">{{end}}{{.}}{{ if $.Params.licenselink }}</a>{{else}}</span>{{end}} </li> {{ end }} - {{ with .Params.tags }} + {{ with .Params.meta.tags }} <li class="mb2 mt4"> <span class="label">Tags:</span> {{ range . }} |