Socialify

Folder ..

Viewing base.html
82 lines (82 loc) • 4.2 KB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="{{ config.meta.lang }}">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        {% if config.meta.description %}<meta name="description" content="{{ config.meta.description }}">{% endif %}
        <title>{% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
        <link rel="stylesheet" href="{{ 'css/style.css'|url }}">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/base16/github.min.css" integrity="sha512-+evfh0lCceddhK7IkrvCj9metOEXRt6QNKNMWXBNINkQyLrxLkjyu7ye/g7claDFWtZHSpgJAMR7zTjo++oDPQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    </head>
    <body>
        {% if 'search' in config['plugins'] %}
            <div class="search-box" id="search-box">
                <div class="close" id="close">&times;</div>
                <h1>Search results for: <span id="search-term"></span></h1>
                <hr>
                <div id="mkdocs-search-results"></div>
            </div>
        {% endif %}
        {%- block site_nav %}
            {%- if config.navigation|length>1 %}
            <nav>
                <ul>
                    <h1 class="title" style="color: black; margin: -5px 40px 0px 0px;"><a style="color: black; text-decoration: none;" href="{{config.site_uri}}">{{config.site_name}}</a></h1>
                    {% for nav_item in config.navigation %}
                        <li><a href="{{ nav_item.url }}">{{ nav_item.title }}</a></li>
                    {% endfor %}
                    <!-- Search Bar -->
                    <form id="search">
                        <input type="text" name="q" placeholder="Search" id="mkdocs-search-query" autocomplete="off">
                        <input type="submit" value="Search">
                    </form>
                </ul>
            </nav>
            {% endif %}
        {%- endblock %}
        
        <div class="main">
            {% if page and not page.is_homepage %}
            <div class="sidebar toc">
                <h2>Contents</h2>
                <ol>
                    {%- for parent in page.toc %}
                        <li class="{% if parent.active %}active{% endif %}"><a href="{{ parent.url }}">{{ parent.title }}</a>
                        {%- if parent.children %}
                            <ol>
                                {%- for child in parent.children %}
                                    <li class="{% if child.active %}active{% endif %}"><a href="{{ child.url }}">{{ child.title }}</a>
                                    {%- if child.children %}
                                        <ol>
                                            {%- for grandchild in child.children %}
                                                <li class="{% if grandchild.active %}active{% endif %}"><a href="{{ grandchild.url }}">{{ grandchild.title }}</a></li>
                                            {%- endfor %}
                                        </ol>
                                    {%- endif %}</li>
                                {%- endfor %}
                            </ol>
                        {%- endif %}</li>
                    {%- endfor %}
                </ol>
            </div>
            {% endif %}
            <div class="content">
                {{ page.content }}
            </div>
        </div>
        {% if page and not page.is_homepage %}
            <div class="languages">
                <p><em>View this page in:</em>
                {% for language in config.languages %}
                    <a data-lang="{{ language.lang }}" href="#">{{ language.lang_name }}</a>
                {% endfor %}</p>
            </div>
        {% endif %}
        <script>var base_url = '{{ base_url }}';</script>
        <script src="{{ 'js/page-loader.js'|url }}"></script>
        <script src="https://unpkg.com/lunr/lunr.js"></script>
        <script src="{{ 'js/search.js'|url }}"></script>
        <script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
        <script>hljs.initHighlightingOnLoad();</script>
    </body>
<html>