mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 14:14:04 +00:00
1 parent
11c1ebe955
commit
4018752dc8
1 file changed
+2
-1
@@ -20,7 +20,8 @@
|
||||
{{ $project = .File.TranslationBaseName }}
|
||||
{{ end }}
|
||||
{{ if eq $project "index" }}{{/* Check if using dir-based page bundles. */}}
|
||||
{{ $project = delimit (last 1 (split (substr .Dir 0 -1) "/")) "" }}
|
||||
{{ $dir_sep := substr .Dir -1 1 }}
|
||||
{{ $project = delimit (last 1 (split (substr .Dir 0 -1) $dir_sep)) "" }}
|
||||
{{ end }}
|
||||
{{ $project_path := .RelPermalink }}
|
||||
|
||||
|
||||
Reference in new issue
Block a user