the website is now more lightweight
This commit is contained in:
parent
59c38330f6
commit
74929ff17a
4 changed files with 8 additions and 93 deletions
|
@ -14,9 +14,16 @@
|
|||
<article>
|
||||
<h1><span>{{ .Title }}</span></h1>
|
||||
{{ with .Description }}<p class="description">{{ . }}</p>{{ end }}
|
||||
{{- if eq .Params.type "post" }}
|
||||
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">
|
||||
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
|
||||
{{- with .Params.author }}<span class="author">by {{ . }}</span>{{ end }}
|
||||
{{ end }}
|
||||
{{- if eq .Params.type "project" }}
|
||||
<p class="meta">
|
||||
{{ with .Params.activetime }}<span class="date">{{ . }}</span><br />{{ end }}
|
||||
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
|
||||
{{- end }}
|
||||
</p>
|
||||
</article>
|
||||
</a>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<article>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="meta">
|
||||
{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }}<br />
|
||||
{{ with .Params.activetime }}<span class="date">{{ . }}</span><br />{{ end }}
|
||||
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
|
||||
</p>
|
||||
</article>
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
{{ define "stylesheet" }}{{ $scss := resources.Get "projects/list.scss" }}{{ $style := $scss | resources.ToCSS }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" rel="preload" />
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
<div class="container">
|
||||
<section class="section-articles">
|
||||
{{ range .Pages }}
|
||||
<a href="{{ .Permalink }}">
|
||||
<article>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="meta" 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 }} loading="lazy" alt="">
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue