1
Fork 0

Use ishome rather than defined variable

This commit is contained in:
Jake Howard 2017-04-24 09:13:17 +01:00
parent 94836013da
commit c39f153d27
3 changed files with 2 additions and 5 deletions

View file

@ -1,3 +0,0 @@
---
landing: true
---

View file

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

View file

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