mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 23:25:31 +00:00
Updated layout.
This commit is contained in:
parent
57954c8c06
commit
c6f64e239a
|
@ -27,9 +27,7 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{{- if not .IsHome }}
|
{{- if not .IsHome }}
|
||||||
<nav class="navbar is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
|
{{ partial "layout/navbar" . }}
|
||||||
{{ partial "layout/navbar_contents" . }}
|
|
||||||
</nav>
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="box">
|
<div class="container">
|
||||||
<h1 class="title">{{ .Title }}</h1>
|
<div class="box">
|
||||||
<h2 class="subtitle">{{ .Date.Format "January 02 2006" }}</h2>
|
<h1 class="title">{{ .Title }}</h1>
|
||||||
<div class="content">
|
<h2 class="subtitle">{{ .Date.Format "January 02 2006" }}</h2>
|
||||||
{{ .Content }}
|
<div class="content">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,13 +1,15 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<figure class="image is-2by1">
|
<div class="container">
|
||||||
<img src="{{.Permalink}}banner.png" alt="">
|
<figure class="image is-2by1">
|
||||||
</figure>
|
<img src="{{.Permalink}}banner.png" alt="">
|
||||||
|
</figure>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h1 class="title">{{ .Title }}</h1>
|
<h1 class="title">{{ .Title }}</h1>
|
||||||
<h2 class="subtitle">{{ .Date.Format "January 02 2006" }}</h2>
|
<h2 class="subtitle">{{ .Date.Format "January 02 2006" }}</h2>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,5 +1,6 @@
|
||||||
<section id="homepage-hero" class="hero is-medium is-primary is-bold">
|
<section id="homepage-hero" class="hero is-medium is-primary is-bold">
|
||||||
<div class="hero-head">
|
<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">
|
<nav id="hero-navbar" class="navbar is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
|
||||||
{{ partial "layout/navbar_contents" . }}
|
{{ partial "layout/navbar_contents" . }}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
3
layouts/partials/layout/navbar.html
Normal file
3
layouts/partials/layout/navbar.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<nav class="navbar is-light is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
|
||||||
|
{{ partial "layout/navbar_contents" . }}
|
||||||
|
</nav>
|
|
@ -37,6 +37,11 @@
|
||||||
<i class="fab fa-2x fa-twitter"></i>
|
<i class="fab fa-2x fa-twitter"></i>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</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.GithubURL }}" target="_blank">
|
<a class="navbar-item is-hidden-desktop-only" href="{{ .Site.Params.GithubURL }}" target="_blank">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fab fa-2x fa-github"></i>
|
<i class="fab fa-2x fa-github"></i>
|
||||||
|
|
Loading…
Reference in a new issue