mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-08-04 07:32:00 +00:00
Moved toot layouts to main website repo
This commit is contained in:
parent
039a4f5f13
commit
0594e209e5
3 changed files with 52 additions and 1 deletions
28
layouts/toots/list.html
Normal file
28
layouts/toots/list.html
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{{ define "main"}}
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
<main>
|
||||||
|
<style>main { text-align: left; }</style>
|
||||||
|
{{ partial "search.html" . }}
|
||||||
|
{{ .Content }}
|
||||||
|
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
|
||||||
|
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
|
||||||
|
{{ range .Pages }}
|
||||||
|
{{ $dataJ := dict "account" .Params.account
|
||||||
|
"account.display_name" .Params.account.display_name
|
||||||
|
"created_at" .Date
|
||||||
|
"content" .Content
|
||||||
|
"media_attachments" .Params.media_attachments
|
||||||
|
"Permalink" .Permalink
|
||||||
|
"tags" .Params.tags
|
||||||
|
"url" .Params.syndication
|
||||||
|
"replies_count" .Params.replies_count
|
||||||
|
"reblogs_count" .Params.reblogs_count
|
||||||
|
"favourites_count" .Params.favourites_count
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{ .Scratch.Set "toot" $dataJ }}
|
||||||
|
{{ partial "external/toot.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</main>
|
||||||
|
{{ end }}
|
23
layouts/toots/single.html
Normal file
23
layouts/toots/single.html
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{{ define "main"}}
|
||||||
|
{{ .Scratch.Set "customTitleHeaderSet" true }}
|
||||||
|
{{ .Scratch.Set "customTitleHeader" "Toots" }}
|
||||||
|
{{ .Scratch.Set "customTitleHeaderLink" "/toots" }}
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
<main>
|
||||||
|
{{ $dataJ := dict "account" .Params.account
|
||||||
|
"account.display_name" .Params.account.display_name
|
||||||
|
"created_at" .Date
|
||||||
|
"content" .Content
|
||||||
|
"media_attachments" .Params.media_attachments
|
||||||
|
"Permalink" .Permalink
|
||||||
|
"tags" .Params.tags
|
||||||
|
"url" .Params.syndication
|
||||||
|
"replies_count" .Params.replies_count
|
||||||
|
"reblogs_count" .Params.reblogs_count
|
||||||
|
"favourites_count" .Params.favourites_count
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{ .Scratch.Set "toot" $dataJ }}
|
||||||
|
{{ partial "external/toot.html" . }}
|
||||||
|
</main>
|
||||||
|
{{ end }}
|
|
@ -1 +1 @@
|
||||||
Subproject commit d507426ff0fb28980c1dd5c8f27162915a560e1a
|
Subproject commit bcbfa17bb4acdde1e439d8a51a565eabe62a78dd
|
Loading…
Add table
Reference in a new issue