mirror of
https://github.com/yuzu-emu/shared-bulma-theme
synced 2024-11-23 11:33:38 +00:00
Updated layout.
This commit is contained in:
parent
57954c8c06
commit
c6f64e239a
6 changed files with 27 additions and 16 deletions
|
@ -27,9 +27,7 @@
|
|||
|
||||
<body>
|
||||
{{- if not .IsHome }}
|
||||
<nav class="navbar is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
|
||||
{{ partial "layout/navbar_contents" . }}
|
||||
</nav>
|
||||
{{ partial "layout/navbar" . }}
|
||||
{{- end }}
|
||||
|
||||
{{ block "main" . }}{{ end }}
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{{ define "main" }}
|
||||
<div class="box">
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<h2 class="subtitle">{{ .Date.Format "January 02 2006" }}</h2>
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
<div class="container">
|
||||
<div class="box">
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<h2 class="subtitle">{{ .Date.Format "January 02 2006" }}</h2>
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -1,13 +1,15 @@
|
|||
{{ define "main" }}
|
||||
<figure class="image is-2by1">
|
||||
<img src="{{.Permalink}}banner.png" alt="">
|
||||
</figure>
|
||||
<div class="container">
|
||||
<figure class="image is-2by1">
|
||||
<img src="{{.Permalink}}banner.png" alt="">
|
||||
</figure>
|
||||
|
||||
<div class="box">
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<h2 class="subtitle">{{ .Date.Format "January 02 2006" }}</h2>
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
<div class="box">
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<h2 class="subtitle">{{ .Date.Format "January 02 2006" }}</h2>
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -1,5 +1,6 @@
|
|||
<section id="homepage-hero" class="hero is-medium is-primary is-bold">
|
||||
<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">
|
||||
{{ partial "layout/navbar_contents" . }}
|
||||
</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>
|
||||
</span>
|
||||
</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">
|
||||
<span class="icon">
|
||||
<i class="fab fa-2x fa-github"></i>
|
||||
|
|
Loading…
Reference in a new issue