theme: support defining target=_blank in theme_config
add "target": "_blank" to the JSON
This commit is contained in:
parent
f45bd92258
commit
9077e10876
|
@ -8,7 +8,7 @@
|
||||||
<section class="links with-divider with-divider-right with-divider-center-mobile">
|
<section class="links with-divider with-divider-right with-divider-center-mobile">
|
||||||
<ul>
|
<ul>
|
||||||
{{ #each blog.theme_config.nav_links }}
|
{{ #each blog.theme_config.nav_links }}
|
||||||
<li><a href="{{ this.url }}">{{ this.name }}</a></li>
|
<li><a {{ #if this.target }}target="{{ this.target }}"{{ /if }} href="{{ this.url }}">{{ this.name }}</a></li>
|
||||||
{{ /each }}
|
{{ /each }}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue