mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
7b6bf4b78e
Adds a new config option `index_page_allow_indexing` which defaults to false. Fixes: !1527
36 lines
1.3 KiB
Django/Jinja
36 lines
1.3 KiB
Django/Jinja
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>{% block title %}Continuwuity{% endblock %}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
{%- if allow_indexing %}
|
|
<meta name="robots" content="noindex" />
|
|
{%- endif %}
|
|
|
|
<link rel="icon" href="/_continuwuity/resources/logo.svg">
|
|
<link rel="stylesheet" href="/_continuwuity/resources/common.css">
|
|
<link rel="stylesheet" href="/_continuwuity/resources/components.css">
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
|
|
<body>
|
|
<main>{%~ block content %}{% endblock ~%}</main>
|
|
{%~ block footer ~%}
|
|
<footer>
|
|
<img class="logo" src="/_continuwuity/resources/logo.svg">
|
|
<p>Powered by <a href="https://continuwuity.org">Continuwuity</a> {{ env!("CARGO_PKG_VERSION") }}
|
|
{%~ if let Some(version_info) = conduwuit_build_metadata::version_tag() ~%}
|
|
{%~ if let Some(url) = conduwuit_build_metadata::GIT_REMOTE_COMMIT_URL.or(conduwuit_build_metadata::GIT_REMOTE_WEB_URL) ~%}
|
|
(<a href="{{ url }}">{{ version_info }}</a>)
|
|
{%~ else ~%}
|
|
({{ version_info }})
|
|
{%~ endif ~%}
|
|
{%~ endif ~%}</p>
|
|
</footer>
|
|
{%~ endblock ~%}
|
|
</body>
|
|
|
|
</html>
|