layout title permalink content-type post Table of Contents /toc eg <style> .category-content a { text-decoration: none; color: #4183c4; } .category-content a:hover { text-decoration: underline; color: #4183c4; } </style> Table of Contents {% assign tags = site.notes | map: 'tags' | join: ' ' | split: ' ' | uniq %} {% for tag in tags %} {{ tag | capitalize }} {%- for note in site.notes -%} {%- if note.tags contains tag -%} {{ note.title }} {%- endif -%} {%- endfor -%} {%- endfor -%}