Fix home_page
This commit is contained in:
parent
07b56f226c
commit
0c6a0a1a2b
|
@ -1,7 +1,6 @@
|
|||
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
|
||||
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}"/>
|
||||
<!-- load wagtailcore_tags by adding this: -->
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% load static wagtailcore_tags wagtailuserbar %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>
|
||||
|
@ -25,7 +25,7 @@
|
|||
|
||||
{# Global stylesheets #}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'css/rumine.css' %}">
|
||||
|
||||
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}" type="image/x-icon"/>
|
||||
{% block extra_css %}
|
||||
{# Override this in templates to add extra stylesheets #}
|
||||
{% endblock %}
|
||||
|
@ -34,7 +34,43 @@
|
|||
<body class="{% block body_class %}{% endblock %}">
|
||||
{% wagtailuserbar %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
{% block content %}
|
||||
<header>
|
||||
<div class="icms-header__middle">
|
||||
<div class="container-fluid d-flex justify-content-between align-items-center flex-nowrap">
|
||||
<div class=" mx-auto">
|
||||
<span class="navbar-brand mr-3 flex-shrink-0">
|
||||
<img src="{% static 'images/small_logo.png' %}" class="d-sm-none" alt="RuMine">
|
||||
<img src="{% static 'images/big_logo.png' %}" class="d-none d-sm-block" alt="RuMine">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="icms-header__bottom border-bottom icms-navbar">
|
||||
<div class="container">
|
||||
<nav class="navbar p-0 navbar-expand-lg navbar-light">
|
||||
<span class="navbar-brand icms-navbar-brand__show_on_hide"> RuMine </span>
|
||||
<button class="navbar-toggler" type="button" aria-label="Меню" data-toggle="collapse" data-target="#target-main">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="target-main">
|
||||
<ul class="navbar-nav justify-content-center w-100 icms-menu-hovered mx-lg-n2 menu-main">
|
||||
{% for page in pages %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-nowrap" href="{{ page.url }}" target="_self">
|
||||
{{ page.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{# Global javascript #}
|
||||
<script type="text/javascript" src="{% static 'js/rumine.js' %}"></script>
|
||||
|
|
Loading…
Reference in New Issue