76 lines
2.4 KiB
Twig
76 lines
2.4 KiB
Twig
{% set body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
|
|
{% set grid_size = theme_var('grid-size') %}
|
|
{% set compress = theme_var('production_mode') ? '.min.css' : '.css' %}
|
|
<!DOCTYPE html>
|
|
<html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
|
|
<head>
|
|
{% block head %}
|
|
<meta charset="utf-8" />
|
|
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{% include 'partials/metadata.html.twig' %}
|
|
|
|
<link rel="icon" type="image/png" href="{{ url('theme://images/hehe_logo.jpg') }}" />
|
|
<link rel="canonical" href="{{ page.url(true, true) }}" />
|
|
|
|
{% block stylesheets %}
|
|
{% do assets.addCss('theme://css-compiled/template.css') %}
|
|
|
|
{% endblock %}
|
|
{{ assets.css() }}
|
|
|
|
{% block javascripts %}
|
|
{% do assets.addJs('jquery', 101) %}
|
|
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
|
|
{% do assets.addJs('theme://js/scrollreveal.min.js', {group:'bottom'}) %}
|
|
{% endblock %}
|
|
{{ assets.js() }}
|
|
|
|
{% endblock head %}
|
|
</head>
|
|
|
|
|
|
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
|
|
|
|
{% block header %}
|
|
<header class="section">
|
|
<h1><a href="{{ base_url == '' ? '/' : base_url }}">{{ config.site.title }}</a></h1>
|
|
<nav class="navbar">
|
|
{% block header_navigation %}
|
|
{% include 'partials/navigation.html.twig' %}
|
|
{% include 'partials/taxonomylist.html.twig' with { taxonomy: 'category'} %}
|
|
{% endblock %}
|
|
<div class="col">
|
|
<div class="burger">
|
|
<div class="bar top"></div>
|
|
<div class="bar middle"></div>
|
|
<div class="bar bottom"></div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
</header>
|
|
{% endblock %}
|
|
|
|
|
|
<section id="start">
|
|
{% block body %}
|
|
<section id="body-wrapper" class="section">
|
|
<section class="container {{ grid_size }}">
|
|
{% block content %}{% endblock %}
|
|
</section>
|
|
</section>
|
|
{% endblock %}
|
|
</section>
|
|
</div>
|
|
|
|
{% block footer %}{% endblock %}
|
|
|
|
{% block bottom %}
|
|
{{ assets.js('bottom') }}
|
|
{% endblock %}
|
|
|
|
</body>
|