Skip to content

Commit

Permalink
feat: Make breadcrumb link button
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Feb 2, 2020
1 parent fcc146a commit 78c1e91
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions layouts/partials/breadcrumb.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@
{{- end -}}

{{- if eq .node .start -}}
<li class="is-active"><a href="#" aria-current="page">{{- .node.LinkTitle -}}</a></li>
<li class="is-active">
<button class="button is-static">
<a href="#" aria-current="page">{{- .node.LinkTitle -}}</a>
</button>
</li>
{{- else -}}
<li><a href="{{- .node.Permalink -}}">{{- .node.LinkTitle -}}</a></li>
<li>
<button class="button is-text">
<a href="{{- .node.Permalink -}}">{{- .node.LinkTitle -}}</a>
</button>
</li>
{{- end -}}
{{- end -}}

0 comments on commit 78c1e91

Please sign in to comment.