Use ishome rather than defined variable
This commit is contained in:
parent
94836013da
commit
c39f153d27
3 changed files with 2 additions and 5 deletions
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
landing: true
|
|
||||||
---
|
|
|
@ -1,4 +1,4 @@
|
||||||
<header id="header" {{ if .Params.landing }}class="alt"{{ end }}>
|
<header id="header" {{ if .IsHome }}class="alt"{{ end }}>
|
||||||
<h1><a href="/">{{ title .Site.Title }}</a></h1>
|
<h1><a href="/">{{ title .Site.Title }}</a></h1>
|
||||||
<nav id="nav">
|
<nav id="nav">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
{{ partial "head.html" . }}
|
{{ partial "head.html" . }}
|
||||||
|
|
||||||
{{ if .Params.landing }}
|
{{ if .IsHome }}
|
||||||
<body class="landing">
|
<body class="landing">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in a new issue