This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
forked from styx-static/styx-theme-hyde
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d5ba10
commit b50ee51
Showing
28 changed files
with
181 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{ conf, ... }: | ||
page: | ||
let content = | ||
'' | ||
<h1>404: Page not found</h1> | ||
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="${conf.siteUrl}">Head back home</a> to try finding it again.</p> | ||
''; | ||
in | ||
page // { inherit content; } | ||
{ lib, templates, ... }: | ||
lib.normalTemplate { | ||
content = '' | ||
<h1>404: Page not found</h1> | ||
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. ${templates.tag.ilink { path = "/"; content = "Head back home"; }} to try finding it again.</p> | ||
''; | ||
title = "404"; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
{ conf, lib, templates, data, ... }: | ||
page: | ||
with lib; | ||
let content = | ||
'' | ||
normalTemplate (page: '' | ||
<div class="posts"> | ||
${mapTemplate templates.post.list (page.items or [])} | ||
</div> | ||
${templates.partials.pagination { pages = (page.pages or []); index = page.index; }} | ||
''; | ||
in | ||
page // { inherit content; } | ||
${optionalString (page ? pages) (templates.partials.pager { inherit (page) pages index; })} | ||
'') |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ templates, lib, conf, ... }: | ||
args: | ||
with lib; | ||
let | ||
class = htmlAttr "class" ( | ||
(optional (conf.theme ? color) conf.theme.color) | ||
++ (optional (conf.theme.layout-reverse) "layout-reverse") | ||
); | ||
in | ||
'' | ||
<body ${class}> | ||
${(templates.partials.content-pre args) | ||
+ (templates.partials.content args) | ||
+ (templates.partials.content-post args) | ||
+ (templates.partials.js args) | ||
}</body> | ||
'' |
Oops, something went wrong.