performance tweaks
This commit is contained in:
parent
c512e8f8e2
commit
bfb8c020f8
7 changed files with 10 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
{{ define "stylesheet" }}{{ $scss := resources.Get "/_default/single.scss" }}{{ $style := $scss | resources.ToCSS }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" rel="preload" />
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
@ -14,7 +14,7 @@
|
|||
</p>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
{{ with .Params.featured_image }}
|
||||
<img src="{{ . | relURL }}">
|
||||
<img src="{{ . | relURL }}_720w" loading="lazy">
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
<aside class="meta">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue