summaryrefslogtreecommitdiffstats
path: root/front_end/templates
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2019-08-10 16:38:57 +0100
committerKornel <kornel@geekhood.net>2019-08-10 16:38:57 +0100
commit75025dca7f6f5003704b916809ddc36d65cb5401 (patch)
tree73d510259d53e5e9eb725b63f2c5f9e9432e1ffd /front_end/templates
parentd60282293ff32bd1485be25207dfe8ef8cf4ae55 (diff)
Page template
Diffstat (limited to 'front_end/templates')
-rw-r--r--front_end/templates/static_page.rs.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/front_end/templates/static_page.rs.html b/front_end/templates/static_page.rs.html
new file mode 100644
index 0000000..502aa6b
--- /dev/null
+++ b/front_end/templates/static_page.rs.html
@@ -0,0 +1,32 @@
+@use crate::Page;
+@use crate::templates::base;
+
+@(page: &Page, content: Html<String>)
+
+@:base(page, {
+ <header id="page">
+ <div class="inner-col">
+ <div class="breadcrumbs">
+ <h1>
+ <a href="/"><span>Lib</span>.rs</a>
+ </h1> › @page.title
+ </div>
+ <nav><ul>
+ <li class=active>@page.title</li>
+ <li><a href="/">Categories & Search</a></li>
+ <li><a href="https://gitlab.com/crates.rs?sort=stars_desc">Lib.rs's GitLab</a></li>
+ <li><a href="https://gitlab.com/crates.rs/crates.rs/issues/new">Report a bug</a></li>
+ </ul></nav>
+ </div>
+ </header>
+
+ <main>
+ <div class="inner-col">
+ @content
+ </div>
+ </main>
+
+ <footer>
+ <div class="inner-col" role="contentinfo">
+ <p>Formely Crates.rs. By <a href=https://kornel.ski>kornelski</a>.</p></div></footer>
+})