mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 18:35:41 +00:00
Added mobile navbar. Fixed GA?
This commit is contained in:
parent
12fc52e060
commit
d085c0413e
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue