File tree 2 files changed +4
-3
lines changed
themes/ace-documentation/layouts/_default
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
{{ range .Site.Sections }}
4
4
{{ if .Params.source }}
5
- {{ $sectionLoc := .File.ContentBaseName }}
5
+ {{ $sectionLoc := printf "%s%s" .File.Dir .File. ContentBaseName | strings.TrimPrefix "/" }}
6
6
{{ $transcripts := slice }}
7
7
{{ $latestDate := "" }}
8
8
20
20
{{ else }}
21
21
{{ range .Pages }}
22
22
{{ if and (eq .BundleType "branch") .Params.source }}
23
- {{ $sourceLoc := .File.ContentBaseName }}
23
+ {{ $sourceLoc := printf "%s%s" .File.Dir .File. ContentBaseName | strings.TrimPrefix "/" }}
24
24
{{ $transcripts := slice }}
25
25
{{ $latestDate := "" }}
26
26
Original file line number Diff line number Diff line change 60
60
" title" .Title
61
61
" tags" .Params.tags
62
62
" speakers" .Params.speakers
63
- " source_file" .Params.media
63
+ " source_file" (or .Params.source_file .Params.media)
64
+ " media" .Params.media
64
65
" categories" .Params.categories
65
66
" date" $formattedDate
66
67
" loc" (path.Dir .File.Path)
You can’t perform that action at this time.
0 commit comments