mod: Переработаны дизайн и компоновка. Минималистичный код.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m27s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m27s
This commit is contained in:
@@ -1,58 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
{% load static %}<html lang="ru">
|
||||
<!DOCTYPE html>{% load static %}
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<!-- SEO & Meta -->
|
||||
<title>{% block Title %}{% endblock %}</title>
|
||||
<meta name="description" content="{% block Description %}{% endblock %}" />
|
||||
<meta name="keywords" content="{% block Keywords %}{% endblock %}" />
|
||||
<meta name="copyright" content="Sergei Erjemin (дизайн){% block CopyrightAuthor4Meta %}{% endblock %}." />
|
||||
<meta name="robots" content="index,follow" />
|
||||
|
||||
<!-- Open Graph / Social Media -->
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="{% block OgTitle %}{{ DQ.szContent|truncatechars:60 }}{% endblock %}" />
|
||||
<meta property="og:description" content="{% block OgDescription %}{{ DQ.szIntro|default:'' }} {{ DQ.szContent }} {{ AUTHOR.szAuthor|default:'' }}{% endblock %}" />
|
||||
<meta property="og:url" content="{{ request.build_absolute_uri }}" />
|
||||
<meta property="og:site_name" content="DicQuo" />
|
||||
{% if IMAGE %}<meta property="og:image" content="{{ request.scheme }}://{{ request.get_host }}{{ IMAGE.url }}" />{% endif %}
|
||||
|
||||
<!-- Technical Meta -->
|
||||
<meta http-equiv="Last-Modified" content="{% block Last4Meta %}{% endblock %}" />
|
||||
<meta name="generator" content="Django" />
|
||||
|
||||
<!-- Favicons -->
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{% static 'img/favicon.ico' %}" />
|
||||
<link rel="icon" type="image/png" href="{% static 'img/favicon.png' %}" />
|
||||
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" href="{% static 'css/dicquo.css' %}" />
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background-color: #111; /* Изначально темный фон */
|
||||
opacity: 0; /* Скрываем контент до расчета цвета */
|
||||
transition: opacity 0.9s ease-in-out; /* Очень плавное появление */
|
||||
}
|
||||
</style>
|
||||
|
||||
<noscript>
|
||||
<style>body { opacity: 1; }</style>
|
||||
</noscript>
|
||||
|
||||
{% block ExtraHead %}{% endblock %}
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
{# SEO & Meta #}<title>{% block Title %}{% endblock %}</title>
|
||||
<meta name="description" content="{% block Description %}{% endblock %}"/>
|
||||
<meta name="keywords" content="{% block Keywords %}{% endblock %}"/>
|
||||
<meta name="copyright" content="Sergei Erjemin (дизайн){% block CopyrightAuthor4Meta %}{% endblock %}."/>
|
||||
<meta name="robots" content="index,follow"/>
|
||||
{# Open Graph / Social Media #}<meta property="og:type" content="article"/>
|
||||
<meta property="og:title" content="{% block OgTitle %}{{ DQ.szContent|truncatechars:85 }}{% endblock %}"/>
|
||||
<meta property="og:description" content="{% block OgDescription %}{{ DQ.szIntro|default:'' }} {{ DQ.szContent }} {{ AUTHOR.szAuthor|default:'' }}{% endblock %}"/>
|
||||
<meta property="og:url" content="{{ request.build_absolute_uri }}"/>
|
||||
<meta property="og:site_name" content="DicQuo"/>
|
||||
{% if IMAGE %}<meta property="og:image" content="{{ request.scheme }}://{{ request.get_host }}{{ IMAGE.url }}"/>{% endif %}
|
||||
{# Шутка #}<meta name="generator" content="Microsoft FrontPage 1.0"/>
|
||||
{# Canonical #}<link rel="canonical" href="{{ request.build_absolute_uri }}"/>
|
||||
{# Favicons #}<link rel="shortcut icon" type="image/x-icon" href="{% static 'img/favicon.ico' %}"/>
|
||||
<link rel="icon" type="image/png" href="{% static 'img/favicon.png' %}"/>
|
||||
{# Technical Meta #}<meta http-equiv="Last-Modified" content="{% block Last4Meta %}{% endblock %}"/>
|
||||
{# CSS #}<link rel="stylesheet" href="{% static 'css/dicquo.css' %}"/>
|
||||
<noscript><style>body { opacity: 1; }</style></noscript>{# Показать все если JS не поддерживатся #}
|
||||
{% block ExtraHead %}{# Если нужно что=то добавить в `<head>` #}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% if DQ %}
|
||||
<span id="dq-content-raw" style="display:none;">{{ DQ.szContent }}</span>
|
||||
{% endif %}
|
||||
|
||||
{% block CONTENT %}{% endblock %}
|
||||
{% include "blocks/counters.html" %}
|
||||
<body>{% if DQ %}
|
||||
{# Этот блок для передачи JavaScript-скрипту `bg-generator.js` текст цитаты ({{ DQ.szContent }}) и скрипт на основе него делает уникальный, но постоянный для этой цитаты фон (градиент) #}<span id="dq-content-raw" style="display:none;">{{ DQ.szContent }} ({% if AUTHOR %}{{ AUTHOR.szAuthorHTML|default:AUTHOR.szAuthor }}{% endif %})</span>{% endif %}
|
||||
{% include "blocks/header_nav.html" %}
|
||||
{% block CONTENT %}{% endblock %}{% if not cookie_accept %}
|
||||
{% include "blocks/cookie_warning.html" %}{% endif %}
|
||||
<script src="{% static 'js/bg-generator.js' %}"></script>
|
||||
{% include "blocks/counters.html" %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user