diff --git a/templates/partials/footer.html b/templates/partials/footer.html index 72298f4f4..41f199ee7 100644 --- a/templates/partials/footer.html +++ b/templates/partials/footer.html @@ -1,45 +1,2 @@ - - -{%- set section = get_section(path="footer/_index.md") %} -{%- set logoPath = section.extra.logoPath %} - - - -
- - - - \ No newline at end of file +{% set page = get_page(path="header.md") %} +{{page.content | safe}} \ No newline at end of file diff --git a/templates/partials/header.html b/templates/partials/header.html index d8aa6dc62..41f199ee7 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -1,222 +1,2 @@ -{%- set section = get_page(path="header/index.md") %} -{% set header_items = section.content | safe | split(pat="
  • ") %} - -
    -
    -
    -
    -
    - - ThreeFold Logo - -
    -
    - - -
    -
  • ") %} - {% set header_label = header_arr[0] %} - {% if ' 1 %} - - {{link_label}} - - {% endif %} - {% elif current == current_url %} - - {{link_label}} - - {% endif %} - {% else %} - {%if link_path | length > 1 %} - - {{link_label}} - - {% endif %} - {% endif %} - {% else %} -
    - {% set button_id = header_label ~ "-menu-btn" | slugify %} - -
    - - {% endif %} - {% endif %} - {% endfor %} - - - - - - -{% for header_item in header_items %} -{% if not loop.first %} - {% set header_arr = header_item | split(pat="") %} - {% set header_label = header_arr[0] %} - {% set header_menu = header_arr[1] %} - {% set menu_id = header_label ~ "-menu" | slugify %} - - - - -{% endif %} -{% endfor %} - - - - - - - \ No newline at end of file +{% set page = get_page(path="header.md") %} +{{page.content | safe}} \ No newline at end of file