summaryrefslogtreecommitdiff
path: root/lib/layouts
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2025-01-19 20:00:18 +0100
committerMarius Peter <marius.peter@tutanota.com>2025-01-19 20:00:18 +0100
commit8ab5f20f532bc6e9de38ee457b0ef8dd30c80374 (patch)
treeceecccdb379a9298ca2eef7053b1887885134f8d /lib/layouts
Initial commit for ogit.
Diffstat (limited to 'lib/layouts')
-rw-r--r--lib/layouts/dune16
-rw-r--r--lib/layouts/header.eml.html3
-rw-r--r--lib/layouts/topnav.eml.html11
3 files changed, 30 insertions, 0 deletions
diff --git a/lib/layouts/dune b/lib/layouts/dune
new file mode 100644
index 0000000..ee236ea
--- /dev/null
+++ b/lib/layouts/dune
@@ -0,0 +1,16 @@
+(library
+ (name layouts)
+ (public_name ogit.layouts)
+ (modules header topnav))
+
+; Rule to preprocess header.eml.html
+(rule
+ (targets header.ml)
+ (deps header.eml.html)
+ (action (run dream_eml %{deps} --workspace %{workspace_root})))
+
+; Rule to preprocess topnav.eml.html
+(rule
+ (targets topnav.ml)
+ (deps topnav.eml.html)
+ (action (run dream_eml %{deps} --workspace %{workspace_root})))
diff --git a/lib/layouts/header.eml.html b/lib/layouts/header.eml.html
new file mode 100644
index 0000000..d7bf4ef
--- /dev/null
+++ b/lib/layouts/header.eml.html
@@ -0,0 +1,3 @@
+let header _ =
+ <h1>ogit</h1>
+ <h2>Your mobile-friendly Git repository viewer.</h2>
diff --git a/lib/layouts/topnav.eml.html b/lib/layouts/topnav.eml.html
new file mode 100644
index 0000000..a9f0864
--- /dev/null
+++ b/lib/layouts/topnav.eml.html
@@ -0,0 +1,11 @@
+let topnav _ =
+<nav id="top">
+ <ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="/">Refs</a></li>
+ <li><a href="/">Log</a></li>
+ <li><a href="/">Tree</a></li>
+ <li><a href="/">Commit</a></li>
+ <li><a href="/">Diff</a></li>
+ </ul>
+</nav>
Copyright 2019--2025 Marius PETER