Commit 31bdd1d2 authored by Mike Jones's avatar Mike Jones

Add projects, postlike partial

parent 4192ebfa
Pipeline #141 failed with stage
in 1 minute and 4 seconds
......@@ -11,11 +11,18 @@ Paginate = 5
name = "About"
pre = ""
url = "/about/"
weight = -110
weight = -120
[[menu.main]]
identifier = "projects"
name = "Projects"
pre = ""
url = "/project/"
weight = -115
[[menu.main]]
identifier = "contact"
name = "Contact"
pre = ""
url = "/contact/"
weight = -120
weight = -110
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
......@@ -30,7 +30,7 @@ a:hover {
h2 a {
border-radius: $border-radius;
padding: $small-padding;
font-size: 1.25em;
}
h2 a:hover {
......
body {
overflow-y: scroll;
}
div#page-content, div#sidebar-nav {
margin-top: 1rem;
margin-bottom: 1rem;
......
......@@ -19,7 +19,6 @@
{{ range $k, $v := .Params.tags }}
<li>
<a href="{{ $baseUrl }}tags/{{ . | urlize }}">{{ . }}</a>
{{ if lt $k (sub $count 1) }}(first){{ end }}
</li>
{{ end }}
</ul>
......
<article>
<header>
<h1>{{ .Title }}</h1>
{{ if .Description }}<p>{{ .Description }}</p>{{ end }}
{{ partial "post_meta.html" . }}
</header>
<section class="post-content">
{{ .Content }}
</section>
<footer class="post-footer">
</footer>
</article>
{{ define "main" }}
<article>
<header>
<h1>{{ .Title }}</h1>
{{ if .Description }}<p>{{ .Description }}</p>{{ end }}
{{ partial "post_meta.html" . }}
</header>
<section class="post-content">
{{ .Content }}
</section>
<footer class="post-footer">
</footer>
</article>
{{ partial "postlike.html" . }}
{{ end }}
{{ define "main" }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "project") }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ end }}
{{ define "main" }}
{{ partial "postlike.html" . }}
{{ end }}
......@@ -5,7 +5,7 @@
<div class="content">
{{ range .Data.Pages }}
{{ .Render "summary"}}
{{ .Render "summary" }}
{{ end }}
</div>
{{ end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment