mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00:00
modules: namespace Core module
Hugo does not namespace modules by default, leading to conflicts. Hence, load partials from a namespaced sub-folder to prevent conflicts with similarly named files in other modules.
This commit is contained in:
1 parent
ed188eb822
commit
53a94b591e
8 files changed
+2
-2
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -4,9 +4,9 @@
|
||||
|
||||
{{ $logo_url := "" }}
|
||||
{{ if resources.Get "media/logo.png" | or (resources.Get "media/logo.svg") }}
|
||||
{{ $logo_url = (partial "functions/get_logo" (dict "constraint" "fit" "size" 192)).Permalink }}
|
||||
{{ $logo_url = (partial "wowchemy-core/functions/get_logo" (dict "constraint" "fit" "size" 192)).Permalink }}
|
||||
{{ else }}
|
||||
{{ $logo_url = (partial "functions/get_icon" 192).Permalink }}
|
||||
{{ $logo_url = (partial "wowchemy-core/functions/get_icon" 192).Permalink }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $logo_url }}
|
||||
File renamed without changes.
Reference in new issue
Block a user