use partial for site footer info
This commit is contained in:
parent
8ec94d7296
commit
7f421830c5
2 changed files with 56 additions and 10 deletions
|
@ -13,14 +13,14 @@
|
|||
<!-- Meta -->
|
||||
{{- partialCached "head/meta.html" . -}}
|
||||
<meta
|
||||
name="description"
|
||||
name="description"
|
||||
content="{{- block "head-description" . -}}{{- $.Site.Params.description | html -}}{{- end -}}"
|
||||
/>
|
||||
|
||||
{{- block "title" . -}}
|
||||
{{- block "title" . -}}
|
||||
{{- partialCached "head/title.html" ( slice .Site.Title .Site.Params.tagline ) .Site.Title .Site.Params.tagline -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- end -}}
|
||||
|
||||
<!-- References -->
|
||||
{{- partialCached "head/references.html" ( dict "sc" $ "pc" . ) -}}
|
||||
<link
|
||||
|
@ -66,12 +66,18 @@
|
|||
|
||||
{{- block "footer" . -}}
|
||||
<footer class="site-footer">
|
||||
<p>
|
||||
By <a href="/">{{ $.Site.Params.Author.name }}</a> |
|
||||
<a href="{{ $.Site.Params.codeURL }}{{ $.Site.Params.reportIssueURL }}">Report an Issue</a> |
|
||||
<a href="{{ relref . "privacy-policy" }}">Privacy Policy</a> | <a href="/{{ .Sitemap.Filename }}">Sitemap</a> | Built:
|
||||
{{ now.Format "2006-01-02T15:04:05" }}
|
||||
</p>
|
||||
{{-
|
||||
partialCached
|
||||
"footer/text.html"
|
||||
( dict
|
||||
"author_name" .Site.Params.Author.name
|
||||
"report_issue_url" ( printf "%s%s" .Site.Params.codeURL .Site.Params.reportIssueURL )
|
||||
"privacy_policy_url" ( relref . "privacy-policy" )
|
||||
"sitemap_path" ( printf "/%s" .Sitemap.Filename )
|
||||
"last_build_time" ( now.Format "2006-01-02T15:04:05" )
|
||||
)
|
||||
-}}
|
||||
|
||||
{{ block "footer-scripts" . }}<!-- -->{{ end }}
|
||||
</footer>
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue