Fix missing mermaid init script
| | |
| | | color: #000; |
| | | background-color: #e0e0e0; |
| | | border-radius: 0.2rem; |
| | | opacity: 50%; |
| | | opacity: 0.5; |
| | | transition: all 0.25s ease-in; } |
| | | .float-container a:hover, .float-container a:focus { |
| | | color: #1565c0; |
| | | opacity: 100%; } |
| | | opacity: 1; } |
| | | @media only screen and (max-width: 768px) { |
| | | .float-container a:hover, .float-container a:focus { |
| | | color: #000; |
| | | opacity: 50%; } } |
| | | opacity: 0.5; } } |
| | | .float-container a i { |
| | | position: absolute; |
| | | top: 50%; |
| | |
| | | {{ partial "footer.html" . }} |
| | | </main> |
| | | |
| | | {{ if .HasShortcode "mermaid" }} |
| | | <script src="https://cdn.jsdelivr.net/npm/mermaid@9.1.5/dist/mermaid.min.js" integrity="sha256-RqbL4xBKYq/iP+616ZrXdmaNyCuRX1mW7wjsHPfa8uY=" crossorigin="anonymous"></script> |
| | | <script> |
| | | mermaid.initialize({ startOnLoad: true }); |
| | | </script> |
| | | {{ end }} |
| | | |
| | | {{ if .Site.IsServer }} |
| | | {{ $script := resources.Get "js/coder.js" }} |
| | | <script src="{{ $script.RelPermalink }}"></script> |
| | |
| | | color: #000; |
| | | background-color: #e0e0e0; |
| | | border-radius: 0.2rem; |
| | | opacity: 50%; |
| | | opacity: 0.5; |
| | | transition: all 0.25s ease-in; } |
| | | .float-container a:hover, .float-container a:focus { |
| | | color: #1565c0; |
| | | opacity: 100%; } |
| | | opacity: 1; } |
| | | @media only screen and (max-width: 768px) { |
| | | .float-container a:hover, .float-container a:focus { |
| | | color: #000; |
| | | opacity: 50%; } } |
| | | opacity: 0.5; } } |
| | | .float-container a i { |
| | | position: absolute; |
| | | top: 50%; |