Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tosi29/inkblotty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortosi29 <tosi16@gmail.com>2019-05-26 05:24:53 +0300
committertosi29 <tosi16@gmail.com>2019-05-26 05:24:53 +0300
commit812a72dcf8330ef575e5f9db040572c5ba363985 (patch)
treeb1345e2e6a97d820c029a1cd8419121b6052759b
parent971cea687576f3d10ca1f0137c9861e6c1d541ff (diff)
Remove deprecated warning
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index d84e7ca..a6ee85e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -12,7 +12,7 @@
{{- $currentNode := . }}
{{- range sort .Site.Menus.main }}
{{- if .Name}}
- <li class="menu-item {{if eq $currentNode.URL .URL }} current-menu-item current_page_item {{end}}"><a class="menu__link" href="{{ .URL }}">{{ .Name | upper }}</a></li>
+ <li class="menu-item {{if eq $currentNode.Params.url .URL }} current-menu-item current_page_item {{end}}"><a class="menu__link" href="{{ .URL }}">{{ .Name | upper }}</a></li>
{{- end }}
{{- end }}
</ul>
@@ -20,7 +20,7 @@
{{- $currentNode := . }}
{{- range sort .Site.Menus.main }}
{{- if .Name}}
- <option value="{{ .URL }}" class="menu-item menu-item-type-custom menu-item-object-custom" {{if eq $currentNode.URL .URL }} selected="selected" {{end}}>{{ .Name | upper }}</option>
+ <option value="{{ .URL }}" class="menu-item menu-item-type-custom menu-item-object-custom" {{if eq $currentNode.Params.url .URL }} selected="selected" {{end}}>{{ .Name | upper }}</option>
{{- end }}
{{- end }}
</select>