* Fixed navbar scroll spy * Created get-section-url helper * Fix URL for home section Signed-off-by: hossainemruz <hossainemruz@gmail.com> --------- Signed-off-by: hossainemruz <hossainemruz@gmail.com> Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
parent
03d263c4a1
commit
42d3c650f8
3 changed files with 13 additions and 4 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