Added mobile navbar. Fixed GA?

This commit is contained in:
Chris 2018-01-13 13:39:29 -05:00
parent 12fc52e060
commit d085c0413e
3 changed files with 28 additions and 16 deletions

View File

@ -25,7 +25,7 @@
<meta name="robots" content="noindex,nofollow" />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.GoogleAnalyticsTrackingId }} }}"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.GoogleAnalyticsTrackingId }}"></script>
<!-- Google Analytics -->
<script type="text/javascript">

View File

@ -3,8 +3,14 @@
<a class="navbar-item" href="{{ .Site.BaseURL }}">
<img class="navbar-logo" src="{{ .Site.BaseURL }}/images/menu.svg" alt="{{ .Site.Title }} {{ .Site.Params.Tagline }}">
</a>
<button class="button navbar-burger" data-target="navMenu">
<span></span>
<span></span>
<span></span>
</button>
</div>
<div class="navbar-menu">
<div class="navbar-menu" id="navMenu">
<div class="navbar-start">
{{ $currentPage := . }} {{ range .Site.Menus.main }} {{ if .HasChildren }}
<div class="navbar-item has-dropdown is-hoverable">
@ -28,21 +34,31 @@
{{ .Name }}
</a>
{{ end }} {{ end }}
<a class="navbar-item is-hidden-desktop" href="{{ .Site.Params.DiscordURL }}" target="_blank">
discord
</a>
<a class="navbar-item is-hidden-desktop" href="{{ .Site.Params.TwitterURL }}" target="_blank">
twitter
</a>
<a class="navbar-item is-hidden-desktop" href="{{ .Site.Params.GithubURL }}" target="_blank">
github
</a>
</div>
<div class="navbar-end">
<!-- Navbar icons -->
<a class="navbar-item is-hidden-desktop-only" href="{{ .Site.Params.DiscordURL }}" target="_blank">
<a class="navbar-item is-hidden-touch" 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">
<a class="navbar-item is-hidden-touch" 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">
<a class="navbar-item is-hidden-touch" href="{{ .Site.Params.GithubURL }}" target="_blank">
<span class="icon">
<i class="fab fa-2x fa-github"></i>
</span>

View File

@ -1,19 +1,15 @@
{{ define "main" }}
<section class="section">
<div class="container">
<article class="message">
<div class="message-body">
<p>The below wiki article is based on user submitted content. Please verify <strong>all</strong> hyperlinks and terminal commands below!</p>
<p>See a mistake? Want to contribute? <a href="{{ .Site.Params.GithubURL }}/wiki/{{ .File.BaseFileName }}/_edit/">Edit this article on Github</a></p>
</div>
</article>
<h1 class="title">{{ .Title }}</h1>
<div class="content">
<article class="message is-primary">
<div class="message-body">
<p>The below wiki article is based on user submitted content.</p>
<p>Please verify
<strong>all</strong> hyperlinks and terminal commands below!</p>
See a mistake? Want to contribute?
<a href="{{ .Site.Params.GithubURL }}/wiki/{{ .File.BaseFileName }}/_edit/">Edit this article on Github</a>
</div>
</article>
{{ .Content }}
</div>
</div>