File indexing completed on 2024-11-24 03:55:53
0001 <div class="navbar navbar-default navbar-fixed-top" role="navigation"> 0002 <div class="container"> 0003 0004 <!-- Collapsed navigation --> 0005 <div class="navbar-header{% if nav.homepage.active %} active{% endif %}"> 0006 <!-- Main title --> 0007 <a class="navbar-brand" href="{{ nav.homepage.url|url }}"> 0008 <img src='{{ "/img/logo.svg"|url }}' width="32" /> 0009 <span>{{ config.site_name }}</span> 0010 <!--span style="font-size: 0.7em;">{{ config.extra.version }}</span--> 0011 </a> 0012 0013 {%- if nav|length>1 or (page and (page.next_page or page.previous_page)) or config.repo_url %} 0014 <!-- Expander button --> 0015 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> 0016 <span class="sr-only">Toggle navigation</span> 0017 <span class="icon-bar"></span> 0018 <span class="icon-bar"></span> 0019 <span class="icon-bar"></span> 0020 </button> 0021 {% endif %} 0022 </div> 0023 0024 <!-- Expanded navigation --> 0025 <div class="navbar-collapse collapse"> 0026 {%- block site_nav %} 0027 {%- if nav|length>1 %} 0028 <!-- Main navigation --> 0029 <ul class="nav navbar-nav"> 0030 {% for nav_item in nav %} 0031 {% if nav_item.children %} 0032 <li class="dropdown{% if nav_item.active %} active{% endif %}"> 0033 <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a> 0034 <ul class="dropdown-menu"> 0035 {% for nav_item in nav_item.children %} 0036 {% if "mastodon" in nav_item.title.lower() %} 0037 <li {% if nav_item.active %}class="active"{% endif %}> 0038 <a href="{{ nav_item.url|url }}" rel="me">{{ nav_item.title }}</a> 0039 </li> 0040 {% else %} 0041 {% include "nav-sub.html" %} 0042 {% endif %} 0043 {% endfor %} 0044 </ul> 0045 </li> 0046 {% elif not nav_item.is_page or not nav_item.meta.no_nav %} 0047 <li {% if nav_item.active %}class="active"{% endif %}> 0048 <a href="{{ nav_item.url|url }}"> 0049 {%- if nav_item.is_page and nav_item.meta.nav_icon -%} 0050 <i class="{{ nav_item.meta.nav_icon }}"></i> 0051 {%- endif %} {{ nav_item.title }}</a> 0052 </li> 0053 {% endif %} 0054 {% endfor %} 0055 </ul> 0056 {%- endif %} 0057 {%- endblock %} 0058 0059 <ul class="nav navbar-nav navbar-right"> 0060 {%- block search_button %} 0061 {%- if 'search' in config['plugins'] %} 0062 <li> 0063 <a href="#" data-toggle="modal" data-target="#mkdocs_search_modal"> 0064 <i class="fas fa-search"></i> Search 0065 </a> 0066 </li> 0067 {%- endif %} 0068 {%- endblock %} 0069 0070 {%- block next_prev %} 0071 {%- if page and (page.next_page or page.previous_page) %} 0072 <li {% if not page.previous_page %}class="disabled"{% endif %}> 0073 <a rel="prev" {% if page.previous_page %}href="{{ page.previous_page.url|url }}"{% endif %}> 0074 <i class="fas fa-arrow-left"></i> Previous 0075 </a> 0076 </li> 0077 <li {% if not page.next_page %}class="disabled"{% endif %}> 0078 <a rel="next" {% if page.next_page %}href="{{ page.next_page.url|url }}"{% endif %}> 0079 Next <i class="fas fa-arrow-right"></i> 0080 </a> 0081 </li> 0082 {%- endif %} 0083 {%- endblock %} 0084 0085 {%- block repo %} 0086 {%- if config.repo_url and 0 %} 0087 <li> 0088 <a href="{{ config.repo_url }}"> 0089 {%- if config.repo_name == 'GitHub' -%} 0090 <i class="fab fa-github"></i> {{ config.repo_name }} 0091 {%- elif config.repo_name == 'Bitbucket' -%} 0092 <i class="fab fa-bitbucket"></i> {{ config.repo_name }} 0093 {%- elif config.repo_name == 'GitLab' -%} 0094 <i class="fab fa-gitlab"></i> {{ config.repo_name }} 0095 {%- else -%} 0096 {{ config.repo_name }} 0097 {%- endif -%} 0098 </a> 0099 </li> 0100 {%- endif %} 0101 {%- endblock %} 0102 </ul> 0103 </div> 0104 </div> 0105 </div>