-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.pug
64 lines (56 loc) · 5.18 KB
/
index.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
doctype html
html
head
base(href=page_is_standalone_html ? '.' : '/')
meta(charset='utf-8')
meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5.0")
meta(name="apple-mobile-web-app-capable" content="yes")
if !enable_indexing
meta(name="pinterest" content="nopin")
meta(name="robots" content="noindex")
title !{name_of_instance || "do•doc"}
if favicon_url
link(rel="shortcut icon" href=favicon_url)
else
link(rel="shortcut icon" href="./_client/favicon.ico")
link(rel="manifest" href="/site.webmanifest")
style.
@import "./_client/fonts/fira.css";
@import "./_client/fonts/default_fonts.css";
//- script.
//- /*! modernizr 3.5.0 (Custom Build) | MIT https://modernizr.com/download/?-touchevents-setclasses !*/
//- !function(e,n,t){function o(e,n){return typeof e===n}function s(){var e,n,t,s,a,i,r;for(var l in c)if(c.hasOwnProperty(l)){if(e=[],n=c[l],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t<n.options.aliases.length;t++)e.push(n.options.aliases[t].toLowerCase());for(s=o(n.fn,"function")?n.fn():n.fn,a=0;a<e.length;a++)i=e[a],r=i.split("."),1===r.length?Modernizr[r[0]]=s:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=s),f.push((s?"":"no-")+r.join("-"))}}function a(e){var n=u.className,t=Modernizr._config.classPrefix||"";if(p&&(n=n.baseVal),Modernizr._config.enableJSClass){var o=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");n=n.replace(o,"$1"+t+"js$2")}Modernizr._config.enableClasses&&(n+=" "+t+e.join(" "+t),p?u.className.baseVal=n:u.className=n)}function i(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):p?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function r(){var e=n.body;return e||(e=i(p?"svg":"body"),e.fake=!0),e}function l(e,t,o,s){var a,l,f,c,d="modernizr",p=i("div"),h=r();if(parseInt(o,10))for(;o--;)f=i("div"),f.id=s?s[o]:d+(o+1),p.appendChild(f);return a=i("style"),a.type="text/css",a.id="s"+d,(h.fake?h:p).appendChild(a),h.appendChild(p),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(n.createTextNode(e)),p.id=d,h.fake&&(h.style.background="",h.style.overflow="hidden",c=u.style.overflow,u.style.overflow="hidden",u.appendChild(h)),l=t(p,e),h.fake?(h.parentNode.removeChild(h),u.style.overflow=c,u.offsetHeight):p.parentNode.removeChild(p),!!l}var f=[],c=[],d={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){c.push({name:e,fn:n,options:t})},addAsyncTest:function(e){c.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=d,Modernizr=new Modernizr;var u=n.documentElement,p="svg"===u.nodeName.toLowerCase(),h=d._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];d._prefixes=h;var m=d.testStyles=l;Modernizr.addTest("touchevents",function(){var t;if("ontouchstart"in e||e.DocumentTouch&&n instanceof DocumentTouch)t=!0;else{var o=["@media (",h.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");m(o,function(e){t=9===e.offsetTop})}return t}),s(),a(f),delete d.addTest,delete d.addAsyncTest;for(var v=0;v<Modernizr._q.length;v++)Modernizr._q[v]();e.Modernizr=Modernizr}(window,document); // jshint ignore:line
script.
window.app_infos = {
schema: !{JSON.stringify(schema) || "{}"},
version: "!{global.appInfos.version}",
debug_mode: !{debug_mode || false},
is_electron: navigator.userAgent.toLowerCase().indexOf(" electron/") > -1,
page_is_standalone_html: !{page_is_standalone_html || false},
instance_meta: {
name: `#{name_of_instance || ""}`,
presentation: `!{presentation_of_instance || ""}`,
contactmail: `#{contactmail_of_instance || ""}`,
hero_background_color: `#{hero_background_color || ""}`,
text_background_color: `#{text_background_color || ""}`,
text_image_layout: `#{text_image_layout || ""}`,
has_general_password: !{has_general_password || false},
signup_password_hashed: `!{signup_password_hashed || ""}`,
require_signup_to_contribute: !{require_signup_to_contribute || false},
require_mail_to_signup: !{require_mail_to_signup || false},
users_must_accept_terms_to_signup: !{users_must_accept_terms_to_signup || false},
terms_in_footer: !{terms_in_footer || false},
confidentiality_in_footer: !{confidentiality_in_footer || false},
enable_events: !{enable_events || false},
$admins: !{$admins ? JSON.stringify($admins) : "[]"},
$contributors: !{$contributors ? JSON.stringify($contributors) : "[]"},
topbar_thumb: '!{topbar_thumb || ""}',
hero_thumb: '!{hero_thumb || ""}'
},
custom_fonts: !{custom_fonts ? JSON.stringify(custom_fonts, null, 4) : "[]"},
};
// used when exporting a publication
window.folder_data = !{JSON.stringify(folder_data) || "[]"};
body(data-mode=mode)
#app
script(src="./_client/bundle.js")