Merge branch 'main' into testing

This commit is contained in:
Dorian Wood 2021-05-12 07:49:32 -04:00
commit 24f284b325
3 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,5 @@
+++ ---
title: "{{ replace .Name "-" " " | title }}" title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }} date: {{ .Date }}
draft: true draft: true
+++ ---

View File

@ -4,12 +4,14 @@
{{ define "main" }} {{ define "main" }}
<main class="main-content"> <main class="main-content">
{{ .Content }} {{ .Content }}
<section id="list"> </main>
{{- range .Data.Pages }} <section id="projects">
<section class="list-item"> {{- range first 10 .Data.Pages }}
<a href="{{- .Permalink }}">{{ .Title }}</a> <a href="{{ .Permalink }}" class="button">
<section class="project-tile">
<a href="{{- .Permalink }}" class="button"><h2>{{ .Title }}</h2></a>
</section> </section>
</a>
{{- end }} {{- end }}
</section> </section>
</main>
{{ end }} {{ end }}

View File

@ -3,7 +3,7 @@
{{ .Content }} {{ .Content }}
{{ $currentPage := . }} {{ $currentPage := . }}
{{ range .Site.Menus.social }} {{ range .Site.Menus.social }}
<a class="{{if or ($currentPage.IsMenuCurrent "social" .) ($currentPage.HasMenuCurrent "social" .) }} active{{end}} button" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a><br> <a class="{{if or ($currentPage.IsMenuCurrent "social" .) ($currentPage.HasMenuCurrent "social" .) }} active{{end}} button" rel="me" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a><br>
{{ end }} {{ end }}
<div> <div>
{{ end }} {{ end }}