Skip to content

Commit

Permalink
Revert all changes after 'blog list looking fairly good'
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jun 20, 2024
1 parent 69cea4e commit a0486e9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 29 deletions.
11 changes: 0 additions & 11 deletions themes/freenet/layouts/_default/blog.html

This file was deleted.

2 changes: 1 addition & 1 deletion themes/freenet/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1 class="title">{{ .Title }}</h1>
{{ .Content }}
</div>
<div>
{{ range .Pages.ByDate.Reverse }}
{{ range .Pages }}
<h2 class="title is-5 box">
<a href="{{ .RelPermalink }}" style="color: #444444;">{{ .LinkTitle }}</a>
</h2>
Expand Down
12 changes: 4 additions & 8 deletions themes/freenet/layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{{ define "main" }}
{{ if eq .Section "blog" }}
{{ partial "partials/blog.html" . }}
{{ else }}
<h1>{{ .Title }}</h1>
<h1>{{ .Title }}</h1>

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}

{{ .Content }}
{{ end }}
{{ .Content }}
{{ end }}
9 changes: 0 additions & 9 deletions themes/freenet/layouts/partials/blog.html

This file was deleted.

0 comments on commit a0486e9

Please sign in to comment.