Skip to content

Commit

Permalink
Fix script tags in Layout component to properly load highlight.js res…
Browse files Browse the repository at this point in the history
…ources.
  • Loading branch information
yasuaki640 committed Jul 13, 2024
1 parent e9e2296 commit bb3c308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const Layout: FC = ({ children }) => (
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/go.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/go.min.js" />
<script>hljs.highlightAll();</script>
</head>

Expand Down

0 comments on commit bb3c308

Please sign in to comment.