Compare commits
5 Commits
7f43210a42
...
48fc714a76
Author | SHA1 | Date |
---|---|---|
Alexander Avery | 48fc714a76 | 3 months ago |
Alexander Avery | 9adf47f6f9 | 3 months ago |
Alexander Avery | d52cf973e1 | 3 months ago |
Alexander Avery | 023853a575 | 3 months ago |
Alexander Avery | af5f358d62 | 3 months ago |
8 changed files with 96 additions and 83 deletions
@ -1,14 +1,14 @@ |
|||
{{ define "main" }} |
|||
{{if not .IsHome }} |
|||
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1> |
|||
{{ end }} |
|||
{{ .Content }} |
|||
<section class="article-list"> |
|||
{{if not .IsHome }} |
|||
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1> |
|||
{{ end }} |
|||
{{ .Content }} |
|||
<section class="article-list"> |
|||
{{ $pages := .Pages }} |
|||
{{ if .IsHome }}{{ $pages = where .Site.RegularPages "Type" "not in" (default "[]" .Site.Params.excludedSections) }}{{ end }} |
|||
{{ range (where $pages "Section" "ne" "") }} |
|||
{{ partial "article-card.html" . }} |
|||
{{ partial "article-card.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
</section> |
|||
{{ end }} |
|||
|
|||
|
@ -1,25 +1,27 @@ |
|||
{{ define "main" }} |
|||
<main> |
|||
{{ partial "article-meta.html" . }} |
|||
|
|||
{{ partial "article-meta.html" . }} |
|||
{{ if .Params.toc }} |
|||
{{ .TableOfContents }} |
|||
{{ end }} |
|||
|
|||
{{ if .Params.toc }} |
|||
{{ .TableOfContents }} |
|||
{{ end }} |
|||
|
|||
<div class="content-wrapper"> |
|||
<main> |
|||
{{ .Content }} |
|||
|
|||
<p> |
|||
{{ with .NextInSection }} |
|||
|
|||
{{ with .NextInSection }} |
|||
<b>Next: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
|||
<br> |
|||
{{ end }} |
|||
{{ with .PrevInSection }} |
|||
{{ end }} |
|||
|
|||
{{ with .PrevInSection }} |
|||
<b>Previous: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
|||
<br> |
|||
{{ end }} |
|||
{{ end }} |
|||
|
|||
<b><a href="/"> >> Home</a></b> |
|||
</p> |
|||
</main> |
|||
</div> |
|||
</p> |
|||
|
|||
</main> |
|||
{{ end }} |
|||
|
@ -1,25 +1,36 @@ |
|||
{{ define "main" }} |
|||
<section> |
|||
{{if not .IsHome }} |
|||
<div class="article-meta"> |
|||
<h1 class="center-text">{{ .Params.name }}</h1> |
|||
<p class="center-text">{{ .Params.bio }}</p> |
|||
<a class="small-text" href={{ .Params.projects}}>Projects</a> |
|||
<span> | </span> |
|||
<a class="small-text" href="mailto:{{ .Params.email }}">{{ .Params.email}}</a> |
|||
<div class="break"></div> |
|||
{{ with .Resources.GetMatch "avatar" }} |
|||
<img class="shadow small-image" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
|||
{{ end }} |
|||
</div> |
|||
{{ end }} |
|||
{{ .Content }} |
|||
<h2>Posts:</h2> |
|||
</section> |
|||
<section class="article-list"> |
|||
{{ range .Data.Pages }} |
|||
{{ partial "article-card.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
<main> |
|||
<section class="article-header"> |
|||
{{if not .IsHome }} |
|||
|
|||
<h1>{{ .Params.name }}</h1> |
|||
<p class="center-text">{{ .Params.bio }}</p> |
|||
|
|||
<a class="small-text" href={{ .Params.projects}}>Projects</a> |
|||
<span> | </span> |
|||
<a class="small-text" href="mailto:{{ .Params.email }}">{{ .Params.email}}</a> |
|||
|
|||
<div class="break"></div> |
|||
{{ with .Resources.GetMatch "avatar" }} |
|||
<img class="shadow small-image featured" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
|||
{{ end }} |
|||
|
|||
{{ end }} |
|||
|
|||
{{ .Content }} |
|||
|
|||
</section> |
|||
</main> |
|||
|
|||
<section> |
|||
<h2>Posts:</h2> |
|||
</section> |
|||
|
|||
<section class="article-list"> |
|||
{{ range .Data.Pages }} |
|||
{{ partial "article-card.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
|
|||
{{ end }} |
|||
|
|||
|
@ -1,22 +1,27 @@ |
|||
{{ define "main" }} |
|||
|
|||
{{ partial "article-meta.html" . }} |
|||
<main> |
|||
{{ partial "article-meta.html" . }} |
|||
|
|||
{{ if .Params.toc }} |
|||
{{ .TableOfContents }} |
|||
{{ end }} |
|||
|
|||
{{ .Content }} |
|||
</main> |
|||
|
|||
{{ if gt (len .Data.Pages) 0 }} |
|||
|
|||
<section> |
|||
<h2>Devlogs:</h2> |
|||
</section> |
|||
|
|||
<section class="article-list"> |
|||
{{ range .Data.Pages }} |
|||
{{ partial "article-card.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
|
|||
{{ end }} |
|||
|
|||
{{ if .Params.toc }} |
|||
{{ .TableOfContents }} |
|||
{{ end }} |
|||
<div class="content-wrapper"> |
|||
<main> |
|||
{{ .Content }} |
|||
{{ if gt (len .Data.Pages) 0 }} |
|||
<h2>Devlogs:</h2> |
|||
<section class="article-list"> |
|||
{{ range .Data.Pages }} |
|||
{{ partial "article-card.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
{{ end }} |
|||
<a href="/"> >> Home</a> |
|||
</main> |
|||
</div> |
|||
{{ end }} |
|||
|
Loading…
Reference in new issue