Added navigation bar and relative page title
Made baseof layout and deleted public build.
This commit is contained in:
@@ -1,18 +1,26 @@
|
||||
{{ $page := .Page }}
|
||||
<article class="single" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<div class="meta">
|
||||
<!-- published -->
|
||||
|
||||
{{ if not .Page.Date.IsZero }}
|
||||
<span class="key">published on</span>
|
||||
<!-- <span class="key">published </span> -->
|
||||
<span class="val"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.categories }}
|
||||
<span class="key">{{ if $page.Date.IsZero }}published {{ end }}in</span>
|
||||
<span class="val">
|
||||
|
||||
<!-- published -->
|
||||
|
||||
{{ range . }}
|
||||
<a href="{{ . | printf "categories/%s" | relURL }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.tags }}
|
||||
<br>
|
||||
<span class="key">tags:</span>
|
||||
@@ -22,6 +30,7 @@
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
<h1 class="headline" itemprop="headline">{{ .Title }}</h1>
|
||||
<section class="body" itemprop="articleBody">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<span class="copyright">
|
||||
© {{ now.Year }} {{ .Site.Title }} · <a rel="license"
|
||||
href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a> ·
|
||||
<a href="/credits">Credits</a>
|
||||
<a href="{{ "credits" | relURL }}">Credits</a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -16,13 +16,22 @@
|
||||
<!-- <link rel="stylesheet" href="https://meyerweb.com/eric/tools/css/reset/reset.css" type="text/css" media="all" /> -->
|
||||
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}" type="text/css">
|
||||
<link rel="alternate" href="{{ "index.xml" | relURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>
|
||||
<!-- <title>
|
||||
{{ $isHomePage := eq .Title .Site.Title }}
|
||||
{{ .Title }}
|
||||
{{ if eq $isHomePage false }} -
|
||||
{{ .Site.Title }}
|
||||
{{ end }}</title> -->
|
||||
<title>
|
||||
~{{ .Page.RelPermalink }} · {{ .Site.Title }}
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- <header>
|
||||
<div class="container clearfix">
|
||||
<a class="path" href="{{ .Site.BaseURL }}">[{{ .Site.Title }}]</a>
|
||||
[><a class="path" href="{{ .Site.BaseURL }}">[{{ .Site.Title }}]</a><]
|
||||
<a class="path" href="{{ .Site.BaseURL }}">[~]</a>
|
||||
<span class="caret"># _</span>
|
||||
<div class="right">
|
||||
{{ range $i, $page := (where .Site.Pages "Section" "pages") }}
|
||||
|
||||
@@ -9,15 +9,33 @@
|
||||
class="base0a">i</span><span class="base0b">n </span><span
|
||||
class="base0c">M</span><span class="base0d">o</span><span
|
||||
class="base0e">k</span><span
|
||||
class="base05">]</span> <span class="base05"># _</span>
|
||||
class="base05">]</span> <span class="base05"># _</span>
|
||||
<!-- <span class="base0d">6</span> -->
|
||||
</h1>
|
||||
|
||||
<div class="container clearfix nav-bar">
|
||||
[ <a class="path" href="{{ .Site.BaseURL }}">~</a> /
|
||||
<a class="path" href="{{ .Page.Permalink }}">{{ .Page.Dir }}</a>
|
||||
|
||||
]
|
||||
<span class="caret"># _</span>
|
||||
<div class="right">
|
||||
{{ range $i, $page := (where .Site.Pages "Section" "pages") }}
|
||||
{{ if not (eq $i 0) }}|{{ end }}
|
||||
<a class="path" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<div class="hero-logo">
|
||||
<img src="{{ "img/base16-eighties.svg" | relURL }}">
|
||||
</div>
|
||||
|
||||
<div style="text-align: center;">
|
||||
<!-- <div style="text-align: center;"> -->
|
||||
<div class="hero-tagline">
|
||||
<!-- Add your own "<code>layouts/partials/hero.html</code>" to replace this text. -->
|
||||
Live, love and Linux.
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
{{ $baseurl := .Site.BaseURL }}
|
||||
<main role="main" class="homepage">
|
||||
|
||||
{{ partial "hero.html" . }}
|
||||
|
||||
<!-- {{ partial "about.html" . }} -->
|
||||
|
||||
<!-- <h1 class="headline">Recent Posts</h1>
|
||||
|
||||
Reference in New Issue
Block a user