Created
September 27, 2018 10:05
-
-
Save jadwigo/846fe7e886b7d8ca86cb022d8724b0f2 to your computer and use it in GitHub Desktop.
Master with header includes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html class="no-js" lang="{{ htmllang() }}"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>{%- if seo.title is defined -%} | |
| {{ seo.title }} | |
| {%- elseif record.title is defined -%} | |
| {{ record.title }} | {{ config.get('general/sitename') }} | |
| {%- endif -%} | |
| {%- if record.title is not defined and config.get('general/payoff') -%} | |
| | {{ config.get('general/payoff') }} | |
| {%- endif -%} | |
| </title> | |
| {{ seo.metatags() }} | |
| <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon.png"> | |
| <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | |
| <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | |
| <link rel="manifest" href="/manifest.json"> | |
| <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> | |
| <meta name="theme-color" content="#ffffff"> | |
| <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,700,700i" rel="stylesheet"> | |
| <link rel="stylesheet" href="{{ asset('stylesheets/main.css', 'theme') }}"> | |
| {% block headincludes %} | |
| {% endblock headincludes %} | |
| </head> | |
| <body> | |
| {% block body %} | |
| {{ include('partials/_header.twig') }} | |
| {% block main %} | |
| {% endblock main %} | |
| {% endblock body %} | |
| {{ include('partials/_footer.twig') }} | |
| {% block bottomincludes %} | |
| {% endblock bottomincludes %} | |
| <script src="{{ asset('js/site.js', 'theme') }}"></script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% extends 'partials/_master.twig' %} | |
| {% block headincludes %} | |
| {% if record.customcss!="" %} | |
| <link rel="stylesheet" href="{{ asset(record.customcss, 'theme') }}"> | |
| {% endif %} | |
| {% if record.customjs!="" %} | |
| <script src="{{ asset(record.customjs, 'theme') }}"></script> | |
| {% endif %} | |
| {% endblock headincludes %} | |
| {% block main %} | |
| <div> | |
| <h1>{{ record.title }}</h1> | |
| {% if record.subtitle!="" %} | |
| <h2>{{ record.subtitle }}</h2> | |
| {% endif %} | |
| <div class="intro"> | |
| {{ record.introduction }} | |
| </div> | |
| <div class="body"> | |
| {{ record.body }} | |
| </div> | |
| </div> | |
| {% endblock main %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment