mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-30 17:53:28 -05:00 
			
		
		
		
	Remove render-image override
We can just use the resource shortcode in content files
This commit is contained in:
		| @@ -4,8 +4,6 @@ markup: | |||||||
|     lineNos: true |     lineNos: true | ||||||
|   goldmark: |   goldmark: | ||||||
|     parser: |     parser: | ||||||
|       # don't put <p> around ![]() image in markdown (used to embed any resource now) |  | ||||||
|       wrapStandAloneImageWithinParagraph: false |  | ||||||
|       attribute: |       attribute: | ||||||
|         block: true |         block: true | ||||||
|         # this is enabled by default already |         # this is enabled by default already | ||||||
|   | |||||||
| @@ -1,12 +0,0 @@ | |||||||
| {{/* TODO: should we use .PageInner */}} |  | ||||||
| {{ partial "embed-resource.html" (.Page.Resources.Get .Destination) }} |  | ||||||
| {{ with .Title }} |  | ||||||
|     {{ errorf "%q" . }} |  | ||||||
| {{ end }} |  | ||||||
| {{ with .Attributes }} |  | ||||||
|     {{/* FIXME: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_markup/render-image.html */}} |  | ||||||
|     {{ errorf "%q" . }} |  | ||||||
| {{ end }} |  | ||||||
| {{ with .Text }} |  | ||||||
|     {{ errorf "%q" . }} |  | ||||||
| {{ end }} |  | ||||||
		Reference in New Issue
	
	Block a user