From 9d0ba2bed4fdc4705ff64b7cf7a38bb191d16dd0 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 19 Aug 2020 17:09:47 -0400 Subject: [PATCH] Add contextual blog menu --- less/core.less | 25 +++++++++++++++++++++++++ templates/user/collection.tmpl | 5 ++++- templates/user/include/nav.tmpl | 4 ++++ templates/user/stats.tmpl | 5 ++++- 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/less/core.less b/less/core.less index f8ddfbf..7dba5b8 100644 --- a/less/core.less +++ b/less/core.less @@ -10,6 +10,8 @@ @proSelectedCol: #71D571; @textLinkColor: rgb(0, 0, 238); +@accent: #767676; + body { font-family: @serifFont; font-size-adjust: 0.5; @@ -1565,3 +1567,26 @@ div.row { pre.code-block { overflow-x: auto; } + +#org-nav { + font-family: @sansFont; + font-size: 1.1em; + color: #888; + + em, strong { + color: #000; + } + &+h1 { + margin-top: 0.5em; + } + a:link, a:visited, a:hover { + color: @accent; + } + a:first-child { + margin-right: 0.25em; + } + a.coll-name { + font-weight: bold; + margin-left: 0.25em; + } +} \ No newline at end of file diff --git a/templates/user/collection.tmpl b/templates/user/collection.tmpl index 8bf4c41..52d1934 100644 --- a/templates/user/collection.tmpl +++ b/templates/user/collection.tmpl @@ -20,7 +20,10 @@ textarea.section.norm { {{if .Silenced}} {{template "user-silenced"}} {{end}} -

Customize {{.DisplayTitle}}

+ + {{template "collection-breadcrumbs" .}} + +

Customize

{{template "collection-nav" (dict "Alias" .Alias "Path" .Path "SingleUser" .SingleUser)}} diff --git a/templates/user/include/nav.tmpl b/templates/user/include/nav.tmpl index 2b54baf..f159e35 100644 --- a/templates/user/include/nav.tmpl +++ b/templates/user/include/nav.tmpl @@ -1,3 +1,7 @@ +{{define "collection-breadcrumbs"}} + {{if and .Collection (not .SingleUser)}}{{end}} +{{end}} + {{define "collection-nav"}}