{{ if and .IsSection (ne .Page.Params.generated true) }}
<br/>
<footer class="well">
	<i class="fa fa-heart text-primary"></i> 
	Help expand the docs! Add <input id="github-add-name" type="text" value="Your Content" size=18> as a 
	
	{{ $File := .File }}
	{{ $Site := .Site }}
	
	{{with $File.Path }}
		<button class="github-link github-add" data-url="{{ $Site.Params.newURL }}?filename={{ replace $File.Dir "\\" "/" }}TEMPLATE_FILE.md&value={{ partial "template-page" | safeHTMLAttr }}&message=Add page TEMPLATE_NAME under {{ $.Title }}&description=Briefly describe your new page">
		<i class="fa fa-file-o"></i>
		New Page
		</button> 
	or 
		<button class="github-link github-add" data-url="{{ $Site.Params.newURL }}TEMPLATE_FILE?filename={{ replace $File.Dir "\\" "/" }}_index.md&value={{ partial "template-section" | safeHTMLAttr }}&message=Add section TEMPLATE_NAME under {{ $.Title }}&description=Briefly describe your new section">
		<i class="fa fa-folder-open"></i>
		New Section
		</button> 
	{{- end }}
	
</footer>
{{ end }}
{{ if and .IsSection (ne .Page.Params.generated true) }}
<br/>
<footer class="well">
	<i class="fa fa-heart text-primary"></i> 
	Help expand the docs! Add <input id="github-add-name" type="text" value="Your Content" size=18> as a 
	
	{{ $File := .File }}
	{{ $Site := .Site }}
	
	{{with $File.Path }}
		<button class="github-link github-add" data-url="{{- $Site.Params.newURL -}}?filename=content/{{ replace $File.Dir "\\" "/" }}TEMPLATE_FILE.md&value={{ partial "template-page" | safeHTMLAttr }}&message=Add page TEMPLATE_NAME under {{ $.Title }}&description=Briefly describe your new page">
		<i class="fa fa-file-o"></i>
		New Page
		</button> 
	or 
		<button class="github-link github-add" data-url="{{- $Site.Params.newURL -}}?filename=content/{{ replace $File.Dir "\\" "/" }}/TEMPLATE_FILE/_index.md&value={{ partial "template-section" | safeHTMLAttr }}&message=Add section TEMPLATE_NAME under {{ $.Title }}&description=Briefly describe your new section">
		<i class="fa fa-folder-open"></i>
		New Section
		</button> 
	{{- end }}
	
</footer>
{{ end }}

Fix GitHub new page and new section links in Contribute partial
Fix GitHub new page and new section links in Contribute partial
