1
Fork 0

Reformat templates

This commit is contained in:
Jake Howard 2017-07-24 09:19:35 +01:00
parent 6e8797bba2
commit e816a4186e
Signed by: jake
GPG key ID: 57AFB45680EDD477
8 changed files with 66 additions and 69 deletions

View file

@ -1,5 +1,5 @@
{{ partial "page_start.html" . }}
<section id="main" class="container">
<section id="main" class="container">
{{ partial "content.html" . }}
{{ if ne .Params.hide_pages "true" }}
<div class="row">
@ -15,5 +15,5 @@
{{ end }}
</div>
{{ end }}
</section>
</section>
{{ partial "page_end.html" . }}

View file

@ -1,5 +1,5 @@
{{ partial "page_start.html" . }}
<section id="main" class="container">
<section id="main" class="container">
{{ partial "content.html" . }}
</section>
</section>
{{ partial "page_end.html" . }}

View file

@ -5,7 +5,7 @@
<link rel="alternate" type="application/rss+xml" href="{{ .Site.RSSLink }}" />
<meta name="superfish" content="nofish" />
<meta name="application-name" content="{{ .Site.Title }}" />
<link rel="icon" type="image/png" href="/img/logo-transparent.png" /s>
<link rel="icon" type="image/png" href="/img/logo-transparent.png" />
<link rel="stylesheet" href="/css/style.css" />

View file

@ -1,4 +1,4 @@
<header id="header" {{ if .IsHome }}class="alt"{{ end }}>
<header id="header" {{ if .IsHome }}class="alt"{{ end }}>
<h1><a href="/" class="navbar-brand">{{ title .Site.Title }}</a></h1>
<nav id="nav">
<ul>
@ -39,4 +39,4 @@
<li class="top-level"><a class="show-mobile" href="/">Home</a></li>
</ul>
</nav>
</header>
</header>

View file

@ -7,7 +7,5 @@
{{ else }}
<body>
{{ end }}
{{ partial "navbar.html" . }}
<div id="page-wrapper">
{{ partial "navbar.html" . }}
<div id="page-wrapper">

View file

@ -1,7 +1,6 @@
{{ if eq .Section "posts" }}
{{ .Summary | truncate .Site.Params.summary_length "..." }}
{{ else }}
{{ if .Params.subtitle }}
{{ .Params.subtitle | markdownify }}
{{ else if .Params.repo }}