mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-30 17:53:28 -05:00 
			
		
		
		
	Remove video and add remote-figure shortcodes
This commit is contained in:
		| @@ -1,9 +1,4 @@ | |||||||
| {{ $resource := "" }} | {{ $resource := .Page.Resources.GetMatch (.Get "src") }} | ||||||
| {{ if .IsNamedParams }} |  | ||||||
|     {{ $resource = $.Page.Resources.GetMatch (.Get "src") }} |  | ||||||
| {{ else }} |  | ||||||
|     {{ $resource = $.Page.Resources.GetMatch (.Get 0) }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| {{ $noborder := false }} | {{ $noborder := false }} | ||||||
| {{ if .Get "noborder" }} | {{ if .Get "noborder" }} | ||||||
|   | |||||||
| @@ -9,5 +9,5 @@ | |||||||
| {{ end }} | {{ end }} | ||||||
| 
 | 
 | ||||||
| <p> | <p> | ||||||
|     {{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "image" "alt" (.Get "alt")) }} |     {{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" (.Get "type") "alt" (.Get "alt")) }} | ||||||
| </p> | </p> | ||||||
| @@ -1,13 +0,0 @@ | |||||||
| {{ $border := false }} |  | ||||||
| {{ if .Get "border" }} |  | ||||||
|     {{ $border = true }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| {{ $hidecaption := false }} |  | ||||||
| {{ if .Get "hidecaption" }} |  | ||||||
|     {{ $hidecaption = true }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| <p> |  | ||||||
|     {{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "video" "alt" (.Get "alt")) }} |  | ||||||
| </p> |  | ||||||
		Reference in New Issue
	
	Block a user