Added distribution build

This commit is contained in:
squidfunk 2016-02-05 15:35:15 +01:00
parent e03c58f487
commit b3d8700531
13 changed files with 26522 additions and 25 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -30,13 +30,13 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="shortcut icon" type="image/x-icon" href="{{ icon | default('/assets/images/favicon.ico') }}"> <link rel="shortcut icon" type="image/x-icon" href="{{ icon | default('/assets/images/favicon.ico') }}">
<link rel="icon" type="image/x-icon" href="{{ icon | default('/assets/images/favicon.ico') }}"> <link rel="icon" type="image/x-icon" href="{{ icon | default('/assets/images/favicon.ico') }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,700"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu+Mono"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu+Mono">
{% if config.extra.theme %} {% if config.extra.color %}
{% set theme = config.extra.theme %} {% set color = config.extra.color %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.{{ theme }}.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.{{ color }}.css">
{% else %} {% else %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-dd5b6433.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.css">
{% endif %} {% endif %}
{% for path in extra_css %} {% for path in extra_css %}
<link rel="stylesheet" href="{{ path }}"> <link rel="stylesheet" href="{{ path }}">
@ -54,17 +54,19 @@
{% include "header.html" %} {% include "header.html" %}
</header> </header>
<main class="main"> <main class="main">
{% set h1 = "\x3c/h1\x3e" in content %}
<div class="drawer"> <div class="drawer">
{% include "drawer.html" %} {% include "drawer.html" %}
</div> </div>
<article class="article"> <article class="article">
<div class="wrapper"> <div class="wrapper">
{% if page_title %} {% if not h1 %}
<h1>{{ page_title }}</h1> {% if page_title %}
{% else %} <h1>{{ page_title }}</h1>
<h1>{{ site_name }}</h1> {% else %}
<h1>{{ site_name }}</h1>
{% endif %}
{% endif %} {% endif %}
<hr>
{{ content }} {{ content }}
<aside class="copyright" role="note"> <aside class="copyright" role="note">
{% if copyright %} {% if copyright %}
@ -93,13 +95,13 @@
</div> </div>
</div> </div>
</main> </main>
<script src="{{ base_url }}/assets/javascripts/modernizr-e95367ea.js"></script> <script src="{{ base_url }}/assets/javascripts/modernizr.js"></script>
{% set repo_id = repo_url | replace('https://github.com/', '') %} {% set repo_id = repo_url | replace('https://github.com/', '') %}
<script> <script>
var base_url = '{{ base_url }}'; var base_url = '{{ base_url }}';
var repo_id = '{{ repo_id }}'; var repo_id = '{{ repo_id }}';
</script> </script>
<script src="{{ base_url }}/assets/javascripts/application-3bd5fcbd.js"></script> <script src="{{ base_url }}/assets/javascripts/application.js"></script>
{% for path in extra_javascript %} {% for path in extra_javascript %}
<script src="{{ path }}"></script> <script src="{{ path }}"></script>
{% endfor %} {% endfor %}

View File

@ -38,7 +38,7 @@
{% endif %} {% endif %}
<ul class="toc"> <ul class="toc">
{% for nav_item in nav %} {% for nav_item in nav %}
{% include "toc.html" %} {% include "nav.html" %}
{% endfor %} {% endfor %}
{% if config.extra.author %} {% if config.extra.author %}
<li> <li>

View File

@ -4,7 +4,7 @@
<span class="section">{{ nav_item.title }}</span> <span class="section">{{ nav_item.title }}</span>
<ul> <ul>
{% for nav_item in nav_item.children %} {% for nav_item in nav_item.children %}
{% include 'toc.html' %} {% include 'nav.html' %}
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>
@ -16,11 +16,21 @@
{% if nav_item == current_page %} {% if nav_item == current_page %}
<ul> <ul>
{% for toc_item in toc %} {% for toc_item in toc %}
{% if h1 %}
{% for toc_item in toc_item.children %}
<li class="anchor">
<a title="{{ toc_item.title }}" href="{{ toc_item.url }}">
{{ toc_item.title }}
</a>
</li>
{% endfor %}
{% else %}
<li class="anchor"> <li class="anchor">
<a class="{% if loop.first %}current{% endif %}" title="{{ toc_item.title }}" href="{{ toc_item.url }}"> <a title="{{ toc_item.title }}" href="{{ toc_item.url }}">
{{ toc_item.title }} {{ toc_item.title }}
</a> </a>
</li> </li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}