Extract mermaid to seperate JS file
Means it doesnt break speedpack, for some reason
This commit is contained in:
parent
4756612715
commit
ad19fa779c
3 changed files with 3 additions and 2 deletions
1
Makefile
1
Makefile
|
@ -20,6 +20,7 @@ build: install
|
|||
$(NODE_BIN)/node-sass $(STATIC_SRC)/scss/style.scss $(STATIC_BUILD)/css/style.css --source-map-embed
|
||||
cp -r $(BASEDIR)/node_modules/lightgallery/dist/fonts $(STATIC_BUILD)
|
||||
cp -r $(STATIC_SRC)/img $(STATIC_BUILD)/img
|
||||
cp node_modules/mermaid/dist/mermaid.min.js $(STATIC_BUILD)/js/mermaid.js
|
||||
@hugo -vDEF --stepAnalysis --gc
|
||||
mkdir -p $(OUTPUT_DIR)/.well-known/
|
||||
cp $(BASEDIR)/static/keybase.txt $(OUTPUT_DIR)/keybase.txt
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
{{ block "main" . }}{{ end }}
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
<script src='{{ relURL "/js/mermaid.js" }}'></script>
|
||||
<script src='{{ relURL "/js/app.js" }}'></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -10,8 +10,6 @@ require('lg-thumbnail/dist/lg-thumbnail');
|
|||
require('plyr').setup();
|
||||
var Clipboard = require('clipboard');
|
||||
|
||||
var mermaid = require('mermaid');
|
||||
|
||||
|
||||
$('.image').each(function () { // setup div-image hybrids
|
||||
var ele = $(this);
|
||||
|
|
Loading…
Reference in a new issue