Work in progress...
{{ content }}{%- comment -%} Include page specific .css and .js files {%- endcomment -%} {%- for static_file in site.static_files -%} {%- assign file_directory = static_file.path | split: "/" | pop | join: "/" -%} {%- assign match_html_file = static_file.basename | append: ".html" -%} {%- if match_html_file == page.name and static_file.extname == ".css" and file_directory == "/assets/css" %} {% endif -%} {%- if match_html_file == page.name and static_file.extname == ".js" and file_directory == "/assets/javascript" %} {% endif -%} {%- endfor %}