performance tweaks
This commit is contained in:
parent
c512e8f8e2
commit
bfb8c020f8
7 changed files with 10 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
header {
|
||||
text-align: center;
|
||||
margin: 150px 0;
|
||||
margin: 100px 0;
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ body {
|
|||
color: rgb(240, 240, 255);
|
||||
margin: 0;
|
||||
font-family: PoppinsLatin, Monaco, Lucida Console, monospace;
|
||||
font-display: block;
|
||||
display: grid;
|
||||
}
|
||||
a {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "stylesheet" }}{{ $scss := resources.Get "/_default/list.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" }}
|
||||
|
@ -21,7 +21,7 @@
|
|||
<p>{{ . }}</p>
|
||||
{{ end }}
|
||||
{{ with .Params.featured_image }}
|
||||
<img src="{{ . | relURL }}">
|
||||
<img src="{{ . | relURL }}" loading="lazy">
|
||||
{{ end }}
|
||||
</article>
|
||||
</a>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "stylesheet" }}{{ $sass := resources.Get "/errorpages.scss" }}{{ $style := $sass | 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" }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "stylesheet" }}{{ $sass := resources.Get "/errorpages.scss" }}{{ $style := $sass | 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" }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "stylesheet" }}{{ $scss := resources.Get "projects/list.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" }}
|
||||
|
@ -18,7 +18,7 @@
|
|||
<h1>{{ .Title }}</h1>
|
||||
<p class="" title="last change: {{ .Date.Format "2 Jan 2006" }}">{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }} {{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}</p>
|
||||
{{ with .Description }}<p>{{ . }}</p>{{ end }}
|
||||
<img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }}>
|
||||
<img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }} loading="lazy">
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue