Fix theme: add partials/base.html.twig for plugin template compatibility
This commit is contained in:
@@ -1,20 +1 @@
|
|||||||
<!DOCTYPE html>
|
{% extends 'partials/base.html.twig' %}
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
|
|
||||||
<link rel="stylesheet" href="{{ url('theme://css/style.css') }}">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header class="site-header">
|
|
||||||
<a class="site-title" href="{{ base_url_absolute }}">{{ site.title }}</a>
|
|
||||||
<nav class="site-nav">
|
|
||||||
<a href="{{ base_url_absolute }}/tracker">Journal</a>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
<main class="site-main">
|
|
||||||
{% block content %}{% endblock %}
|
|
||||||
</main>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
|
||||||
|
<link rel="stylesheet" href="{{ url('theme://css/style.css') }}">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header class="site-header">
|
||||||
|
<a class="site-title" href="{{ base_url_absolute }}">{{ site.title }}</a>
|
||||||
|
<nav class="site-nav">
|
||||||
|
<a href="{{ base_url_absolute }}/tracker">Journal</a>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
<main class="site-main">
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user