mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-28 10:04:20 -05:00
Make publications a collection, add arbitrary citation_* metadata, simplify
58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Gabriel Fontes | {{ page.title }}</title>
|
|
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<meta name="description" content="
|
|
{%- if page.description -%}
|
|
{{ page.description }}
|
|
{%- else -%}
|
|
{{ site.description }}
|
|
{%- endif -%}"
|
|
/>
|
|
{% if page.noindex == true -%}
|
|
<meta name="robots" content="noindex">
|
|
{%- endif %}
|
|
{% if page.citation -%}
|
|
{% for metadata in page.citation -%}
|
|
{%- assign key = metadata[0] -%}
|
|
{%- assign values = metadata[1] | array -%}
|
|
{% for value in values -%}
|
|
<meta name="citation_{{key}}" content="{{value}}">
|
|
{% endfor %}
|
|
{%- endfor %}
|
|
{%- endif %}
|
|
|
|
<link rel="icon" href="data:,">
|
|
<link rel="stylesheet" href="/assets/style.css" />
|
|
<style id="default-css">
|
|
:root {
|
|
{%- for color in site.data.colorscheme[site.default_scheme].colors.dark %}
|
|
--{{ color[0] }}: {{ color[1] }};
|
|
{%- endfor %}
|
|
}
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
{%- for color in site.data.colorscheme[site.default_scheme].colors.light %}
|
|
--{{ color[0] }}: {{ color[1] }};
|
|
{%- endfor %}
|
|
}
|
|
}
|
|
@media print {
|
|
:root {
|
|
{%- for color in site.data.colorscheme[site.default_scheme].colors.light %}
|
|
--{{ color[0] }}: {{ color[1] }};
|
|
{%- endfor %}
|
|
}
|
|
}
|
|
</style>
|
|
<script src="/assets/main.js"></script>
|
|
</head>
|
|
<body>
|
|
{{ content | extlinks }}
|
|
</body>
|
|
</html>
|