simplified everything, partially half the size loaded, despite the unified css file :); added colour scheme support; added blogroll and about pages
This commit is contained in:
parent
8c242b4aa5
commit
e753ca3e90
20 changed files with 194 additions and 734 deletions
|
@ -1,73 +1,7 @@
|
|||
{{- define "stylesheet" -}}
|
||||
{{- $scss := resources.Get "/index.scss" -}}
|
||||
{{- $style := $scss | resources.ToCSS -}}
|
||||
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
|
||||
{{- end -}}
|
||||
|
||||
{{- define "main" -}}
|
||||
<section class="section header">
|
||||
<div class="container">
|
||||
<header>
|
||||
<h2>{{ .Params.heading }}</h2>
|
||||
<span class="subtitle">{{.Params.subheading}}</span>
|
||||
</header>
|
||||
<section class="section contact">
|
||||
<table class="table contact">
|
||||
{{- range sort .Params.contact "weight" "asc" }}
|
||||
<tr>
|
||||
<td>{{ .name }}</td>
|
||||
<td>
|
||||
{{- with .url }}<a href="{{ . }}">{{ end -}}
|
||||
{{ .handle }}
|
||||
{{- with .url }}</a>{{ end }} {{ with .hint }}<a href="{{ .url }}">{{ .name }}</a>{{ end -}}
|
||||
</td>
|
||||
</tr>
|
||||
{{- end }}
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{- define "main" }}
|
||||
<main>
|
||||
<div class="container">
|
||||
<section class="section projects">
|
||||
<span class="latest">
|
||||
latest <a href="{{ "/projects" | relURL }}">projects</a>
|
||||
</span>
|
||||
<div class="section projects inner">
|
||||
{{- range first 4 (where .Site.RegularPages "Type" "project") }}
|
||||
<a href="{{ .Permalink }}">
|
||||
<article>
|
||||
<h2>{{ .Title }}</h2>
|
||||
<p class="meta">
|
||||
{{ with .Params.activetime }}<span class="date">{{ . }}</span><br />{{ end }}
|
||||
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
|
||||
</p>
|
||||
</article>
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
</section>
|
||||
<hr>
|
||||
<section class="section posts">
|
||||
<span class="latest">
|
||||
latest <a href="{{ "/blog" | relURL }}">posts</a>
|
||||
</span>
|
||||
<div class="section posts inner">
|
||||
{{- range first 4 (where .Site.RegularPages "Type" "post") }}
|
||||
<a href="{{ .Permalink }}">
|
||||
<article>
|
||||
<h2><span>{{ .Title }}</span></h2>
|
||||
{{ with .Description }}<p class="description">{{ . }}</p>{{ end }}
|
||||
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">
|
||||
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
|
||||
<span class="author">{{ with .Params.author }}by {{ end }}{{ .Params.author }}</span>
|
||||
</p>
|
||||
</article>
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
{{- range first 8 (where .Site.RegularPages "Type" "post") }}
|
||||
<p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date.Format "2 January 2006" }}</span> </p>
|
||||
{{- end }}
|
||||
</main>
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue