mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
Replace the old method to see if it is home by .IsHome
This commit is contained in:
@@ -5,8 +5,7 @@
|
||||
|
||||
<body lang="{{ .Site.Params.lang }}">
|
||||
|
||||
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
||||
{{ if eq $url "" }}
|
||||
{{ if .IsHome }}
|
||||
<section class="header header-home">
|
||||
{{ else }}
|
||||
<section class="header">
|
||||
|
Reference in New Issue
Block a user