Skip to content

Instantly share code, notes, and snippets.

@Andynico
Created May 29, 2019 13:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andynico/a5d05f11bd2edbe4bef976e518b7220e to your computer and use it in GitHub Desktop.
Save Andynico/a5d05f11bd2edbe4bef976e518b7220e to your computer and use it in GitHub Desktop.
Custom Layout for the Hello micro.blog theme
{{ define "main" }}
{{ $paginator := .Paginate (union .Site.Taxonomies.categories.articles .Site.Taxonomies.categories.podcast) 25 }}
{{ range $paginator.Pages }}
{{ if .Title }}
<div class="post-body post h-entry">
<header>
<h1><a href="{{ .Permalink }}" style="text-decoration: none">{{ .Title }}</a></h1>
</header>
<div class="post-body">
<a href="{{ .Permalink }}" class="url">
<aside class="dates">
<time datetime="{{ .Date.Format "2006-01-02" }}" class="dt-published"> {{ .Date.Format "2006-01-02" }}</time>
</aside>
</a>
{{ .Content }}
</div>
</div>
{{ else }}
{{ .Content }}
{{ end }}
{{ end }}
<span class="separator"><span class="divider"></span></span>
{{ end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment