{% macro resource() %} {% endmacro %} {% macro stylesheet() %} {% endmacro %} {% macro favicons() %} {% if not config.extra.is_netlify %} {% endif %} {% endmacro %} {# type: website or article, generally setting article for blog articles #} {# page_images: using for the blog single template page #} {# page_section: the blog single template page have to pass the parameter #} {# is_404: using for the 404.html template #} {% macro seo( title="", title_addition="", description="", type="website", is_home=false, is_404=false, is_page=false, page_images="", page_section="", created_time="2021-05-01T08:08:00+08:00", updated_time="2021-05-01T08:08:08+08:00" ) %} {% if is_404 %} {% else %} {% endif %} {% if current_url %} {% set page_url = current_url %} {% else %} {% set page_url = get_url(path="404.html") %} {% endif %} {% if current_path %} {% set page_path = current_path %} {% else %} {% set page_path = "/404.html" %} {% endif %} {{ title ~ title_addition }} {% if config.extra.open.enable %} {% if page.extra.images %} {% for image in page.extra.images %} {% endfor %} {% elif section.extra.images %} {% for image in section.extra.images %} {% endfor %} {% elif config.extra.open.image %} {% endif %} {% if page.extra.images %} {% for image in page.extra.images %} {% endfor %} {% elif section.extra.images %} {% for image in section.extra.images %} {% endfor %} {% elif config.extra.open.image %} {% endif %} {% if config.extra.open.audio %} {% endif %} {% if config.extra.open.locale %} {% endif %} {% if config.extra.open.videos %} {% for video in config.extra.open.videos %} {% endfor %} {% endif %} {% endif %} {% if is_home and config.extra.schema %} {% if config.extra.schema.type == "Organization" %} {% endif %} {% if config.extra.schema.type == "Person" %} {% endif %} {% if config.extra.schema.site_links_search_box %} {% endif %} {% endif %} {% if is_page and config.extra.schema.section %} {% if config.extra.schema.section == page_section %} {% endif %} {% endif %} {% set url_prefix = get_url(path="/") | split(pat="://") | first %} {% set url_main = get_url(path="/") | split(pat="://") | last %} {% set url_item = url_prefix ~ "://" ~ url_main ~ "/" %} {% if config.extra.ganalytics %} {% endif %} {% endmacro %}