Mercurial > web-octave
comparison _layouts/default.html @ 194:9ac0211ca132
* _layouts/default.html: Inline includes.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Wed, 08 Jul 2020 15:26:00 +0900 |
parents | 8d1c300f0a3a |
children | 4f6a8d987f7f |
comparison
equal
deleted
inserted
replaced
193:8ec5df986ad3 | 194:9ac0211ca132 |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 | 3 |
4 {% include head.html %} | 4 <head> |
5 <meta charset="utf-8"> | |
6 <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
7 <meta name="viewport" content="width=device-width, initial-scale=1"> | |
8 | |
9 <title>{{ page.title | default: site.title }}</title> | |
10 <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | lstrip | rstrip | truncate: 140 }}"> | |
11 <meta property="og:title" content="{{ page.title | default: site.title }}"> | |
12 <meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | lstrip | rstrip | truncate: 140 }}"> | |
13 <meta property="og:image" content="{{ "/img/octave-logo.png" | absolute_url }}"> | |
14 <meta property="og:image:alt" content="GNU Octave"> | |
15 <meta property="og:type" content="website"> | |
16 <meta property="og:url" content="{{ page.url | absolute_url }}"> | |
17 <meta name="twitter:card" content="summary"> | |
18 | |
19 <link rel="stylesheet" href="{{ "/css/foundation.min.css" | relative_url }}"> | |
20 <link rel="stylesheet" href="{{ "/css/normalize.css" | relative_url }}"> | |
21 <link rel="stylesheet" href="{{ "/css/app.css" | relative_url }}"> | |
22 <link rel="stylesheet" href="{{ "/css/syntax-highlight.css" | relative_url }}"> | |
23 <noscript> | |
24 <style> | |
25 div.no-js { position: relative; } | |
26 nav.no-js { height: auto; } | |
27 .tabs-content > div.no-js { display: block; } | |
28 </style> | |
29 </noscript> | |
30 | |
31 <script src="{{ "/js/vendor/modernizr.js" | relative_url }}"></script> | |
32 <script src="{{ "/js/vendor/jquery.js" | relative_url }}"></script> | |
33 <script src="{{ "/js/foundation/foundation.js" | relative_url }}"></script> | |
34 <script src="{{ "/js/foundation/foundation.alert.js" | relative_url }}"></script> | |
35 <script src="{{ "/js/foundation/foundation.reveal.js" | relative_url }}"></script> | |
36 <script src="{{ "/js/foundation/foundation.topbar.js" | relative_url }}"></script> | |
37 <script src="{{ "/js/foundation/foundation.tab.js" | relative_url }}"></script> | |
38 <script src="{{ "/js/foundation/foundation.dropdown.js" | relative_url }}"></script> | |
39 | |
40 <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}"> | |
41 <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | relative_url }}"> | |
42 </head> | |
5 | 43 |
6 <body> | 44 <body> |
7 | 45 |
8 {% include header.html %} | 46 <div class="no-js fixed contain-to-grid"> |
47 <nav class="no-js top-bar" data-topbar role="navigation"> | |
48 <ul class="title-area"> | |
49 <li class="name"> | |
50 <h1> | |
51 <a href="{{ "/" | relative_url }}" style="height:100%"> | |
52 <img src="{{ "/img/octave-logo.svg" | relative_url }}" | |
53 style="width: 32px; height: auto" alt="GNU Octave logo"> | |
54 {{ site.title }} | |
55 </a> | |
56 </h1> | |
57 </li> | |
58 <!-- Remove the class "menu-icon" to get rid of menu icon. | |
59 Take out "Menu" to just have icon alone --> | |
60 <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li> | |
61 </ul> | |
62 | |
63 <section class="top-bar-section"> | |
64 <!-- Right Nav Section --> | |
65 <ul class="right"> | |
66 {% for page in site.pages %} | |
67 {% if page.menu %} | |
68 <li> | |
69 <a href="{{ page.url | relative_url }}">{{ page.title }}</a> | |
70 </li> | |
71 {% endif %} | |
72 {% endfor %} | |
73 <li> | |
74 <a href="{{site.docs_url}}">Docs</a> | |
75 </li> | |
76 </ul> | |
77 </section> | |
78 </nav> | |
79 </div> | |
9 | 80 |
10 <div class="page-content row"> | 81 <div class="page-content row"> |
11 <div class="wrapper column"> | 82 <div class="wrapper column"> |
12 {{ content }} | 83 {{ content }} |
13 </div> | 84 </div> |
14 | 85 |
15 {% include footer.html %} | 86 <footer class="column"> |
87 <section> | |
88 <div class="row"> | |
89 <div class="columns small-12"> | |
90 <div class="text-center"> | |
91 <p> | |
92 Octave is free software under the | |
93 <a href="{{ "license.html" | relative_url }}">GNU General Public License.</a> | |
94 </p> | |
95 <small> | |
96 Copyright © 1998-{{ site.time | date: "%Y" }} John W. Eaton. | |
97 This work is licensed under a | |
98 <a rel="license" href="https://creativecommons.org/licenses/by-nd/4.0/"> | |
99 Creative Commons Attribution-NoDerivatives 4.0 International License</a>. | |
100 Get the <a href="http://hg.octave.org/web-octave/file/tip">page sources</a>. | |
101 </small> | |
102 </div> | |
103 </div> | |
104 </div> | |
105 </section> | |
106 </footer> | |
107 | |
108 <script> | |
109 $(document).foundation(); | |
110 </script> | |
16 </div> | 111 </div> |
17 | 112 |
18 </body> | 113 </body> |
19 | 114 |
20 </html> | 115 </html> |