Skip to content

Commit ad51988

Browse files
committed
updating docsy jekyll to have linked tags
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 5195b51 commit ad51988

File tree

7 files changed

+7
-3
lines changed

7 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ Critical items to know are:
1414
- changed behaviour
1515

1616
## [master](https://github.com/vsoch/docsy-jekyll/tree/master)
17+
- adding search endpoint tags to docs (0.0.11)
1718
- adding site.url to config, making links in readme absolute (0.0.1)
1819
- start of theme (0.0.0)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.1
1+
0.0.11

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ markdown: kramdown
5858
# If you add tags to pages, you can link them to some external search
5959
# If you want to disable this, comment the URL.
6060
tag_search_endpoint: https://ask.cyberinfrastructure.org/search?q=
61-
tag_color: danger # danger, success, warning, primary, info, secondary
61+
tag_color: primary # danger, success, warning, primary, info, secondary
6262

6363
accentColor: red # purple, green, etc.
6464
themeColor: red # purple, green, blue, orange, purple, grey

_docs/extras/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Extras
33
description: Extras, including quizzes.
4+
tags:
5+
- survey
46
---
57

68
# Extras

_includes/tags.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
{% if site.tag_search_endpoint %}{% if page.tags %}<script>
2-
$('h1').first().append('<div>{% for tag in page.tags %}<span class="badge badge-{{ site.tag_color }}"><a style="cursor:pointer; color:white" href="{{ site.tag_search_endpoint }}{{ tag }}">{{ tag }}</a></span>{% endfor %}</div>')</script>{% endif %}{% endif %}
2+
$('h1').first().append('<div>{% for tag in page.tags %}<span style="font-size:12px" class="badge badge-{{ site.tag_color }}"><a style="cursor:pointer; color:white" href="{{ site.tag_search_endpoint }}{{ tag }}">{{ tag }}</a></span>{% endfor %}</div>')</script>{% endif %}{% endif %}

_layouts/page.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
{{ content }}
55
{% include toc.html %}
66
{% include permalinks.html %}
7+
{% include tags.html %}

assets/img/docsy-jekyll.png

16.3 KB
Loading

0 commit comments

Comments
 (0)