mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
Switch to ejs 3 compliant imports
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
fcc4efb8db
commit
b468fb623b
11 changed files with 45 additions and 45 deletions
|
@ -2,12 +2,12 @@
|
|||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<%- include hedgedoc/head %>
|
||||
<%- include('hedgedoc/head') %>
|
||||
<link rel="stylesheet" href="<%- serverURL %>/css/center.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%- include hedgedoc/header %>
|
||||
<%- include('hedgedoc/header') %>
|
||||
<div class="container-fluid text-center">
|
||||
<div class="vertical-center-row">
|
||||
<h1><%- code %> <%- detail %> <small><%- msg %></small></h1>
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<%- include hedgedoc/head %>
|
||||
<%- include('hedgedoc/head') %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%- include hedgedoc/header %>
|
||||
<%- include hedgedoc/body %>
|
||||
<%- include hedgedoc/footer %>
|
||||
<%- include('hedgedoc/header') %>
|
||||
<%- include('hedgedoc/body') %>
|
||||
<%- include('hedgedoc/footer') %>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -247,7 +247,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%- include ../shared/refresh-modal %>
|
||||
<%- include ../shared/signin-modal %>
|
||||
<%- include ../shared/help-modal %>
|
||||
<%- include ../shared/revision-modal %>
|
||||
<%- include('../shared/refresh-modal') %>
|
||||
<%- include('../shared/signin-modal') %>
|
||||
<%- include('../shared/help-modal') %>
|
||||
<%- include('../shared/revision-modal') %>
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/viz.js/1.7.0/viz.js" integrity="sha256-8t+rndrF+TU4JtelmOH1lDHTMe2ovhO2UbzDArp5lY8=" crossorigin="anonymous" defer></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.11.8/validator.min.js" integrity="sha256-LHeY7YoYJ0SSXbCx7sR14Pqna+52moaH3bhv0Mjzd/M=" crossorigin="anonymous" defer></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/abcjs/3.1.1/abcjs_basic-min.js" integrity="sha256-Sq1r2XXWXQoShQKsS0Wrf5r7fRkErd9Fat9vHYeU68s=" crossorigin="anonymous"></script>
|
||||
<%- include ../build/index-scripts %>
|
||||
<%- include('../build/index-scripts') %>
|
||||
<% } else { %>
|
||||
<script src="<%- serverURL %>/build/MathJax/MathJax.js" defer></script>
|
||||
<script src="<%- serverURL %>/build/MathJax/config/TeX-AMS-MML_HTMLorMML.js" defer></script>
|
||||
<script src="<%- serverURL %>/build/MathJax/config/Safe.js" defer></script>
|
||||
<%- include ../build/index-pack-scripts %>
|
||||
<%- include('../build/index-pack-scripts') %>
|
||||
<% } %>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<%- include ../includes/favicon %>
|
||||
<%- include('../includes/favicon') %>
|
||||
<% for (var og in opengraph) { %>
|
||||
<% if (opengraph.hasOwnProperty(og) && opengraph[og].trim() !== '') { %>
|
||||
<meta property="og:<%- og %>" content="<%- opengraph[og] %>">
|
||||
|
@ -21,9 +21,9 @@
|
|||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.9.0/bootstrap-social.min.css" integrity="sha256-02JtFTurpwBjQJ6q13iJe82/NF0RbZlJroDegK5g87Y=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css" integrity="sha256-3iu9jgsy9TpTwXKb7bNQzqWekRX7pPK+2OLj3R922fo=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/css/basic/emojify.min.css" integrity="sha256-UOrvMOsSDSrW6szVLe8ZDZezBxh5IoIfgTwdNDgTjiU=" crossorigin="anonymous" />
|
||||
<%- include ../build/index-header %>
|
||||
<%- include ../shared/polyfill %>
|
||||
<%- include('../build/index-header') %>
|
||||
<%- include('../shared/polyfill') %>
|
||||
<% } else { %>
|
||||
<link rel="stylesheet" href='<%- serverURL %>/build/emojify.js/dist/css/basic/emojify.min.css'>
|
||||
<%- include ../build/index-pack-header %>
|
||||
<%- include('../build/index-pack-header') %>
|
||||
<% } %>
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<%- include index/head %>
|
||||
<%- include('index/head') %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%- include index/header %>
|
||||
<%- include index/body %>
|
||||
<%- include index/footer %>
|
||||
<%- include('index/header') %>
|
||||
<%- include('index/body') %>
|
||||
<%- include('index/footer') %>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -209,4 +209,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%- include ../shared/signin-modal %>
|
||||
<%- include('../shared/signin-modal') %>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.2/select2.min.js" integrity="sha256-HzzZFiY4t0PIv02Tm8/R3CVvLpcjHhO1z/YAUCp4oQ4=" crossorigin="anonymous" defer></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment-with-locales.min.js" integrity="sha256-vvT7Ok9u6GbfnBPXnbM6FVDEO8E1kTdgHOFZOAXrktA=" crossorigin="anonymous" defer></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.11.8/validator.min.js" integrity="sha256-LHeY7YoYJ0SSXbCx7sR14Pqna+52moaH3bhv0Mjzd/M=" crossorigin="anonymous" defer></script>
|
||||
<%- include ../build/cover-scripts %>
|
||||
<%- include('../build/cover-scripts') %>
|
||||
<% } else { %>
|
||||
<%- include ../build/cover-pack-scripts %>
|
||||
<% } %>
|
||||
<%- include('../build/cover-pack-scripts') %>
|
||||
<% } %>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="description" content="<%= __('Best way to write and share your knowledge in markdown.') %>">
|
||||
<meta name="keywords" content="Collaborative, Markdown, Notes">
|
||||
<%- include ../includes/favicon %>
|
||||
<%- include('../includes/favicon') %>
|
||||
<meta property="og:title" content="HedgeDoc - <%= __('Collaborative markdown notes') %>">
|
||||
<meta property="og:description" content="<%= __('Best way to write and share your knowledge in markdown.') %>">
|
||||
<meta property="og:type" content="website">
|
||||
|
@ -22,8 +22,8 @@
|
|||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.9.0/bootstrap-social.min.css" integrity="sha256-02JtFTurpwBjQJ6q13iJe82/NF0RbZlJroDegK5g87Y=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2.min.css" integrity="sha256-ijlUKKj3hJCiiT2HWo1kqkI79NTEYpzOsw5Rs3k42dI=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2-bootstrap.min.css" integrity="sha256-NAWFcNIZdH+TS1xpWujF/EB/Y8gwBbEOCoaK/eqaer8=" crossorigin="anonymous" />
|
||||
<%- include ../build/cover-header %>
|
||||
<%- include ../shared/polyfill %>
|
||||
<%- include('../build/cover-header') %>
|
||||
<%- include('../shared/polyfill') %>
|
||||
<% } else { %>
|
||||
<%- include ../build/cover-pack-header %>
|
||||
<%- include('../build/cover-pack-header') %>
|
||||
<% } %>
|
||||
|
|
|
@ -24,17 +24,17 @@
|
|||
<% } %>
|
||||
<base href="<%- serverURL %>/">
|
||||
<title><%= title %></title>
|
||||
<%- include includes/favicon.ejs %>
|
||||
<%- include('includes/favicon.ejs') %>
|
||||
<% if(useCDN) { %>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.0/css/bootstrap.min.css" integrity="sha256-H0KfTigpUV+0/5tn2HXC0CPwhhDhWgSawJdnFd0CGCo=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fork-awesome/1.1.3/css/fork-awesome.min.css" integrity="sha256-ZhApazu+kejqTYhMF+1DzNKjIzP7KXu6AzyXcC1gMus=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css" integrity="sha256-3iu9jgsy9TpTwXKb7bNQzqWekRX7pPK+2OLj3R922fo=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/css/basic/emojify.min.css" integrity="sha256-UOrvMOsSDSrW6szVLe8ZDZezBxh5IoIfgTwdNDgTjiU=" crossorigin="anonymous" />
|
||||
<%- include build/pretty-header %>
|
||||
<%- include shared/polyfill %>
|
||||
<%- include('build/pretty-header') %>
|
||||
<%- include('shared/polyfill') %>
|
||||
<% } else { %>
|
||||
<link rel="stylesheet" href='<%- serverURL %>/build/emojify.js/dist/css/basic/emojify.min.css'>
|
||||
<%- include build/pretty-pack-header %>
|
||||
<%- include('build/pretty-pack-header') %>
|
||||
<% } %>
|
||||
</head>
|
||||
|
||||
|
@ -73,7 +73,7 @@
|
|||
<div id="ui-toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="display:none;"></div>
|
||||
<% if(typeof disqus !== 'undefined' && disqus && !dnt) { %>
|
||||
<div class="container-fluid" style="max-width: 758px; margin-bottom: 40px;">
|
||||
<%- include shared/disqus %>
|
||||
<%- include('shared/disqus') %>
|
||||
</div>
|
||||
<% } %>
|
||||
</body>
|
||||
|
@ -97,11 +97,11 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gist-embed/2.6.0/gist-embed.min.js" integrity="sha256-KyF2D6xPIJUW5sUDSs93vWyZm+1RzIpKCexxElmxl8g=" crossorigin="anonymous" defer></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/viz.js/1.7.0/viz.js" integrity="sha256-8t+rndrF+TU4JtelmOH1lDHTMe2ovhO2UbzDArp5lY8=" crossorigin="anonymous" defer></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/abcjs/3.1.1/abcjs_basic-min.js" integrity="sha256-Sq1r2XXWXQoShQKsS0Wrf5r7fRkErd9Fat9vHYeU68s=" crossorigin="anonymous"></script>
|
||||
<%- include build/pretty-scripts %>
|
||||
<%- include('build/pretty-scripts') %>
|
||||
<% } else { %>
|
||||
<script src="<%- serverURL %>/build/MathJax/MathJax.js" defer></script>
|
||||
<script src="<%- serverURL %>/build/MathJax/config/TeX-AMS-MML_HTMLorMML.js" defer></script>
|
||||
<script src="<%- serverURL %>/build/MathJax/config/Safe.js" defer></script>
|
||||
<%- include build/pretty-pack-scripts %>
|
||||
<%- include('build/pretty-pack-scripts') %>
|
||||
<% } %>
|
||||
<%- include shared/ga %>
|
||||
<%- include('shared/ga') %>
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
<% } %>
|
||||
<base href="<%- serverURL %>/">
|
||||
<title><%= title %></title>
|
||||
<%- include includes/favicon.ejs %>
|
||||
<%- include('includes/favicon.ejs') %>
|
||||
|
||||
<% if(useCDN) { %>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fork-awesome/1.1.3/css/fork-awesome.min.css" integrity="sha256-ZhApazu+kejqTYhMF+1DzNKjIzP7KXu6AzyXcC1gMus=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css" integrity="sha256-3iu9jgsy9TpTwXKb7bNQzqWekRX7pPK+2OLj3R922fo=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/css/reveal.min.css" integrity="sha256-9+Wg2bcNeiOMGXOUNqBdceY2lAH/eCiTDcdzHhHIl48=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/css/basic/emojify.min.css" integrity="sha256-UOrvMOsSDSrW6szVLe8ZDZezBxh5IoIfgTwdNDgTjiU=" crossorigin="anonymous" />
|
||||
<%- include build/slide-header %>
|
||||
<%- include shared/polyfill %>
|
||||
<%- include('build/slide-header') %>
|
||||
<%- include('shared/polyfill') %>
|
||||
<% } else { %>
|
||||
<link rel="stylesheet" href="<%- serverURL %>/build/reveal.js/css/reveal.css">
|
||||
<link rel="stylesheet" href='<%- serverURL %>/build/emojify.js/dist/css/basic/emojify.min.css'>
|
||||
<%- include build/slide-pack-header %>
|
||||
<%- include('build/slide-pack-header') %>
|
||||
<% } %>
|
||||
|
||||
<!-- For reveal.js theme -->
|
||||
|
@ -80,7 +80,7 @@
|
|||
</div>
|
||||
<% if(typeof disqus !== 'undefined' && disqus && !dnt) { %>
|
||||
<div class="slides-disqus">
|
||||
<%- include shared/disqus %>
|
||||
<%- include('shared/disqus') %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
@ -104,14 +104,14 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gist-embed/2.6.0/gist-embed.min.js" integrity="sha256-KyF2D6xPIJUW5sUDSs93vWyZm+1RzIpKCexxElmxl8g=" crossorigin="anonymous" defer></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/viz.js/1.7.0/viz.js" integrity="sha256-8t+rndrF+TU4JtelmOH1lDHTMe2ovhO2UbzDArp5lY8=" crossorigin="anonymous" defer></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/abcjs/3.1.1/abcjs_basic-min.js" integrity="sha256-Sq1r2XXWXQoShQKsS0Wrf5r7fRkErd9Fat9vHYeU68s=" crossorigin="anonymous"></script>
|
||||
<%- include build/slide-scripts %>
|
||||
<%- include('build/slide-scripts') %>
|
||||
<% } else { %>
|
||||
<script src="<%- serverURL %>/build/MathJax/MathJax.js" defer></script>
|
||||
<script src="<%- serverURL %>/build/MathJax/config/TeX-AMS-MML_HTMLorMML.js" defer></script>
|
||||
<script src="<%- serverURL %>/build/MathJax/config/Safe.js" defer></script>
|
||||
<%- include build/slide-pack-scripts %>
|
||||
<%- include('build/slide-pack-scripts') %>
|
||||
<% } %>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<%- include shared/ga %>
|
||||
<%- include('shared/ga') %>
|
||||
|
|
Loading…
Reference in a new issue