mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	Add condition to disable edit post on single pages (#1143)
editPost:
    disabled: true
---------
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
			
			
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| {{- if or .Params.editPost.URL site.Params.editPost.URL -}} | {{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}} | ||||||
| {{- $fileUrlPath := path.Join .File.Path }} | {{- $fileUrlPath := path.Join .File.Path }} | ||||||
|  |  | ||||||
| {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}} | {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Douglas Tofoli
					Douglas Tofoli