From ad99bc37d213374082233e9534aa9072cd584fb7 Mon Sep 17 00:00:00 2001 From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu> Date: Tue, 7 Jan 2020 22:25:22 -0600 Subject: [PATCH] Highlight current data --- archetypes/sc_data.md | 1 + content/sc.data/hu.bph.pr.md | 1 + content/sc.data/hu.cancer.pr.md | 1 + content/sc.data/hu.donor.bl.md | 1 + content/sc.data/hu.donor.pr.deep.md | 2 ++ content/sc.data/hu.donor.pr.shallow.md | 1 + content/sc.data/mu.bl.md | 1 + content/sc.data/mu.pr.md | 1 + layouts/custom/sc.data.html | 11 +++++++++-- 9 files changed, 18 insertions(+), 2 deletions(-) diff --git a/archetypes/sc_data.md b/archetypes/sc_data.md index c706e22..1904265 100644 --- a/archetypes/sc_data.md +++ b/archetypes/sc_data.md @@ -7,6 +7,7 @@ draft: true weight: "" type: "custom" layout: "" +current: true --- **PENDING** \ No newline at end of file diff --git a/content/sc.data/hu.bph.pr.md b/content/sc.data/hu.bph.pr.md index 384a8ae..87ee40f 100644 --- a/content/sc.data/hu.bph.pr.md +++ b/content/sc.data/hu.bph.pr.md @@ -7,6 +7,7 @@ draft: false weight: "4" type: "custom" layout: "" +current: false --- **PENDING** \ No newline at end of file diff --git a/content/sc.data/hu.cancer.pr.md b/content/sc.data/hu.cancer.pr.md index 0f550c2..8351df1 100644 --- a/content/sc.data/hu.cancer.pr.md +++ b/content/sc.data/hu.cancer.pr.md @@ -7,6 +7,7 @@ draft: false weight: "5" type: "custom" layout: "" +current: false --- **PENDING** \ No newline at end of file diff --git a/content/sc.data/hu.donor.bl.md b/content/sc.data/hu.donor.bl.md index 2382f54..33810b4 100644 --- a/content/sc.data/hu.donor.bl.md +++ b/content/sc.data/hu.donor.bl.md @@ -7,6 +7,7 @@ draft: false weight: "3" type: "custom" layout: "" +current: false --- **PENDING** \ No newline at end of file diff --git a/content/sc.data/hu.donor.pr.deep.md b/content/sc.data/hu.donor.pr.deep.md index 6072765..dc9d283 100644 --- a/content/sc.data/hu.donor.pr.deep.md +++ b/content/sc.data/hu.donor.pr.deep.md @@ -7,5 +7,7 @@ draft: false weight: "1" type: "custom" layout: "hu.donor.deep" +current: true +current: true --- diff --git a/content/sc.data/hu.donor.pr.shallow.md b/content/sc.data/hu.donor.pr.shallow.md index 8ff1d8a..14a0ef9 100644 --- a/content/sc.data/hu.donor.pr.shallow.md +++ b/content/sc.data/hu.donor.pr.shallow.md @@ -7,5 +7,6 @@ draft: true weight: "2" type: "custom" layout: "hu.donor.shallow" +current: false --- diff --git a/content/sc.data/mu.bl.md b/content/sc.data/mu.bl.md index d960ffa..91d3185 100644 --- a/content/sc.data/mu.bl.md +++ b/content/sc.data/mu.bl.md @@ -7,6 +7,7 @@ draft: false weight: "7" type: "custom" layout: "" +current: false --- **PENDING** \ No newline at end of file diff --git a/content/sc.data/mu.pr.md b/content/sc.data/mu.pr.md index a40587d..2f5bdfb 100644 --- a/content/sc.data/mu.pr.md +++ b/content/sc.data/mu.pr.md @@ -7,6 +7,7 @@ draft: false weight: "6" type: "custom" layout: "" +current: false --- **PENDING** \ No newline at end of file diff --git a/layouts/custom/sc.data.html b/layouts/custom/sc.data.html index 604721f..ccda3b5 100644 --- a/layouts/custom/sc.data.html +++ b/layouts/custom/sc.data.html @@ -6,8 +6,15 @@ </div> <div class="content"> - {{ range .Pages.ByWeight }} - <li><a href="{{.Permalink}}">{{.Params.name}}</a></li> + <br> + {{ range where .Pages.ByWeight "Params.current" true }} + <li><b><a href="{{.Permalink}}">{{.Params.name}}</a></b></li> + {{ end }} + <br> + <hr> + <br> + {{ range where .Pages.ByWeight "Params.current" false }} + <li><i><a href="{{.Permalink}}">{{.Params.name}}</a></i></li> {{ end }} </div> -- GitLab