mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 14:45:27 +00:00
Rearranged structure for partials for easier access.
This commit is contained in:
parent
673758d483
commit
57954c8c06
|
@ -0,0 +1,7 @@
|
|||
{{ define "main" }}
|
||||
<div class="container">
|
||||
<section class="section">
|
||||
404 - Page not found
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -26,10 +26,10 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
{{- if .IsHome }}
|
||||
{{ partial "header_homepage" . }}
|
||||
{{- else }}
|
||||
{{ partial "navbar" . }}
|
||||
{{- if not .IsHome }}
|
||||
<nav class="navbar is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
|
||||
{{ partial "layout/navbar_contents" . }}
|
||||
</nav>
|
||||
{{- end }}
|
||||
|
||||
{{ block "main" . }}{{ end }}
|
||||
|
|
|
@ -7,5 +7,5 @@
|
|||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
{{ partial "layout/pagination" . }}
|
||||
{{ end }}
|
|
@ -1,13 +1,7 @@
|
|||
{{ define "main" }}
|
||||
<div class="container">
|
||||
<section class="section">
|
||||
<div class="columns is-multiline">
|
||||
{{ range sort .Site.Data.twitter "order" }}
|
||||
<div class="column is-one-third">
|
||||
{{ partial "widget/tweet.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<pre>Cannot find override file: `./layouts/index.html`</pre>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -1 +0,0 @@
|
|||
<code>Cannot find override file: `./layouts/partials/header_homepage.html`</code>
|
25
layouts/partials/home_hero.html
Normal file
25
layouts/partials/home_hero.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<section id="homepage-hero" class="hero is-medium is-primary is-bold">
|
||||
<div class="hero-head">
|
||||
<nav id="hero-navbar" class="navbar is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
|
||||
{{ partial "layout/navbar_contents" . }}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<div class="columns">
|
||||
<!-- Left panel -->
|
||||
<div class="column is-centered-vertically is-5">
|
||||
{{ partial "home_hero_contents" . }}
|
||||
</div>
|
||||
|
||||
<!-- Right panel -->
|
||||
<div class="column is-7">
|
||||
<figure class="image is-16by9">
|
||||
<img src="{{ .Site.BaseURL}}/images/jumbotron.png" />
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
|
@ -1,4 +0,0 @@
|
|||
<nav class="navbar is-dark is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
|
||||
{{ partial "nav_contents" . }}
|
||||
</nav>
|
||||
|
Loading…
Reference in a new issue