diff options
Diffstat (limited to 'themes/default/layouts/partials/profile-tabs.html')
-rw-r--r-- | themes/default/layouts/partials/profile-tabs.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/themes/default/layouts/partials/profile-tabs.html b/themes/default/layouts/partials/profile-tabs.html index e5c0385..e665855 100644 --- a/themes/default/layouts/partials/profile-tabs.html +++ b/themes/default/layouts/partials/profile-tabs.html @@ -1,13 +1,14 @@ {{- $author := partial "function-authors-data.html" . -}} +{{- $label := "" -}} <tab-bar> <nav> - <a href="{{ .Site.BaseURL }}/{{ $author.user }}">Messages</a> - <a href="{{ .Site.BaseURL }}/{{ $author.user }}/feeds/">Feeds</a> - <a href="{{ .Site.BaseURL }}/{{ $author.user }}/media/">Media</a> - <a href="{{ .Site.BaseURL }}/{{ $author.user }}/likes/">Likes</a> + <a data-label="{{ $label = "Messages" }}{{ $label }}" href="{{ .Site.BaseURL }}/{{ $author.user }}/">{{ $label }}</a> + <a data-label="{{ $label = "Feeds" }}{{ $label }}" href="{{ .Site.BaseURL }}/{{ $author.user }}/feeds/">{{ $label }}</a> + <a data-label="{{ $label = "Media" }}{{ $label }}" href="{{ .Site.BaseURL }}/{{ $author.user }}/media/">{{ $label }}</a> + <a data-label="{{ $label = "Likes" }}{{ $label }}" href="{{ .Site.BaseURL }}/{{ $author.user }}/likes/">{{ $label }}</a> {{- if .Site.BuildDrafts }} - <a data-draft href="{{ .Site.BaseURL }}/{{ $author.user }}/drafts/">Drafts</a> + <a data-label="{{ $label = "Drafts" }}{{ $label }}" href="{{ .Site.BaseURL }}/{{ $author.user }}/drafts/" data-draft="" >{{ $label }}</a> {{- end }} </nav> </tab-bar> |