Merge pull request #9 from kazu634/separate-section-definitions-to-partial

Separate section definitions to partial
This commit is contained in:
Kazuhiro MUSASHI 2019-04-14 15:03:27 +07:00 committed by GitHub
commit 9073f99314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 6 deletions

View File

@ -66,8 +66,7 @@
</div> </div>
<div id="social" class="col span_6"> <div id="social" class="col span_6">
<ul> <ul>
<li><a href="https://blog.kazu634.com/labs/">Labs</a></li> {{ partial "sections-definition.html" }}
<li><a href="https://blog.kazu634.com/quotes/">Quotes</a></li>
{{ with .Site.Params.twitter }}<li><a href="{{ . }}" target="_blank">Twitter</a></li>{{ end }} {{ 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.facebook }}<li><a href="{{ . }}" target="_blank">Facebook</a></li>{{ end }}
{{ with .Site.Params.github }}<li><a href="{{ . }}" target="_blank">GitHub</a></li>{{ end }} {{ with .Site.Params.github }}<li><a href="{{ . }}" target="_blank">GitHub</a></li>{{ end }}

View File

@ -55,8 +55,7 @@
</div> </div>
<div id="social" class="col span_6"> <div id="social" class="col span_6">
<ul> <ul>
<li><a href="https://blog.kazu634.com/labs/">Labs</a></li> {{ partial "sections-definition.html" }}
<li><a href="https://blog.kazu634.com/quotes/">Quotes</a></li>
{{ with .Site.Params.twitter }}<li><a href="{{ . }}" target="_blank">Twitter</a></li>{{ end }} {{ 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.facebook }}<li><a href="{{ . }}" target="_blank">Facebook</a></li>{{ end }}
{{ with .Site.Params.github }}<li><a href="{{ . }}" target="_blank">GitHub</a></li>{{ end }} {{ with .Site.Params.github }}<li><a href="{{ . }}" target="_blank">GitHub</a></li>{{ end }}

View File

@ -82,8 +82,7 @@
</div> </div>
<div id="social" class="col span_6"> <div id="social" class="col span_6">
<ul> <ul>
<li><a href="https://blog.kazu634.com/labs/">Labs</a></li> {{ partial "sections-definition.html" }}
<li><a href="https://blog.kazu634.com/quotes/">Quotes</a></li>
{{ with .Site.Params.twitter }}<li><a href="{{ . }}" target="_blank">Twitter</a></li>{{ end }} {{ 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.facebook }}<li><a href="{{ . }}" target="_blank">Facebook</a></li>{{ end }}
{{ with .Site.Params.github }}<li><a href="{{ . }}" target="_blank">GitHub</a></li>{{ end }} {{ with .Site.Params.github }}<li><a href="{{ . }}" target="_blank">GitHub</a></li>{{ end }}

View File

@ -0,0 +1,2 @@
<li><a href="https://blog.kazu634.com/labs/">Labs</a></li>
<li><a href="https://blog.kazu634.com/quotes/">Quotes</a></li>