diff --git a/CHANGELOG.md b/CHANGELOG.md index 07af69b..56a5276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Docs0 Changelog +## 1.1.3 (2024-10-13) +- Hide redirects and unlisted pages from "Next Reading" list and search index + ## 1.1.2 (2024-10-06) - Improve PDF generation diff --git a/_includes/next b/_includes/next index e79c1c3..94de88c 100644 --- a/_includes/next +++ b/_includes/next @@ -10,10 +10,15 @@ {% assign branch_level = page_url_branch_parts | size | minus: 1 | at_least: 0 %} {% assign page_file = _page.url | split: "/" | last %} - {% if page_url_root == this_page_url and page_url != this_page_url and branch_level == 1%} -
  • - {% if _page.next_title %}{{ _page.next_title }}{% else %}{{ _page.title }}{% endif %}{% if _page.description %}: {{ _page.description }}{% endif %} -
  • + {% if page_url_root == this_page_url and page_url != this_page_url and branch_level == 1 %} + {% unless _page.redirect %} + {% if _page.unlisted %} + {% continue %} + {% endif %} +
  • + {% if _page.next_title %}{{ _page.next_title }}{% else %}{{ _page.title }}{% endif %}{% if _page.description %}: {{ _page.description }}{% endif %} +
  • + {% endunless %} {% endif %} {% endfor %} {% endcapture %} diff --git a/assets/_sass/_markdown.scss b/assets/_sass/_markdown.scss index 7b27b4b..3c90205 100644 --- a/assets/_sass/_markdown.scss +++ b/assets/_sass/_markdown.scss @@ -202,6 +202,10 @@ width: 100%; overflow: auto } + .wide table, table.wide { + display: table; + width: 100%; + } table th { font-weight: 600 diff --git a/assets/scripts/fuse-index.js b/assets/scripts/fuse-index.js index c840d8c..1884272 100644 --- a/assets/scripts/fuse-index.js +++ b/assets/scripts/fuse-index.js @@ -1,10 +1,10 @@ --- --- -var searchIndex = [{% for collection in site.collections %}{% assign colsize = collection.files | size %}{% if colsize > 0 %}{% for page in site[collection.label] %}{% unless page.unlisted %} +var searchIndex = [{% for collection in site.collections %}{% assign colsize = collection.files | size %}{% if colsize > 0 %}{% for page in site[collection.label] %}{% unless page.unlisted %}{% unless page.redirect %} { "id": "{{ page.id | slugify }}", "url": "{{ page.url | remove: 'index.html' }}", "title": "{{ page.title }}", "content": `{{ page.content | strip_html | newline_to_br | replace: '
    ', ' ' | strip_newlines | remove:'"' | remove:'`' }}` -}{% endunless %}{% unless forloop.last %},{% endunless %}{% endfor %}{% endif %}{% endfor %} +}{% endunless %}{% endunless %}{% unless forloop.last %},{% endunless %}{% endfor %}{% endif %}{% endfor %} ]; \ No newline at end of file diff --git a/package.json b/package.json index 47e8890..e2c07f2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "Docs0", - "version": "1.1.2", - "lastUpdated": "2024-10-06", + "version": "1.1.3", + "lastUpdated": "2024-10-13", "scripts": { "run (incremental)": "bundle exec jekyll serve --incremental --port 4001", "run (full)": "bundle exec jekyll serve --port 4001",