Testing new list format
This commit is contained in:
parent
84e2201641
commit
0a526bfc96
|
@ -1,3 +1,3 @@
|
|||
{{ partial "head.html" . }}
|
||||
{{ define "main" }}
|
||||
<p> Well. Looks like we can't find the page you were looking for. One of us (probably me) typed something wrong. If it was me, send me an email so I can fix it please.</p>
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
||||
|
|
|
@ -3,13 +3,10 @@
|
|||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<section id="list">
|
||||
{{- range first 10 .Data.Pages }}
|
||||
<a href="{{ .Permalink }}" class="button">
|
||||
{{- range .Data.Pages }}
|
||||
<section class="list-item">
|
||||
<a href="{{- .Permalink }}" class="button"><h2>{{ .Title }}</h2></a>
|
||||
{{ .Plain | truncate 500 | htmlUnescape | safeHTML }}
|
||||
{{ .Date.Format "2006-01-02" }} <a href="{{- .Permalink }}">{{ .Title }}</a>
|
||||
</section>
|
||||
</a>
|
||||
{{- end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<main class="main-content">
|
||||
{{ .Content }}
|
||||
</main>
|
||||
<section id="list">
|
||||
{{- range .Data.Pages }}
|
||||
<section class="list-item">
|
||||
<a href="{{- .Permalink }}">{{ .Title }}</a>
|
||||
</section>
|
||||
{{- end }}
|
||||
</section>
|
||||
{{ end }}
|
|
@ -1,17 +0,0 @@
|
|||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<main class="main-content">
|
||||
{{ .Content }}
|
||||
</main>
|
||||
<section id="projects">
|
||||
{{- range first 10 .Data.Pages }}
|
||||
<a href="{{ .Permalink }}" class="button">
|
||||
<section class="project-tile">
|
||||
<a href="{{- .Permalink }}" class="button"><h2>{{ .Title }}</h2></a>
|
||||
</section>
|
||||
</a>
|
||||
{{- end }}
|
||||
</section>
|
||||
{{ end }}
|
|
@ -133,21 +133,21 @@ h4 {
|
|||
}
|
||||
|
||||
#list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-evenly;
|
||||
/* display: flex; */
|
||||
/* flex-wrap: wrap; */
|
||||
/* justify-content: space-evenly; */
|
||||
}
|
||||
|
||||
.list-item{
|
||||
max-width: 25em;
|
||||
margin: 1em;
|
||||
padding: 1em;
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
border-color: var(--accent);
|
||||
border-radius: 20px;
|
||||
/* box-shadow: 1em 1em var(--highlight); */
|
||||
color: var(--color);
|
||||
/* max-width: 25em; */
|
||||
margin: .25em;
|
||||
padding: .25em;
|
||||
/* border-width: 2px; */
|
||||
/* border-style: solid; */
|
||||
/* border-color: var(--accent); */
|
||||
/* border-radius: 20px; */
|
||||
/* /\* box-shadow: 1em 1em var(--highlight); *\/ */
|
||||
/* color: var(--color); */
|
||||
}
|
||||
|
||||
.button {
|
||||
|
|
Loading…
Reference in New Issue