mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-17 03:29:31 -07:00
feat: use absolute URLs for assets
closes #473, closes #476 Signed-off-by: Sped0n <hi@sped0n.com>
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
{{- $weight := -1 -}}
|
||||
|
||||
{{- range site.Menus.main -}}
|
||||
{{ $menu_item_url := .URL | relLangURL }}
|
||||
{{ $page_url:= $currentPage.RelPermalink | relLangURL }}
|
||||
{{ if eq $menu_item_url $page_url }}
|
||||
{{- $menu_item_url := .URL | relLangURL -}}
|
||||
{{- $page_url:= $currentPage.RelPermalink | relLangURL -}}
|
||||
{{- if eq $menu_item_url $page_url -}}
|
||||
{{- $identifier = .Identifier -}}
|
||||
{{- $title = .Title -}}
|
||||
{{- $weight = .Weight -}}
|
||||
|
||||
Reference in New Issue
Block a user