Modify the template setting to refer to the parent context.

This commit is contained in:
Kazuhiro MUSASHI 2021-03-06 21:06:29 +09:00
parent ecd1fb4b6b
commit ef6d1987dc
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@
</div>
<div id="social" class="col span_6">
<ul>
{{ partial "sections-definition.html" }}
{{ partial "sections-definition.html" . }}
{{ with .Site.Params.twitter }}<li><a href="{{ . }}" target="_blank">Twitter</a></li>{{ end }}
{{ with .Site.Params.facebook }}<li><a href="{{ . }}" target="_blank">Facebook</a></li>{{ end }}
{{ with .Site.Params.github }}<li><a href="{{ . }}" target="_blank">GitHub</a></li>{{ end }}

View File

@ -59,7 +59,7 @@
</div>
<div id="social" class="col span_6">
<ul>
{{ partial "sections-definition.html" }}
{{ partial "sections-definition.html" . }}
{{ with .Site.Params.twitter }}<li><a href="{{ . }}" target="_blank">Twitter</a></li>{{ end }}
{{ with .Site.Params.facebook }}<li><a href="{{ . }}" target="_blank">Facebook</a></li>{{ end }}
{{ with .Site.Params.github }}<li><a href="{{ . }}" target="_blank">GitHub</a></li>{{ end }}