feat: base layout, head partial (with noindex), and navbar template
This commit is contained in:
@@ -0,0 +1,46 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
{% include "partials/head.html" %}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="main-wrapper">
|
||||||
|
<div id="preloader">
|
||||||
|
<div id="status">
|
||||||
|
<div class="status-mes"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="uc-mobile-menu-pusher">
|
||||||
|
<div class="content-wrapper">
|
||||||
|
{% include "partials/navbar.html" %}
|
||||||
|
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="uc-mobile-menu uc-mobile-menu-effect">
|
||||||
|
<button type="button" class="close" aria-hidden="true" data-toggle="offcanvas"
|
||||||
|
id="uc-mobile-menu-close-btn">×</button>
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<ul id="menu">
|
||||||
|
{% set top = get_section(path="_index.md") %}
|
||||||
|
{% for p in top.subsections %}
|
||||||
|
{% set sub = get_section(path=p) %}
|
||||||
|
<li><a href="{{ sub.permalink }}">{{ sub.title }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="/js/jquery-2.1.4.min.js"></script>
|
||||||
|
<script src="/js/smoothscroll.js"></script>
|
||||||
|
<script src="/js/mobile-menu.js"></script>
|
||||||
|
<script src="/js/jquery.flexslider-min.js"></script>
|
||||||
|
<script src="/js/scripts.js"></script>
|
||||||
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{% if page %}
|
||||||
|
{% set page_title = page.title %}
|
||||||
|
{% elif section %}
|
||||||
|
{% set page_title = section.title %}
|
||||||
|
{% endif %}
|
||||||
|
<title>{% if page_title %}{{ page_title | safe }} | {% endif %}{{ config.title | safe }}</title>
|
||||||
|
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
{# STAGING: keep search engines out. Remove this line at production cutover. #}
|
||||||
|
<meta name="robots" content="noindex,nofollow">
|
||||||
|
|
||||||
|
<meta name="description" content="{{ config.description | safe }}">
|
||||||
|
<meta name="author" content="{{ config.extra.practice_name | safe }}">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/fonts/roboto.css">
|
||||||
|
<link rel="stylesheet" href="/fonts/montserrat.css">
|
||||||
|
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
||||||
|
<link rel="stylesheet" href="/fonts/font-awesome/css/font-awesome.min.css">
|
||||||
|
<link rel="stylesheet" href="/css/mobile-menu.css">
|
||||||
|
<link rel="stylesheet" href="/css/flexslider.css">
|
||||||
|
<link rel="stylesheet" href="/main.css">
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
<nav class="navbar m-menu navbar-default navbar-fixed-top">
|
||||||
|
<div class="container">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
|
||||||
|
data-target="#navbar-collapse-1">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
<a class="navbar-brand" href="/">{{ config.title }}</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
{% set top = get_section(path="_index.md") %}
|
||||||
|
{%- for p in top.subsections -%}
|
||||||
|
{%- set sub = get_section(path=p) -%}
|
||||||
|
{%- set has_children = sub.subsections | length > 0 -%}
|
||||||
|
{%- if has_children -%}
|
||||||
|
{%- set sub_count = sub.subsections | length -%}
|
||||||
|
{%- set col_width = 12 / sub_count -%}
|
||||||
|
<li class="dropdown m-menu-fw{% if current_url and current_url is starting_with(sub.permalink) %} active{% endif %}">
|
||||||
|
<a href="#" data-toggle="dropdown" class="dropdown-toggle">{{ sub.title }}
|
||||||
|
<span><i class="fa fa-angle-down"></i></span></a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
{%- for cp in sub.subsections -%}
|
||||||
|
{%- set child = get_section(path=cp) -%}
|
||||||
|
<li class="m-menu-content">
|
||||||
|
<ul class="col-sm-{{ col_width | round }}">
|
||||||
|
<li class="dropdown-header">{{ child.title }}</li>
|
||||||
|
{%- for cpage in child.pages -%}
|
||||||
|
<li><a href="{{ cpage.permalink }}">{{ cpage.title }}</a></li>
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
{%- else -%}
|
||||||
|
<li class="{% if current_url and current_url is starting_with(sub.permalink) %}active{% endif %}">
|
||||||
|
<a href="{{ sub.permalink }}">{{ sub.title }}</a>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
Reference in New Issue
Block a user