mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 12:55:42 +01:00
Updated base theme. Created header, split menu.
This commit is contained in:
parent
2bc248dd03
commit
d4433a4244
@ -2,52 +2,52 @@
|
|||||||
<html lang="{{ .Site.Params.languageCode | default " en-us " }}">
|
<html lang="{{ .Site.Params.languageCode | default " en-us " }}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
|
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
|
||||||
<meta name="theme-color" content="#404040">
|
<meta name="theme-color" content="#404040">
|
||||||
<meta property="og:title" content="{{ if ne .URL " / " }}{{ .Title }} · {{ end }}{{ .Site.Title }}" />
|
<meta property="og:title" content="{{ if ne .URL " / " }}{{ .Title }} · {{ end }}{{ .Site.Title }}" />
|
||||||
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||||
<meta property="og:url" content="{{ .Permalink }}" /> {{- if eq .IsPage true }} {{ .Render "meta" }} {{- end }} {{ .Hugo.Generator }}
|
<meta property="og:url" content="{{ .Permalink }}" /> {{- if eq .IsPage true }} {{ .Render "meta" }} {{- end }} {{ .Hugo.Generator }}
|
||||||
|
|
||||||
<link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico" />
|
<link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico" />
|
||||||
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/favicon.ico" type="image/x-icon" />
|
||||||
<link rel="canonical" href="{{ .Permalink }}"> {{ if .RSSLink }}
|
<link rel="canonical" href="{{ .Permalink }}"> {{ if .RSSLink }}
|
||||||
<link href="{{ .Site.BaseURL }}/index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
<link href="{{ .Site.BaseURL }}/index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
<link href="{{ .Site.BaseURL }}/index.xml" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }}
|
<link href="{{ .Site.BaseURL }}/index.xml" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }}
|
||||||
|
|
||||||
<title>{{- if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{- else }}{{ .Site.Title }} - {{ .Site.Params.Tagline }}{{- end}}</title>
|
<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 href="https://fonts.googleapis.com/css?family=Ubuntu|Dosis" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" /> {{ if eq (getenv "HUGO_ENV") "PRD" }}
|
||||||
|
<meta name="robots" content="noindex,nofollow" /> {{ else }}
|
||||||
{{ if eq (getenv "HUGO_ENV") "PRD" }}
|
<meta name="robots" content="noindex,nofollow" /> {{ end }}
|
||||||
<meta name="robots" content="noindex,nofollow" />
|
|
||||||
{{ else }}
|
|
||||||
<meta name="robots" content="noindex,nofollow" />
|
|
||||||
{{ end }}
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{{- if not .IsHome }}
|
{{ partial "navbar" . }}
|
||||||
{{ partial "menu" . }}
|
|
||||||
{{- else }}
|
{{- if .IsHome }} {{ partial "header_homepage" . }} {{- end }}
|
||||||
{{ partial "header_homepage" . }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{ block "main" . }}{{ end }}
|
<div class="container" style="background-color: white;">
|
||||||
|
<section class="section">
|
||||||
<footer class="footer">
|
<div class="columns">
|
||||||
<div class="container">
|
<div class="column is-3">
|
||||||
<div class="content has-text-centered">
|
{{ partial "sidebar" . }}
|
||||||
Copyright © {{ now.Format "2006" }} Yuzu Emulator
|
</div>
|
||||||
</div>
|
<div class="column is-9">
|
||||||
</div>
|
{{ block "main" . }}{{ end }}
|
||||||
</footer>
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
|
<footer class="footer container has-text-centered">
|
||||||
|
Copyright © {{ now.Format "2006" }} {{ .Site.Params.ProjectName }}
|
||||||
<script defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script>
|
</footer>
|
||||||
{{- block "scripts" . }}{{- end }}
|
|
||||||
|
<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 }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -1,14 +1,3 @@
|
|||||||
{{- define "main" }}
|
{{ define "main" }}
|
||||||
<section class="hero is-info">
|
<p>No articles have been written yet, check back soon!</p>
|
||||||
<div class="hero-body">
|
{{ end }}
|
||||||
<div class="container">
|
|
||||||
<p class="title">
|
|
||||||
Upcoming news...
|
|
||||||
</p>
|
|
||||||
<p class="subtitle">
|
|
||||||
We'll have more information available soon!
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
{{- end }}
|
|
@ -1,25 +1 @@
|
|||||||
<div class="container is-mobile">
|
<code>Cannot find override file: `./layouts/partials/header_homepage.html`</code>
|
||||||
<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>
|
|
14
layouts/partials/navbar.html
Normal file
14
layouts/partials/navbar.html
Normal 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>
|
1
layouts/partials/sidebar.html
Normal file
1
layouts/partials/sidebar.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<code>Cannot find override file: `./layouts/partials/sidebar.html`</code>
|
Loading…
Reference in New Issue
Block a user