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" }} |
{{ define "main" }} |
||||
{{if not .IsHome }} |
{{if not .IsHome }} |
||||
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1> |
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1> |
||||
{{ end }} |
{{ end }} |
||||
{{ .Content }} |
{{ .Content }} |
||||
<section class="article-list"> |
<section class="article-list"> |
||||
{{ $pages := .Pages }} |
{{ $pages := .Pages }} |
||||
{{ if .IsHome }}{{ $pages = where .Site.RegularPages "Type" "not in" (default "[]" .Site.Params.excludedSections) }}{{ end }} |
{{ if .IsHome }}{{ $pages = where .Site.RegularPages "Type" "not in" (default "[]" .Site.Params.excludedSections) }}{{ end }} |
||||
{{ range (where $pages "Section" "ne" "") }} |
{{ range (where $pages "Section" "ne" "") }} |
||||
{{ partial "article-card.html" . }} |
{{ partial "article-card.html" . }} |
||||
{{ end }} |
{{ end }} |
||||
</section> |
</section> |
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
|
@ -1,25 +1,27 @@ |
|||||
{{ define "main" }} |
{{ 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 }} |
{{ .Content }} |
||||
|
|
||||
<p> |
<p> |
||||
{{ with .NextInSection }} |
|
||||
|
{{ with .NextInSection }} |
||||
<b>Next: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
<b>Next: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
||||
<br> |
<br> |
||||
{{ end }} |
{{ end }} |
||||
{{ with .PrevInSection }} |
|
||||
|
{{ with .PrevInSection }} |
||||
<b>Previous: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
<b>Previous: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
||||
<br> |
<br> |
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
<b><a href="/"> >> Home</a></b> |
<b><a href="/"> >> Home</a></b> |
||||
</p> |
</p> |
||||
</main> |
|
||||
</div> |
</main> |
||||
{{ end }} |
{{ end }} |
||||
|
@ -1,25 +1,36 @@ |
|||||
{{ define "main" }} |
{{ define "main" }} |
||||
<section> |
<main> |
||||
{{if not .IsHome }} |
<section class="article-header"> |
||||
<div class="article-meta"> |
{{if not .IsHome }} |
||||
<h1 class="center-text">{{ .Params.name }}</h1> |
|
||||
<p class="center-text">{{ .Params.bio }}</p> |
<h1>{{ .Params.name }}</h1> |
||||
<a class="small-text" href={{ .Params.projects}}>Projects</a> |
<p class="center-text">{{ .Params.bio }}</p> |
||||
<span> | </span> |
|
||||
<a class="small-text" href="mailto:{{ .Params.email }}">{{ .Params.email}}</a> |
<a class="small-text" href={{ .Params.projects}}>Projects</a> |
||||
<div class="break"></div> |
<span> | </span> |
||||
{{ with .Resources.GetMatch "avatar" }} |
<a class="small-text" href="mailto:{{ .Params.email }}">{{ .Params.email}}</a> |
||||
<img class="shadow small-image" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
|
||||
{{ end }} |
<div class="break"></div> |
||||
</div> |
{{ with .Resources.GetMatch "avatar" }} |
||||
{{ end }} |
<img class="shadow small-image featured" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
||||
{{ .Content }} |
{{ end }} |
||||
<h2>Posts:</h2> |
|
||||
</section> |
{{ end }} |
||||
<section class="article-list"> |
|
||||
{{ range .Data.Pages }} |
{{ .Content }} |
||||
{{ partial "article-card.html" . }} |
|
||||
{{ end }} |
</section> |
||||
</section> |
</main> |
||||
|
|
||||
|
<section> |
||||
|
<h2>Posts:</h2> |
||||
|
</section> |
||||
|
|
||||
|
<section class="article-list"> |
||||
|
{{ range .Data.Pages }} |
||||
|
{{ partial "article-card.html" . }} |
||||
|
{{ end }} |
||||
|
</section> |
||||
|
|
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
|
@ -1,22 +1,27 @@ |
|||||
{{ define "main" }} |
{{ 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 }} |
{{ end }} |
||||
|
Loading…
Reference in new issue