commit
3b2597fbce
|
@ -0,0 +1,26 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
|
||||
<%- js("js/vendor.min") %>
|
||||
|
||||
<% if (theme.graphviz.enable) { %>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/viz.js/1.7.1/viz.js"></script>
|
||||
<script>
|
||||
String.prototype.replaceAll = function(search, replacement) {
|
||||
var target = this;
|
||||
return target.split(search).join(replacement);
|
||||
};
|
||||
|
||||
let vizObjects = document.querySelectorAll('.graphviz');
|
||||
|
||||
for (let item of vizObjects) {
|
||||
let svg = undefined
|
||||
try {
|
||||
svg = Viz(item.textContent.replaceAll('–', '--'), 'svg');
|
||||
} catch(e) {
|
||||
svg = `<pre class="error">${e}</pre>`;
|
||||
}
|
||||
item.outerHTML = svg;
|
||||
}
|
||||
</script>
|
||||
<% } %>
|
|
@ -1,4 +0,0 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
|
||||
{{ js('js/vendor.min') }}
|
|
@ -1,4 +1,4 @@
|
|||
{# shared - edit once, and update in other static sites #}
|
||||
<%# shared - edit once, and update in other static sites %>
|
||||
<div class="footer footer--global">
|
||||
<div class="footer-inner">
|
||||
<div class="footer-table">
|
|
@ -1,18 +1,18 @@
|
|||
<meta charset="utf-8">
|
||||
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ config.title }}</title>
|
||||
<title><% if (page.title) { %><%= page.title %> | <% } %><%= config.title %></title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- Canonical links -->
|
||||
<link rel="canonical" href="{{ url }}">
|
||||
<link rel="canonical" href="<%= url %>">
|
||||
<!-- Alternative links -->
|
||||
{% if page.layout == 'page' or page.layout == 'index' %}
|
||||
{% for lang in site.data.languages %}
|
||||
<link rel="alternative" hreflang="{{ loop.key }}" href="{{ canonical_url(loop.key) }}">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<% if (page.layout == 'page' || page.layout == 'index') { %>
|
||||
<% Object.keys(site.data.languages).forEach(function(lang) { %>
|
||||
<link rel="alternative" hreflang="<%= lang %>" href="<%= canonical_url(lang) %>">
|
||||
<% }); %>
|
||||
<% } %>
|
||||
<!-- Icon -->
|
||||
<meta name="msapplication-TileColor" content="#ff9c00">
|
||||
<meta name="msapplication-TileImage" content="{{ url_for('icon/mstile-144x144.png') }}">
|
||||
<meta name="msapplication-TileImage" content="<%= url_for('icon/mstile-144x144.png') %>">
|
||||
|
||||
<link rel="icon" type="image/png" href="/img/logo-16.png" sizes="16x16" />
|
||||
<link rel="icon" type="image/png" href="/img/logo-32.png" sizes="32x32" />
|
||||
|
@ -22,5 +22,5 @@
|
|||
<link rel="apple-touch-icon" sizes="152x152" href="/img/apple-touch-icon-152.png?v=0.0.5">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon-180.png?v=0.0.5">
|
||||
<link rel="apple-touch-icon" href="/img/apple-touch-icon-1024.png?v=0.0.5">
|
||||
{{ css('css/main.min') }}
|
||||
{{ feed_tag('atom.xml') }}
|
||||
<%- css('css/main.min') %>
|
||||
<%- feed_tag('atom.xml') %>
|
|
@ -1,4 +1,4 @@
|
|||
{# shared - edit once, and update in other static sites #}
|
||||
<%# shared - edit once, and update in other static sites #%>
|
||||
<ul class="main-nav">
|
||||
<li class="item--to-show"><a href="https://status.im/get" class="">App</a></li>
|
||||
<li class="item--to-show"> <a href="https://our.status.im/">Blog</a> </li>
|
Loading…
Reference in New Issue