refactor: replace deprecated resources.toCss
and .Site.Author
references
This commit is contained in:
parent
1451b66949
commit
b07a2a6cf5
5 changed files with 11 additions and 11 deletions
|
@ -29,10 +29,10 @@
|
|||
|
||||
<link href="/css/sanitize.css" rel="stylesheet" />
|
||||
{{- $mainStylesheet := resources.Get "css/main.scss" }}
|
||||
{{- $mainStylesheet := $mainStylesheet | resources.ToCSS | resources.Fingerprint }}
|
||||
{{- $mainStylesheet := $mainStylesheet | css.Sass | resources.Fingerprint }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ $mainStylesheet.Permalink }}" integrity="{{ $mainStylesheet.Data.Integrity | html }}">
|
||||
{{- $printStylesheet := resources.Get "css/print.scss" }}
|
||||
{{- $printStylesheet := $printStylesheet | resources.ToCSS | resources.Fingerprint }}
|
||||
{{- $printStylesheet := $printStylesheet | css.Sass | resources.Fingerprint }}
|
||||
<link rel="stylesheet" media="print" href="{{ $printStylesheet.Permalink }}" integrity="{{ $printStylesheet.Data.Integrity | html }}">
|
||||
|
||||
{{- if .Param "math" -}}
|
||||
|
@ -58,7 +58,7 @@
|
|||
{{- block "footer" . -}}
|
||||
<footer class="site-footer">
|
||||
<p>
|
||||
By <a href="/">{{ $.Site.Author.name }}</a> |
|
||||
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> |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue