File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 33title : OS²Product
4455description : The Jekyll version of the Spectral theme by HTML5 UP.
6- # baseurl: ""
7- # url: "http://localhost:4000"
6+ baseurl : " "
7+ url : " http://localhost:4000"
88
99# Uncomment the lines below if you are deploying to GitHub Pages
10- baseurl : " /spectral-jekyll-theme"
11- url : " https://janhalen.github.io"
10+ # baseurl: "/spectral-jekyll-theme"
11+ # url: "https://janhalen.github.io"
1212
1313# Homepage tiles
1414tiles-source : posts # accepts "posts" or "pages"
Original file line number Diff line number Diff line change 1+ https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js
2+ < script >
3+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
4+ const blocks = document . querySelectorAll ( "pre code.language-mermaid" ) ;
5+ blocks . forEach ( block => {
6+ const container = document . createElement ( "div" ) ;
7+ container . className = "mermaid" ;
8+ container . textContent = block . textContent ;
9+ block . parentElement . replaceWith ( container ) ;
10+ } ) ;
11+ mermaid . initialize ( { startOnLoad : true } ) ;
12+ } ) ;
13+ </ script >
Original file line number Diff line number Diff line change 1515{% include section-three.html %}
1616{% include cta.html %}
1717{% include footer.html %}
18+ {% include mermaid-init.html %}
1819</ body >
1920
2021</ html >
You can’t perform that action at this time.
0 commit comments