summaryrefslogtreecommitdiff
path: root/index.html.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2022-11-11 18:38:28 +0100
committerQuentin Aristote <quentin@aristote.fr>2022-11-11 18:38:28 +0100
commit056ee77ab2ed3cf488ac9b1b8ac82664948a42a3 (patch)
tree54c202aae529c00b86e413aee66bc77f332f2d17 /index.html.nix
initial ocommit
Diffstat (limited to 'index.html.nix')
-rw-r--r--index.html.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/index.html.nix b/index.html.nix
new file mode 100644
index 0000000..473c01a
--- /dev/null
+++ b/index.html.nix
@@ -0,0 +1,52 @@
+{ html, make, ... }:
+
+let sections = html.sort.byKey "priority" (make ./content { });
+in with html;
+html.html { lang = "en"; } [
+ (head [
+ # Basic page needs
+ (metaWith { charset = "utf-8"; })
+ (title "Quentin Aristote")
+ (metaWith {
+ name = "description";
+ content = "Personal webpage of Quentin Aristote";
+ })
+ (metaWith {
+ name = "author";
+ content = "Quentin Aristote";
+ })
+ (metaWith {
+ http-equiv = "x-ua-compatible";
+ content = "ie=edge";
+ })
+ # Mobile specific needs
+ (metaWith {
+ name = "viewport";
+ content = "width=device-width, initial-scale=1";
+ })
+ # Font
+ (linkWith {
+ rel = "stylesheet";
+ href = "/static/css/fonts/line-awesome/line-awesome.min.css";
+ })
+ # CSS
+ (linkWith {
+ rel = "stylesheet";
+ href = "https://classless.de/classless.css";
+ })
+ # Favicon
+ (linkWith {
+ rel = "icon";
+ type = "image/png";
+ href = "static/icon.png";
+ })
+ ])
+ (body [
+ (header [
+ (nav (ul ([ (li "Quentin Aristote") ] ++ for sections
+ (section: li (href "#${section.title}" section.title)))))
+ ])
+ (main { role = "main"; } (for sections (section: section.body)))
+ (footer [ ])
+ ])
+]