option to use gradient backgrounds
This commit is contained in:
parent
f84d0238f0
commit
c7ce34b0da
8 changed files with 214 additions and 1 deletions
|
|
@ -1,6 +1,16 @@
|
|||
{% extends "base.html" %}
|
||||
{% block head %}
|
||||
<title>{{ settings.SITENAME }}</title>
|
||||
{% if week_background %}
|
||||
<style>
|
||||
body {
|
||||
background: {{ week_background }};
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
window.useHue = true;
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="index archive">
|
||||
|
|
|
|||
|
|
@ -13,6 +13,22 @@
|
|||
<meta property="og:url" content="{{ url }}"/>
|
||||
{% endif %}
|
||||
<meta property="og:site_name" content="{{ settings.SITENAME }}"/>
|
||||
{% if item.use_hue %}
|
||||
<style>
|
||||
:root {
|
||||
--color1: var(--bg);
|
||||
--color2: var(--bg);
|
||||
--color3: var(--bg);
|
||||
}
|
||||
body {
|
||||
background: linear-gradient(to bottom, var(--color1), var(--color2), var(--color3));
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
window.useHue = true;
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
{% block main %}
|
||||
<div class="content">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue