This commit is contained in:
18
layouts/_default/baseof.html
Normal file
18
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ site.Language.LanguageCode | default `en-us` }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }} | {{ site.Title }}{{ end }}</title>
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ site.Params.intro }}{{ end }}">
|
||||
{{ $styles := resources.Get "css/main.css" | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}">
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<main class="page-shell">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
28
layouts/_default/list.html
Normal file
28
layouts/_default/list.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{ define "main" }}
|
||||
<section class="section page-header">
|
||||
<p class="eyebrow">Collection</p>
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ with .Content }}
|
||||
<div class="section-text">{{ . }}</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<div class="card-grid">
|
||||
{{ range .Pages.ByWeight }}
|
||||
<article class="project-card">
|
||||
<p class="meta">{{ .Date.Format "Jan 2, 2006" }}</p>
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<p>{{ with .Params.summary }}{{ . }}{{ else }}{{ .Description }}{{ end }}</p>
|
||||
{{ with .Params.tags }}
|
||||
<ul class="tag-list">
|
||||
{{ range . }}
|
||||
<li>{{ . }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
30
layouts/_default/single.html
Normal file
30
layouts/_default/single.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{{ define "main" }}
|
||||
<article class="section project-single">
|
||||
<p class="eyebrow">Project</p>
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ with .Description }}
|
||||
<p class="lead">{{ . }}</p>
|
||||
{{ end }}
|
||||
|
||||
<div class="project-links">
|
||||
{{ with .Params.project_url }}
|
||||
<a class="button button-primary" href="{{ . }}">Live Project</a>
|
||||
{{ end }}
|
||||
{{ with .Params.repo_url }}
|
||||
<a class="button button-secondary" href="{{ . }}">Source Code</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ with .Params.tags }}
|
||||
<ul class="tag-list tag-list-spaced">
|
||||
{{ range . }}
|
||||
<li>{{ . }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
<div class="content-body">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user