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>
|
||||
<nav id="nav">
|
||||
<ul>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
{{ if .Params.landing }}
|
||||
{{ if .IsHome }}
|
||||
<body class="landing">
|
||||
{{ else }}
|
||||
<body>
|
||||
|
|
Loading…
Reference in a new issue