diff options
Diffstat (limited to 'themes/default/layouts/_default/section.marks.html')
-rw-r--r-- | themes/default/layouts/_default/section.marks.html | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/themes/default/layouts/_default/section.marks.html b/themes/default/layouts/_default/section.marks.html index bc35c50..b964a72 100644 --- a/themes/default/layouts/_default/section.marks.html +++ b/themes/default/layouts/_default/section.marks.html @@ -1,24 +1,13 @@ {{- 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 }}/marks"] { - 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" "#marks") | safeCSS }} + </style> {{- end -}} {{- define "header" -}} - {{- $author := partial "function-authors-data.html" . -}} - {{- $authors := where .Site.RegularPages "Section" $author.user -}} + {{- $author := .Section -}} + {{- $authors := where .Site.RegularPages "Section" $author -}} {{- $items := where .Site.RegularPages ".Params.marked" true -}} {{- $filteredPages := $authors | intersect $items -}} {{- $paginator := .Paginate $filteredPages -}} |