diff options
author | tdro <tdro@noreply.example.com> | 2023-09-01 17:52:25 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-09-01 17:56:21 -0400 |
commit | d35a34b6386d4291fd75ba232fbe472cf8e568a6 (patch) | |
tree | 22827dfee41f5360f6bd1c1147db7078924e618e /themes/default/layouts/partials | |
parent | e594b1cf664c28c06854637687d05756e43297b5 (diff) | |
download | canory-d35a34b6386d4291fd75ba232fbe472cf8e568a6.tar.gz canory-d35a34b6386d4291fd75ba232fbe472cf8e568a6.tar.bz2 canory-d35a34b6386d4291fd75ba232fbe472cf8e568a6.zip |
themes/default/layouts/partials/profile-tabs: Avoid layout shift
Diffstat (limited to 'themes/default/layouts/partials')
-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> |