Rearranged structure for partials for easier access.

This commit is contained in:
Chris 2018-01-07 13:38:56 -05:00
parent 673758d483
commit 57954c8c06
10 changed files with 38 additions and 17 deletions

View file

@ -0,0 +1,7 @@
{{ define "main" }}
<div class="container">
<section class="section">
404 - Page not found
</section>
</div>
{{ end }}

View file

@ -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 }}

View file

@ -7,5 +7,5 @@
</section> </section>
{{ end }} {{ end }}
{{ partial "pagination" . }} {{ partial "layout/pagination" . }}
{{ end }} {{ end }}

View file

@ -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 }}

View file

@ -1 +0,0 @@
<code>Cannot find override file: `./layouts/partials/header_homepage.html`</code>

View 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>

View file

@ -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>