|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + {#- meta tags #} |
| 5 | + <meta charset="utf-8" /> |
| 6 | + <meta http-equiv="x-ua-compatible" content="ie=edge" /> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 8 | + <meta name="base" content="{{ config.base_url | safe }}" /> |
| 9 | + <meta name="HandheldFriendly" content="True" /> |
| 10 | + <meta name="color-scheme" content="dark light"> |
| 11 | + <meta name="theme-color" media="(prefers-color-scheme: dark)"> |
| 12 | + <meta name="theme-color" media="(prefers-color-scheme: light)"> |
| 13 | + {#- Security: CSP, referrer #} |
| 14 | + {%- if config.extra.security_header_referrer %} |
| 15 | + <meta name="referrer" content="{{ config.extra.security_header_referrer | safe }}" /> |
| 16 | + {%- endif %} |
| 17 | + {%- if config.extra.security_header_csp %} |
| 18 | + <meta http-equiv="Content-Security-Policy" content="{{ config.extra.security_header_csp | safe }}" /> |
| 19 | + {%- endif %} |
| 20 | + {#- Style Sheets #} |
| 21 | + {% set css = load_data(path="templates/partials/styles.css") %} |
| 22 | + <style>{{ css | safe }}</style> |
| 23 | +</head> |
| 24 | +<body> |
| 25 | +{%- block header %} |
| 26 | + <header> |
| 27 | + <div class="navigation-container"> |
| 28 | + <nav class="site-navigation top-bar" role="navigation"> |
| 29 | + <div class="top-bar--title"> |
| 30 | + |
| 31 | + {%- if config.extra.logo -%} |
| 32 | + |
| 33 | + <a href="{{ get_url(path="/", lang=lang) }}" title="{{config.title}}"> |
| 34 | + {%- if config.extra.logo.file -%} |
| 35 | + <img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} /> |
| 36 | + {%- endif -%} |
| 37 | + {%- if config.extra.logo.text -%}{{ config.extra.logo.text | safe }}{%- endif -%} |
| 38 | + </a> |
| 39 | + |
| 40 | + {%- elif config.extra.textlogo -%} |
| 41 | + <a href="{{ get_url(path="/", lang=lang) }}" title="{{config.title}}">{{ config.extra.textlogo | safe }}</a> |
| 42 | + {%- elif config.title -%} |
| 43 | + <a href="{{ get_url(path="/", lang=lang) }}" title="{{config.title}}">{{ config.title | safe }}</a> |
| 44 | + {%- endif -%} |
| 45 | + </div> |
| 46 | + |
| 47 | + <div class="top-bar--links"> |
| 48 | + <a href="https://github.com/bayesflow-org/awesome-amortized-inference/blob/main/CONTRIBUTING.md">Contribute here!</a> |
| 49 | + </div> |
| 50 | + </nav> |
| 51 | + {%- if config.extra.sitedesc %} |
| 52 | + {%- if config.description %} |
| 53 | + <div class="desc">{{ config.description }}</div> |
| 54 | + {%- endif %} |
| 55 | + {%- endif %} |
| 56 | + {%- if config.extra.headhr %} |
| 57 | + <hr /> |
| 58 | + {%- endif %} |
| 59 | + </div> |
| 60 | + </header> |
| 61 | +{%- endblock header %} |
| 62 | + <main> |
| 63 | + {%- block content %} |
| 64 | + {%- endblock content %} |
| 65 | + </main> |
| 66 | +{%- block footer %} |
| 67 | + <footer> |
| 68 | + {%- if config.extra.foothr %} |
| 69 | + <hr /> |
| 70 | + {%- endif %} |
| 71 | + <div class="c"> |
| 72 | + |
| 73 | + {%- if config.extra.menu_footer %} |
| 74 | + <nav class="vpad"> |
| 75 | + {%- for i in config.extra.menu_footer -%} |
| 76 | + {%- if i.url is matching("^http[s]?://") %} |
| 77 | + {%- set furl=i.url %} |
| 78 | + {%- elif i.url != "sitemap.xml" %} |
| 79 | + {%- set furl=get_url(path=i.url, lang=lang, trailing_slash=i.slash) %} |
| 80 | + {%- else %} |
| 81 | + {%- set furl=get_url(path=i.url, trailing_slash=i.slash) %} |
| 82 | + {%- endif %} |
| 83 | + <a class="rpad{%- if i.size %} {{ i.size }}{% endif %}" href="{{ furl | safe }}{%- if i.slash and uglyurls %}index.html{%- endif %}"{% if i.blank %} target="_blank"{% endif %}>{{ i.name | safe }} </a> |
| 84 | + {%- endfor %} |
| 85 | + </nav> |
| 86 | + {%- endif %} |
| 87 | + |
| 88 | + {#- Copyright START #} |
| 89 | + {%- set current_year = now() | date(format="%Y") %} |
| 90 | + {%- set current_year = '<span id="year">' ~ current_year ~ '</span>' %} |
| 91 | + |
| 92 | + {%- if config.extra.copyright_override -%} |
| 93 | + {%- if lang != config.default_language %} |
| 94 | + {%- set copyright_string = '© $CURRENT_YEAR $SITE_TITLE' | replace(from="$CURRENT_YEAR", to=current_year) | replace(from="$SITE_TITLE", to=config.title) %} |
| 95 | + {% else %} |
| 96 | + {%- set copyright_string = config.extra.copyright_override | replace(from="$CURRENT_YEAR", to=current_year) | replace(from="$SITE_TITLE", to=config.title) %} |
| 97 | + {% endif -%} |
| 98 | + {%- else -%} |
| 99 | + {%- set copyright_string = "©" ~ current_year ~ " " ~ config.title %} |
| 100 | + {%- endif %} |
| 101 | + <p> {{ copyright_string | safe }}. Powered by <a href="https://www.getzola.org/" target="_blank">Zola</a>.</p> </div> |
| 102 | + </footer> |
| 103 | +{%- endblock footer %} |
| 104 | +{%- block gotop %} |
| 105 | +{%- endblock gotop %} |
| 106 | +</body> |
| 107 | +</html> |
0 commit comments