mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 08:35:38 +01: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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{{- if .IsHome }}
|
{{- if not .IsHome }}
|
||||||
{{ partial "header_homepage" . }}
|
<nav class="navbar is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
|
||||||
{{- else }}
|
{{ partial "layout/navbar_contents" . }}
|
||||||
{{ partial "navbar" . }}
|
</nav>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "pagination" . }}
|
{{ partial "layout/pagination" . }}
|
||||||
{{ end }}
|
{{ end }}
|
@ -1,13 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="columns is-multiline">
|
<pre>Cannot find override file: `./layouts/index.html`</pre>
|
||||||
{{ range sort .Site.Data.twitter "order" }}
|
|
||||||
<div class="column is-one-third">
|
|
||||||
{{ partial "widget/tweet.html" . }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ 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 New Issue
Block a user