Updated base theme. Created header, split menu.

This commit is contained in:
Chris 2018-01-04 18:11:00 -05:00
parent 2bc248dd03
commit d4433a4244
5 changed files with 58 additions and 78 deletions

View file

@ -18,36 +18,36 @@
<title>{{- if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{- else }}{{ .Site.Title }} - {{ .Site.Params.Tagline }}{{- end}}</title>
<link href="https://fonts.googleapis.com/css?family=Ubuntu|Dosis" rel="stylesheet">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
{{ if eq (getenv "HUGO_ENV") "PRD" }}
<meta name="robots" content="noindex,nofollow" />
{{ else }}
<meta name="robots" content="noindex,nofollow" />
{{ end }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" /> {{ if eq (getenv "HUGO_ENV") "PRD" }}
<meta name="robots" content="noindex,nofollow" /> {{ else }}
<meta name="robots" content="noindex,nofollow" /> {{ end }}
</head>
<body>
{{- if not .IsHome }}
{{ partial "menu" . }}
{{- else }}
{{ partial "header_homepage" . }}
{{- end }}
{{ partial "navbar" . }}
{{- if .IsHome }} {{ partial "header_homepage" . }} {{- end }}
<div class="container" style="background-color: white;">
<section class="section">
<div class="columns">
<div class="column is-3">
{{ partial "sidebar" . }}
</div>
<div class="column is-9">
{{ block "main" . }}{{ end }}
</div>
</div>
</section>
</div>
<footer class="footer">
<div class="container">
<div class="content has-text-centered">
Copyright © {{ now.Format "2006" }} Yuzu Emulator
</div>
</div>
<footer class="footer container has-text-centered">
Copyright © {{ now.Format "2006" }} {{ .Site.Params.ProjectName }}
</footer>
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script>
{{- block "scripts" . }}{{- end }}
<script defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script> {{- block "scripts" . }}{{- end }}
</body>
</html>

View file

@ -1,14 +1,3 @@
{{- define "main" }}
<section class="hero is-info">
<div class="hero-body">
<div class="container">
<p class="title">
Upcoming news...
</p>
<p class="subtitle">
We'll have more information available soon!
</p>
</div>
</div>
</section>
{{- end }}
{{ define "main" }}
<p>No articles have been written yet, check back soon!</p>
{{ end }}

View file

@ -1,25 +1 @@
<div class="container is-mobile">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="{{ .Site.BaseURL }}">
<img src="{{ .Site.BaseURL }}/images/menu.png" alt="{{ .Site.Title }} {{ .Site.Params.Tagline }}" width="112" height="28">
</a>
</div>
</div>
</nav>
</div>
<section class="hero is-primary">
<div class="hero-body">
<div class="container">
<h1 class="title">{{ .Site.Title }}</h1>
<h2 class="subtitle">{{ .Site.Params.Tagline }}</h2>
<a class="button is-primary is-inverted" href="{{ .Site.Params.GithubURL }}">
<span class="icon">
<i class="fab fa-github"></i>
</span>
<span>Source Code</span>
</a>
</div>
</section>
<code>Cannot find override file: `./layouts/partials/header_homepage.html`</code>

View file

@ -0,0 +1,14 @@
<nav class="navbar is-transparent is-size-6" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="{{ .Site.BaseURL }}">
<img src="{{ .Site.BaseURL }}/images/menu.png" alt="{{ .Site.Title }} {{ .Site.Params.Tagline }}" width="112" height="28">
</a>
</div>
<div class="navbar-menu">
<div class="navbar-start">
<!-- TODO: Navbar goes here -->
</div>
</div>
</div>
</nav>

View file

@ -0,0 +1 @@
<code>Cannot find override file: `./layouts/partials/sidebar.html`</code>