File tree 8 files changed +61
-2
lines changed
8 files changed +61
-2
lines changed Original file line number Diff line number Diff line change 54
54
<pubDate >{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate >
55
55
{{- with $authorEmail }}<author >{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author >{{ end }}
56
56
<guid >{{ .Permalink }}</guid >
57
- <description >{{ .Description | transform.XMLEscape | safeHTML }}</description >
58
57
{{ if .Params.Images }}<media : content
59
58
xmlns : media =" http://search.yahoo.com/mrss/"
60
59
url =" {{ (index (.Params.Images) 0) | absURL | safeHTML }}"
61
60
medium =" image"
62
61
type =" image/jpeg"
63
62
/>{{ end }}
63
+ <description >{{ .Content | transform.XMLEscape | safeHTML }}</description >
64
64
</item >{{- end }}
65
65
{{- end }}
66
66
{{- if eq .Title "Changelog" }}
Original file line number Diff line number Diff line change
1
+ {{ $customTitle := .customTitle }}
2
+ {{ $customDescription := .customDescription }}
3
+ {{ $customCanonicalLink := .customCanonicalLink }}
4
+ {{ $link := (path.Clean (.link)) }}
5
+ {{ with site.GetPage $link }}
6
+ <li >{{if $customCanonicalLink }}<a href =" {{ $customCanonicalLink }}" >{{ else }} <a href =" {{.RelPermalink}}" > {{ end }}{{ if $customTitle }} {{ $customTitle }} {{ else }} {{ .Title }} {{ end }}</a >: {{ if $customDescription }} {{ $customDescription }} {{ else }} {{ .Description }} {{ end }}</li >
7
+ {{ end }}
Original file line number Diff line number Diff line change
1
+ {{ partial "card.xml" (dict "link" (.Get "link") "class" (.Get "class") "customTitle" (.Get "customTitle") "customDescription" (.Get "customDescription") "customCanonicalLink" (.Get "canonical") "imageOverwrite" (.Get "imageOverwrite") ) }}
Original file line number Diff line number Diff line change
1
+ <ul >{{- .Inner -}}</ul >
Original file line number Diff line number Diff line change 3
3
<link >https://docs.viam.com/appendix/changelog/#{{ .Get "title" | anchorize }}</link >
4
4
<pubDate >{{ .Get "date" | time.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate >
5
5
<guid >https://docs.viam.com/appendix/changelog/#{{ .Get "title" | anchorize }}</guid >
6
- <description >{{ .Inner | markdownify | plainify | transform.XMLEscape }}</description >
6
+ <description >{{ .Inner | markdownify | transform.XMLEscape | safeHTML }}</description >
7
7
</item >
Original file line number Diff line number Diff line change
1
+ <div >
2
+ <video autoplay loop muted playsinline alt =" {{ .Get " alt" }}" width =" 100%" style =" max-width: {{ .Get " max-width" }}" class =" {{- if .Get " class" -}}{{ .Get " class" }}{{- end }}" >
3
+ <source src =" {{relURL (substr (.Get " webm_src" ) 1) }}" type =" video/webm" >
4
+ <source src =" {{relURL (substr (.Get " mp4_src" ) 1) }}" type =" video/mp4" >
5
+ </video >
6
+ </div >
Original file line number Diff line number Diff line change
1
+ {{- .Page.Scratch.Add "tabset-counter" 1 -}}
2
+ {{- $tab_set_id := .Get "name" | default (printf "tabset-%s-%d" (.Page.RelPermalink) (.Page.Scratch.Get "tabset-counter") ) | anchorize -}}
3
+ {{- $tabs := .Scratch.Get "tabs" -}}
4
+ {{- if .Inner -}}{{- /* We don't use the inner content, but Hugo will complain if we don't reference it. */ -}}{{- end -}}
5
+ <div class =" table" >
6
+ {{- range $i, $e := $tabs -}}
7
+ {{- $id := printf "%s-%d" $tab_set_id $i -}}
8
+ {{- if (eq $i 0) -}}
9
+ <h4 >{{- trim .name " " -}}:</h4 >
10
+ <div class =" tab-content" id =" tab-content-{{ $tab_set_id }}" >
11
+ <div id =" {{ $id }}" class =" tab-pane show active" role =" tabpanel" aria-labelledby =" {{ $id }}" >
12
+ {{ else }}
13
+ <h4 >{{- trim .name " " -}}:</h4 >
14
+ <div id =" {{ $id }}" class =" tab-pane" role =" tabpanel" aria-labelledby =" {{ $id }}" >
15
+ {{ end }}
16
+ {{- with .content -}}
17
+ {{- . -}}
18
+ {{- else -}}
19
+ {{- if eq $.Page.BundleType "leaf" -}}
20
+ {{- /* find the file somewhere inside the bundle. Note the use of double asterisk */ -}}
21
+ {{- with $.Page.Resources.GetMatch (printf "**%s*" .include) -}}
22
+ {{- if ne .ResourceType "page" -}}
23
+ {{- /* Assume it is a file that needs code highlighting. */ -}}
24
+ {{- $codelang := $e.codelang | default ( path.Ext .Name | strings.TrimPrefix ".") -}}
25
+ {{- highlight .Content $codelang "" -}}
26
+ {{- else -}}
27
+ {{- .Content -}}
28
+ {{- end -}}
29
+ {{- end -}}
30
+ {{- else -}}
31
+ {{- $path := path.Join $.Page.File.Dir .include -}}
32
+ {{- $page := site.GetPage "page" $path -}}
33
+ {{- with $page -}}
34
+ {{- .Content -}}
35
+ {{- else -}}
36
+ {{- errorf "[%s] tabs include not found for path %q" site.Language.Lang $path -}}
37
+ {{- end -}}
38
+ {{- end -}}
39
+ {{- end -}}
40
+ </div >
41
+ </div >
42
+ {{- end -}}
43
+ </div >
Original file line number Diff line number Diff line change
1
+ <p >In the full post there is a video here. You can see it <a href =" {{ .Get " embed_url" }}" >on Youtube</a >.</p >
You can’t perform that action at this time.
0 commit comments