aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/_includes/common/footer.html
blob: 6fe7d651e1c89f1cf85bce4210f02867f17492f8 (plain) (tree)
1
2
3
4
5
6
7
8

              
                                           

                                       
                                                                    

                                                  



























                                                                                                                                  
                      

                                               
                                                  
                                                                                                                           






                      

                                                                                        

                                    






                                                                                             

                  

         
        </div>
      </div>
      <div class="footer-wrapper-collapse">
        <footer class="navbar-default">
          <div class="container">
            <div style="display: table; width: 100%;" class="small">
              <div style="display: table-row;">
                <div style="display: table-cell;">
                  <div class="text-center text-muted">
                    {% if site.settings.project.license_file %}
                      {% capture license_file %}{{ '/' | relative_url }}{{ site.settings.project.license_file }}{% endcapture %}
                    {% else %}
                      {% for file in site.static_files %}
                        {% if file.path == '/LICENSE.txt' %}
                          {% assign license_file = file.path | relative_url %}
                        {% endif %}
                      {% endfor %}
                    {% endif %}
                    {% if site.settings.project.license %}
                      {% assign license = site.settings.project.license %}
                      {% unless license_file %}
                        {% capture license_file %}https://spdx.org/licenses/{{ license }}.html{% endcapture %}
                        {% capture license %}{{ license }} License{% endcapture %}
                      {% endunless %}
                    {% elsif site.github.license %}
                      {% assign license = site.github.license.name %}
                      {% unless license_file %}
                        {% capture license_file %}https://spdx.org/licenses/{{ site.github.license.spdx_id }}.html{% endcapture %}
                      {% endunless %}
                    {% endif %}
                    {% if license %}
                      This project is licensed under the <a href="{{ license_file }}">{{ license }}</a>.
                    {% elsif license_file %}
                      This project is licensed under <a href="{{ license_file }}">this license</a>.
                    {% endif %}
                  </div>
                </div>
              </div>
              <div style="display: table-row;">
                <div style="display: table-cell;">
                  <div class="text-center text-muted">This page was generated on {{ site.time | date: '%-d %B %Y' }}.</div>
                </div>
              </div>
            </div>
          </div>
        </footer>
      </div>
    </div>
    <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script src="{{ '/assets/bootstrap/js/bootstrap.min.js' | relative_url }}"></script>
    {% if page.custom_js %}
      {% for js in page.custom_js %}
        {% assign abs_check = js | downcase | split: '//' %}
        {% if abs_check[0] == 'http:' or abs_check[0] == 'https:' or abs_check[0] == blank %}
          {% assign url = js %}
        {% else %}
          {% assign url = '/assets/js/' | relative_url | append: js %}
        {% endif %}
        <script src="{{ url }}"></script>
      {% endfor %}
    {% endif %}
  </body>
</html>