view _layouts/default.html @ 201:4f6a8d987f7f

Update foundation framework.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Wed, 08 Jul 2020 17:08:46 +0900
parents 9ac0211ca132
children 3a99431030c1
line wrap: on
line source

<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>{{ page.title | default: site.title }}</title>
    <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | lstrip | rstrip | truncate: 140 }}">
    <meta property="og:title" content="{{ page.title | default: site.title }}">
    <meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | lstrip | rstrip | truncate: 140 }}">
    <meta property="og:image" content="{{ "/img/octave-logo.png" | absolute_url }}">
    <meta property="og:image:alt" content="GNU Octave">
    <meta property="og:type" content="website">
    <meta property="og:url" content="{{ page.url | absolute_url }}">
    <meta name="twitter:card" content="summary">

    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/css/foundation.min.css"
      integrity="sha256-ogmFxjqiTMnZhxCqVmcqTvjfe1Y/ec4WaRj/aQPvn+I="
      crossorigin="anonymous">
    <link rel="stylesheet" href="{{ "/css/app.css" | relative_url }}">
    <link rel="stylesheet" href="{{ "/css/syntax-highlight.css" | relative_url }}">
    <noscript>
      <style>
      div.no-js { position: relative; }
      nav.no-js { height: auto; }
      .tabs-content > div.no-js { display: block; }
      </style>
    </noscript>

    <script
      src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"
      integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
      crossorigin="anonymous"></script>
    <script
      src="https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/js/foundation.min.js"
      integrity="sha256-pRF3zifJRA9jXGv++b06qwtSqX1byFQOLjqa2PTEb2o="
      crossorigin="anonymous"></script>

    <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
    <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | relative_url }}">
  </head>

  <body>

    <div class="no-js fixed contain-to-grid">
      <nav class="no-js top-bar" data-topbar role="navigation">
        <ul class="title-area">
          <li class="name">
            <h1>
              <a href="{{ "/" | relative_url }}" style="height:100%">
                <img src="{{ "/img/octave-logo.svg" | relative_url }}"
                    style="width: 32px; height: auto" alt="GNU Octave logo">
                {{ site.title }}
              </a>
            </h1>
          </li>
          <!-- Remove the class "menu-icon" to get rid of menu icon.
               Take out "Menu" to just have icon alone -->
          <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
        </ul>

        <section class="top-bar-section">
          <!-- Right Nav Section -->
          <ul class="right">
            {% for page in site.pages %}
              {% if page.menu %}
                <li>
                  <a href="{{ page.url | relative_url }}">{{ page.title }}</a>
                </li>
              {% endif %}
            {% endfor %}
            <li>
              <a href="{{site.docs_url}}">Docs</a>
            </li>
          </ul>
        </section>
      </nav>
    </div>

    <div class="page-content row">
      <div class="wrapper column">
        {{ content }}
      </div>

      <footer class="column">
        <section>
        <div class="row">
          <div class="columns small-12">
            <div class="text-center">
              <p>
                Octave is free software under the
                <a href="{{ "license.html" | relative_url }}">GNU General Public License.</a>
              </p>
              <small>
                Copyright © 1998-{{ site.time | date: "%Y" }} John W. Eaton.
                This work is licensed under a
                <a rel="license" href="https://creativecommons.org/licenses/by-nd/4.0/">
                Creative Commons Attribution-NoDerivatives 4.0 International License</a>.
                Get the <a href="http://hg.octave.org/web-octave/file/tip">page sources</a>.
              </small>
            </div>
          </div>
        </div>
        </section>
      </footer>

      <script>
        $(document).foundation();
      </script>
    </div>

  </body>

</html>