Browse Source

Fix undefined $site variable

tags/v1.0.0
Rael Garcia 4 years ago
parent
commit
21a58eb46a
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      layouts/partials/map.html
  2. 1
    1
      layouts/partials/navigation.html

+ 1
- 1
layouts/partials/map.html View File

<div id="map" data-latitude="{{ .map_latitude }}" <div id="map" data-latitude="{{ .map_latitude }}"
data-longitude="{{ .map_longitude }}" data-longitude="{{ .map_longitude }}"
data-marker="{{ .map_marker | absURL }}" data-marker="{{ .map_marker | absURL }}"
data-marker-name="{{ $site.Title }}"></div>
data-marker-name="{{ site.Title }}"></div>
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}

+ 1
- 1
layouts/partials/navigation.html View File

{{ else }} {{ else }}


{{ range site.Menus.main }} {{ range site.Menus.main }}
<li class="nav-item"><a class="nav-link" href="{{ $site.BaseURL | relLangURL }}#{{ .URL }}">{{ i18n .Name }}</a>
<li class="nav-item"><a class="nav-link" href="{{ site.BaseURL | relLangURL }}#{{ .URL }}">{{ i18n .Name }}</a>
</li> </li>
{{ end }} {{ end }}
{{ end }} {{ end }}

Loading…
Cancel
Save