diff --git a/content/topics-list/_index.md b/content/topics-list/_index.md new file mode 100644 index 00000000..73dc5505 --- /dev/null +++ b/content/topics-list/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Topics List" +template = "topics-list.html" ++++ diff --git a/sass/_valkey.scss b/sass/_valkey.scss index 522d4dca..e475c09d 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -575,7 +575,7 @@ p { overflow-x: auto; background-size: cover; background-position: center bottom; - position: stiky; + position: sticky; top: 0px; @media (max-width: 1100px) { @@ -1979,13 +1979,16 @@ blockquote { .breadcrumb-item { align-items: center; display: flex; - + font-size: 14px; + img { margin-right: 5px; } .breadcrumb-link { color: #2054B2; + text-decoration: underline; + font-weight: 600; } } } diff --git a/static/img/caret-right.svg b/static/img/caret-right.svg new file mode 100644 index 00000000..c189181b --- /dev/null +++ b/static/img/caret-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/templates/docs-page.html b/templates/docs-page.html index b8fed376..47b5d1c6 100644 --- a/templates/docs-page.html +++ b/templates/docs-page.html @@ -1,4 +1,4 @@ -{% extends "right-aside.html" %} +{% extends "left-aside.html" %} {% import "macros/docs.html" as docs %} @@ -21,10 +21,26 @@ {% block subhead_content %} {% if has_frontmatter and frontmatter_title %} -

Documentation: {{ frontmatter_title }}

+
+

Documentation: {{ frontmatter_title }}

+
{% endif %} {% endblock subhead_content %} +{% block breadcrumbs %} +{# Breadcrumbs section #} + +{% endblock breadcrumbs %} {% block main_content %} {% if config.extra.review_list is containing(page.path) %} @@ -41,6 +57,56 @@

Documentation: {{ frontmatter_title }}

{% endblock main_content %} {% block related_content %} +
+ +
+ + + + +

Alphabetical Index

+ + + +
See an error? Update this Page on GitHub! diff --git a/templates/left-aside.html b/templates/left-aside.html index c69147d7..8ec70914 100644 --- a/templates/left-aside.html +++ b/templates/left-aside.html @@ -5,6 +5,7 @@
+ {% block breadcrumbs %}{% endblock breadcrumbs %}
{% block main_content %}{% endblock main_content %}
diff --git a/templates/topics-list.html b/templates/topics-list.html new file mode 100644 index 00000000..7e4ce2ed --- /dev/null +++ b/templates/topics-list.html @@ -0,0 +1,34 @@ +{% import "macros/docs.html" as docs %} + +{% set topics_entries = [] %} +{% set topics_section = get_section(path="topics/_index.md") %} + +{% for topic_page in topics_section.pages %} + {% set docs_file_contents = docs::load(slug= topic_page.slug) %} + {% set frontmatter = docs::extract_frontmatter(content= docs_file_contents) %} + {% set frontmatter_length = frontmatter | length() %} + + {% if frontmatter_length > 0 %} + {% set frontmatter_data = load_data(literal= frontmatter, format="yaml") %} + {% if frontmatter_data.title %} + {% set topic_entry = [ + frontmatter_data.title, + topic_page.permalink | safe, + frontmatter_data.description | default(value="") + ] %} + {% set_global topics_entries = topics_entries | concat(with= [ topic_entry ]) %} + {% endif %} + {% endif %} +{% endfor %} + +{% set alpha_entries = topics_entries | sort(attribute="0") %} +{% for entry in alpha_entries %} +
  • + + {{ entry[0] }} + {% if entry[2] %} + {{ entry[2] | safe }} + {% endif %} + +
  • +{% endfor %}