gnu-social/templates/base.html.twig

63 lines
2.3 KiB
Twig
Raw Normal View History

<!DOCTYPE html>
<html>
2021-04-30 10:51:03 +09:00
<head>
{% block meta %}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% endblock %}
<title>
{% block title %}{% endblock %}
</title>
{% block stylesheets %}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/fonts/inter/inter.css') }}">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/fonts/manrope/manrope.css') }}">
2021-04-30 10:51:03 +09:00
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base.css') }}"
media="screen and (min-width: 1300px)">
{# <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_mid.css') }}"#}
{# media="screen and (max-width: 1300px)">#}
{# <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_small.css') }}"#}
{# media="screen and (max-width: 750px)">#}
2021-04-30 10:51:03 +09:00
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/reset.css') }}">
{% for stylesheet in show_stylesheets() %}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/' ~ stylesheet) }}">
{% endfor %}
{% endblock %}
{% for arr in handle_event('ShowHeadElements', app.request) %}
{# Only one element, but has dynamic value, can't access it directly #}
{% for type, element in arr %}
<{{ type }} rel="{{ element['rel'] }}" type="{{ element['type'] }}" href="{{ element['href'] }}" title="{{ element['title'] }}">
{% endfor %}
{% endfor %}
</head>
<body>
2021-04-30 10:51:03 +09:00
<div class="container">
{% block header %}
<div id='header'>
<div id='top'>
<nav id='instance'>
<a href="{{ path('main_public') }}">
{{ icon('logo', 'icon icon-logo') | raw }}
<h1> {{ config('site', 'name') }} </h1>
2021-04-30 10:51:03 +09:00
</a>
</nav>
<div id="panels">
{% block leftpanel %}
{% endblock leftpanel %}
{% block rightpanel %}
{% endblock rightpanel %}
</div>
2021-04-30 10:51:03 +09:00
</div>
</div>
{% endblock header %}
2021-04-30 10:51:03 +09:00
{% block nav %}{% endblock %}
{% block body %}{% endblock %}
{% block javascripts %}{% endblock javascripts %}
</div>
</body>
</html>