Skip to content

Instantly share code, notes, and snippets.

@jsonbecker
Created December 23, 2024 18:50
Show Gist options
  • Save jsonbecker/21a40a2da9544e061fbdc64a30afd4a4 to your computer and use it in GitHub Desktop.
Save jsonbecker/21a40a2da9544e061fbdc64a30afd4a4 to your computer and use it in GitHub Desktop.
praticktheme.html
<div class="day-homepage">
<!-- Loop over each post in the group -->
{{ range .Pages.Reverse }}
<!-- Display logic for each post -->
<a href="{{ .Permalink }}" class="post-date u-url">
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> {{ .Date.Format "03:04 PM" }}</time> ∞
</a>
{{ if .Title }}
<h2 class="post-title p-name"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ end }}
{{ if in .RawContent "<!--more-->" }}
<div class="p-summary">
{{ .Summary }}
<p><a class="read-more" href="{{ .Permalink }}">Read More →</a><p>
</div>
{{ else }}
<div class="e-content">{{ .Content }}</div>
{{ end }}
{{ end }}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment