Updated navbar and hero.

This commit is contained in:
Chris 2018-01-07 20:24:18 -05:00
parent c6f64e239a
commit d959bedf27
3 changed files with 49 additions and 53 deletions

View File

@ -1,4 +1,4 @@
<section id="homepage-hero" class="hero is-medium is-primary is-bold">
<section id="homepage-hero" class="hero 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">
@ -7,7 +7,13 @@
</div>
<div class="hero-body">
<section class="section">
<div class="container">
<!-- 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>
<div class="columns">
<!-- Left panel -->
<div class="column is-centered-vertically is-5">
@ -15,7 +21,7 @@
</div>
<!-- Right panel -->
<div class="column is-7">
<div class="column is-7 is-hidden-mobile">
<figure class="image is-16by9">
<img src="{{ .Site.BaseURL}}/images/jumbotron.png" />
</figure>
@ -24,3 +30,4 @@
</div>
</div>
</section>
</section>

View File

@ -6,9 +6,7 @@
</div>
<div class="navbar-menu">
<div class="navbar-end">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
{{ $currentPage := . }} {{ range .Site.Menus.main }} {{ if .HasChildren }}
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-item">
{{ .Name }}
@ -29,19 +27,18 @@
<a class="navbar-item {{ if $currentPage.IsMenuCurrent " main " . }} is-active{{ end }}" href="{{ .URL }}">
{{ .Name }}
</a>
{{ end }}
{{ end }}
{{ end }} {{ end }}
<!-- Navbar icons -->
<a class="navbar-item is-hidden-desktop-only" href="{{ .Site.Params.TwitterURL }}" target="_blank">
<span class="icon">
<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.TwitterURL }}" target="_blank">
<span class="icon">
<i class="fab fa-2x fa-twitter"></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>

View File

@ -2,20 +2,12 @@
<div class="card">
<div class="card-content">
<div class="columns">
<div class="column is-2">
<figure class="image is-square">
<img src="{{ .Site.BaseURL}}/images/twitterAvatar.png" />
</figure>
</div>
<div class="column">
<p class="title is-4">{{ .author }}</p>
<p class="subtitle is-6">
<time datetime="2016-1-1">{{ .date }}</time> by @{{ .author }}</p>
<p class="title is-4">@{{ .author }}</p>
</div>
</div>
<div class="content">
{{ .message }}
</div>
<div class="content">{{ .message }}</div>
<div><time datetime="2016-1-1">Posted on {{ .date }}</time></div>
</div>
</div>
</a>