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

View file

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

View file

@ -5,7 +5,7 @@
<link rel="alternate" type="application/rss+xml" href="{{ .Site.RSSLink }}" /> <link rel="alternate" type="application/rss+xml" href="{{ .Site.RSSLink }}" />
<meta name="superfish" content="nofish" /> <meta name="superfish" content="nofish" />
<meta name="application-name" content="{{ .Site.Title }}" /> <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" /> <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> <h1><a href="/" class="navbar-brand">{{ title .Site.Title }}</a></h1>
<nav id="nav"> <nav id="nav">
<ul> <ul>
@ -39,4 +39,4 @@
<li class="top-level"><a class="show-mobile" href="/">Home</a></li> <li class="top-level"><a class="show-mobile" href="/">Home</a></li>
</ul> </ul>
</nav> </nav>
</header> </header>

View file

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

View file

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