Updated layout.

This commit is contained in:
Chris 2018-01-07 17:19:34 -05:00
parent 57954c8c06
commit c6f64e239a
6 changed files with 27 additions and 16 deletions

View File

@ -27,9 +27,7 @@
<body>
{{- if not .IsHome }}
<nav class="navbar is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
{{ partial "layout/navbar_contents" . }}
</nav>
{{ partial "layout/navbar" . }}
{{- end }}
{{ block "main" . }}{{ end }}

View File

@ -1,4 +1,5 @@
{{ define "main" }}
<div class="container">
<div class="box">
<h1 class="title">{{ .Title }}</h1>
<h2 class="subtitle">{{ .Date.Format "January 02 2006" }}</h2>
@ -6,4 +7,5 @@
{{ .Content }}
</div>
</div>
</div>
{{ end }}

View File

@ -1,4 +1,5 @@
{{ define "main" }}
<div class="container">
<figure class="image is-2by1">
<img src="{{.Permalink}}banner.png" alt="">
</figure>
@ -10,4 +11,5 @@
{{ .Content }}
</div>
</div>
</div>
{{ end }}

View File

@ -1,5 +1,6 @@
<section id="homepage-hero" class="hero is-medium is-primary is-bold">
<div class="hero-head">
<!-- is-dark / is-light is set by hero.js for the homepage hero -->
<nav id="hero-navbar" class="navbar is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
{{ partial "layout/navbar_contents" . }}
</nav>

View File

@ -0,0 +1,3 @@
<nav class="navbar is-light is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
{{ partial "layout/navbar_contents" . }}
</nav>

View File

@ -37,6 +37,11 @@
<i class="fab fa-2x fa-twitter"></i>
</span>
</a>
<a class="navbar-item is-hidden-desktop-only" href="{{ .Site.Params.DiscordURL }}" target="_blank">
<span class="icon">
<i class="fab fa-2x fa-discord"></i>
</span>
</a>
<a class="navbar-item is-hidden-desktop-only" href="{{ .Site.Params.GithubURL }}" target="_blank">
<span class="icon">
<i class="fab fa-2x fa-github"></i>