diff options
Diffstat (limited to 'themes/default/layouts/_default/section.media.html')
-rw-r--r-- | themes/default/layouts/_default/section.media.html | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/themes/default/layouts/_default/section.media.html b/themes/default/layouts/_default/section.media.html index 4fc82fb..02b50b3 100644 --- a/themes/default/layouts/_default/section.media.html +++ b/themes/default/layouts/_default/section.media.html @@ -1,19 +1,8 @@ {{- define "styles" -}} -{{- $author := partial "function-authors-data.html" . -}} -{{- $author = $author.user -}} -<style> - {{ partial "navigator.css.html" (dict "Link" "/") | safeCSS }} - - tab-bar a[href*="{{ $author | relURL }}/media"] { - color: #111; - color: var(--foreground); - font-weight: 700; - text-decoration-color: #014cc6; - text-decoration-color: var(--link); - text-decoration: underline; - border-bottom: 2px solid var(--background); - } -</style> + <style> + {{ partial "navigator.css.html" (dict "Link" "/") | safeCSS }} + {{ partial "tabbar.css.html" (dict "Context" . "Hash" "#media") | safeCSS }} + </style> {{- end -}} {{- define "header" -}} @@ -33,9 +22,9 @@ {{- end -}} {{- define "middle" -}} - {{- $author := partial "function-authors-data.html" . -}} + {{- $author := .Section -}} {{- $notFeeds := where .Site.RegularPages "Params.feed" "eq" nil -}} - {{- $authors := where .Site.RegularPages "Section" $author.user -}} + {{- $authors := where .Site.RegularPages "Section" $author -}} {{- $filteredPages := $authors | intersect $notFeeds -}} {{- $count := 0 -}} |