fixes and improvements of single page (child cards) and footer
This commit is contained in:
parent
4257e09d9e
commit
e3e6b739df
2 changed files with 48 additions and 48 deletions
|
@ -29,19 +29,17 @@
|
|||
{{ if and (not .Site.Params.hideChildArticles)
|
||||
(eq .Site.Params.showChildArticles "cards") -}}
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{{- $related := .Site.RegularPages.RelatedTo (keyVals "parents" .Params.pageid) -}}
|
||||
{{ range $related }}
|
||||
{{- $related := .Site.RegularPages.RelatedTo (keyVals "parents" .Params.pageid) -}}
|
||||
{{ range sort (sort $related "Date" "desc") "Weight" }}
|
||||
{{ partial "card.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ul class="pagination">
|
||||
{{ with .NextInSection }}
|
||||
{{ with .NextInSection }}
|
||||
<li class="page-item">
|
||||
<a class="next page-link" href="{{ .Permalink }}">« {{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
|
|
|
@ -2,51 +2,53 @@
|
|||
<div class="container mt-3">
|
||||
<div class="row p10">
|
||||
|
||||
<div class="col-md-4 text-start">
|
||||
{{ with .Site.Params.copyright -}}
|
||||
<span class="fa fa-copyright"></span>
|
||||
<a target="_blank" class="text-decoration-none"
|
||||
href="{{ .link }}">{{ .name }}</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
<ul class="col-md-4 text-start list-inline">
|
||||
{{ with .Site.Params.copyright -}}
|
||||
<li class="list-inline-item">
|
||||
<span class="fa fa-copyright"></span>
|
||||
<a target="_blank" class="text-decoration-none"
|
||||
href="{{ .link }}">{{ .name }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
{{ with .Site.Params.email -}}
|
||||
<li class="social email list-inline-item">
|
||||
<a target="_blank" title="Email"
|
||||
href="mailto:{{ . }}"><i class="fa fa-envelope"></i></a></li>
|
||||
{{- end }}
|
||||
{{ with .Site.Params.github -}}
|
||||
<li class="social github list-inline-item">
|
||||
<a target="_blank" title="GitHub"
|
||||
href="{{ . }}"><i class="fa fa-github-square"></i></a></li>
|
||||
{{- end }}
|
||||
{{ with .Site.Params.sourcehut -}}
|
||||
<li class="social sourcehut list-inline-item">
|
||||
<a target="_blank" title="sourcehut git"
|
||||
href="{{ . }}"><i class="fa fa-git-square"></i></a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
|
||||
<div class="col-md-4 text-center" >
|
||||
{{ with .Site.Params.builtBy -}}
|
||||
<a target="_blank"
|
||||
href="{{ .link }}"><img
|
||||
src="/{{ .Site.BaseURL }}img/{{ .image }}" alt="{{ .name }}"></a>
|
||||
{{- end }}
|
||||
</div>
|
||||
<div class="col-md-4 text-center" >
|
||||
{{ with .Site.Params.builtBy -}}
|
||||
<a target="_blank"
|
||||
href="{{ .link }}"><img
|
||||
src="/{{ .Site.BaseURL }}img/{{ .image }}" alt="{{ .name }}"></a>
|
||||
{{- end }}
|
||||
</div>
|
||||
|
||||
<ul class="col-md-4 text-end list-inline">
|
||||
{{ with .Site.Params.legal -}}
|
||||
<li class="list-inline-item">
|
||||
<a class="text-decoration-none"
|
||||
href="{{ site.BaseURL }}{{ .path }}">{{ .name }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
{{ with .Site.Params.privacy -}}
|
||||
<li class="list-inline-item">
|
||||
<a class="text-decoration-none"
|
||||
href="{{ site.BaseURL }}{{ .path }}">{{ .name }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
{{ with .Site.Params.github -}}
|
||||
<li class="social github list-inline-item">
|
||||
<a target="_blank" title="GitHub"
|
||||
href="{{ . }}"><i class="fa fa-github-square"></i></a></li>
|
||||
{{- end }}
|
||||
{{ with .Site.Params.sourcehut -}}
|
||||
<li class="social sourcehut list-inline-item">
|
||||
<a target="_blank" title="sourcehut git"
|
||||
href="{{ . }}"><i class="fa fa-git-square"></i></a></li>
|
||||
{{- end }}
|
||||
{{ with .Site.Params.email -}}
|
||||
<li class="social email list-inline-item">
|
||||
<a target="_blank" title="Email"
|
||||
href="mailto:{{ . }}"><i class="fa fa-envelope"></i></a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
<ul class="col-md-4 text-end list-inline">
|
||||
{{ with .Site.Params.legal -}}
|
||||
<li class="list-inline-item">
|
||||
<a class="text-decoration-none"
|
||||
href="{{ site.BaseURL }}{{ .path }}">{{ .name }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
{{ with .Site.Params.privacy -}}
|
||||
<li class="list-inline-item">
|
||||
<a class="text-decoration-none"
|
||||
href="{{ site.BaseURL }}{{ .path }}">{{ .name }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue