Replace the old method to see if it is home by .IsHome

This commit is contained in:
Alexis Tacnet
2017-01-04 01:02:05 +01:00
parent e4c5bb57ca
commit 1e58948395

View File

@@ -5,8 +5,7 @@
<body lang="{{ .Site.Params.lang }}"> <body lang="{{ .Site.Params.lang }}">
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ if .IsHome }}
{{ if eq $url "" }}
<section class="header header-home"> <section class="header header-home">
{{ else }} {{ else }}
<section class="header"> <section class="header">