Created get-section-url helper
This commit is contained in:
parent
960f8ca94c
commit
5a785c8e2a
2 changed files with 7 additions and 2 deletions
5
layouts/partials/helpers/get-section-url.html
Normal file
5
layouts/partials/helpers/get-section-url.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{- if page.IsHome -}}
|
||||
#{{ partial "helpers/get-section-id.html" . }}
|
||||
{{- else -}}
|
||||
{{ site.BaseURL | relLangURL }}#{{ partial "helpers/get-section-id.html" . }}
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue