summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html49
-rw-r--r--layouts/_default/index.html2
-rw-r--r--layouts/partials/site-name.html9
-rw-r--r--layouts/shortcodes/site-name.html0
4 files changed, 39 insertions, 21 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 9addbf0..b5305ab 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -41,30 +41,21 @@
<link rel="pingback" href="https://webmention.io/d-s.sh/xmlrpc">
</head>
<body>
-
<header>
- <a href="/">
- <h1>{{ .Site.Title }}</h1>
- </a>
-
- <nav id="top-nav">
- <nav id="main-nav">
- <a href="/">Home</a>
- <a href="/about">About</a>
- <a href="/links">Links</a>
- <a href="/index.xml">RSS</a>
- </nav>
- <nav id="categories-nav">
- <a href="/category/engineering">Engineering</a>
- <a href="/category/emacs">Emacs</a>
- <a href="/category/bsd">BSD</a>
- <a href="/category/computer-history">Computer History</a>
- <a href="/star-trek">Star Trek</a>
+ <div class="logo">
+ </div>
+
+ <div class="name">
+ <nav>
+ <h1>{{partial "site-name" . }}</h1>
+ {{ if not (in .Page.Params.category "mws") }}
+ <a href="/">Part of MWS</a>
+ {{ end }}
</nav>
- </nav>
+ </div>
+ </header>
- </header>
<main class="right-column">
{{ partial "back_nav" . }}
@@ -81,5 +72,23 @@
</main>
+
+ <footer>
+ <nav id="top-nav">
+ <nav id="main-nav">
+ <a href="/">Home</a>
+ <a href="/about">About</a>
+ <a href="/links">Links</a>
+ <a href="/index.xml">RSS</a>
+ </nav>
+ <nav id="categories-nav">
+ <a href="/category/engineering">Engineering</a>
+ <a href="/category/emacs">Emacs</a>
+ <a href="/category/bsd">BSD</a>
+ <a href="/category/computer-history">Computer History</a>
+ <a href="/star-trek">Star Trek</a>
+ </nav>
+ </nav>
+ </footer>
</body>
</html>
diff --git a/layouts/_default/index.html b/layouts/_default/index.html
index d4b0324..1143c15 100644
--- a/layouts/_default/index.html
+++ b/layouts/_default/index.html
@@ -13,7 +13,7 @@ Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This we
<h2>Sections</h2>
<nav>
- <P> &#10022; <a h class="sec-link" ref="/star-trek/home/"><b>Star Trek fan site</b>: my little shrine to the greatest american Sci-Fi that has ever graced our screens.</a> </p>
+ <P> &#10022; <a class="sec-link" href="/star-trek/home/"><b>Star Trek fan site</b>: my little shrine to the greatest american Sci-Fi that has ever graced our screens.</a> </p>
<P> &spades; <a class="sec-link" href="/funnies/"><b>Funnies</b>: A small, curated collection of things I found funny or ammusing.</a> </p>
<p> &#9851; <a class="sec-link" href="/vcs/git/"><b>Version control system</b> : My little code repository. I don't expect to cooporate on any of those, so it's just stagit.</a></p>
<p> &#x2665; <a class="sec-link" href="/site/info/"><b>Site info</b> : you can find site uptates, metrics, statics, and legal thingies here.</a></p>
diff --git a/layouts/partials/site-name.html b/layouts/partials/site-name.html
new file mode 100644
index 0000000..9ee0cc8
--- /dev/null
+++ b/layouts/partials/site-name.html
@@ -0,0 +1,9 @@
+
+{{ if in .Page.Params.category "star-trek" }}
+ Star Trek Fansite
+{{ else if in .Page.Params.category "site-info" }}
+ Site info
+
+{{ else }}
+ Michał Sapka's website
+{{ end }}
diff --git a/layouts/shortcodes/site-name.html b/layouts/shortcodes/site-name.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/shortcodes/site-name.html