ContainerImage.Pinniped/site/themes/pinniped/layouts/_default/single.html
Matt Moyer 827e6e0dc0
More website tweaks.
These are some more changes that came up when Pablo and I were reviewing the previous docs PR.

In no particular order:

- Fix "related posts" on the blog section, and hide the section if there are none.

- Minor style changes to several pages (guided by various style guides).

- Redirect the root of get.pinniped.dev to our main page (shouldn't really be hit, but it's nice to do something).

- Add more mobile-friendly CSS for our docs.

- Reword the "getting started" CTA, and hide it on the docs pages (you're already there).

- Fix the "Learn how Pinniped provides identity services to Kubernetes" link on the landing page.

- Add a date to our blog post cards.

- Rewrite the hero text on the landing page.

- Fix the docs link for the "Get Started with Pinniped" button on the landing page.

- Rework the landing page grid text.

- Add Margo and Nanci to the team section and sort it alphabetically.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
2021-02-23 14:03:37 -06:00

35 lines
791 B
HTML

{{ define "main" }}
<main>
<article>
<div class="hero subpage">
<div class="wrapper">
<h1>Pinniped blog</h1>
</div>
</div>
<div class="wrapper blog">
<div class="blog-post">
<h2>{{ .Title }}</h2>
<p class="author">
<a href="/tags/{{ .Params.author | urlize }}">{{ .Params.author }}</a>
</p>
<p class="date">{{ dateFormat "Jan 2, 2006" .Date }}</p>
{{ .Content }}
</div>
{{ $related := (where (.Site.RegularPages.Related .) "Type" "posts") | first 3 }}
{{ with $related }}
<h2>Related content</h2>
<div class="grid three">
{{ range . }}
{{ partial "blog-post-card.html" . }}
{{ end }}
</div>
{{ end }}
</div>
</article>
</main>
{{ partial "getting-started" . }}
{{ end }}