diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2021-01-08 11:59:28 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2021-01-08 12:04:25 +0800 |
commit | c896442fcf46fe12fc1c8b811ddc71f8127e8509 (patch) | |
tree | c912e7abd55dc3a23ae2f1f553ddd3e4a5768489 /_includes/head.html | |
parent | fcdfc7ea09f0e0d191772650b4f197aa8f56355a (diff) |
refactor: migrate code highlight to an extension
Diffstat (limited to '_includes/head.html')
-rw-r--r-- | _includes/head.html | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/_includes/head.html b/_includes/head.html index 1ac5112..66cca12 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -7,16 +7,11 @@ <link rel="shortcut icon" href="{{ site.favicon }}"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-noto-sans@0.0.72/index.min.css"> - <link rel="stylesheet" - href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/default.min.css"> - <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script> - <!-- and it's easy to individually load additional languages --> - <script charset="UTF-8" - src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/languages/go.min.js"></script> <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}"> <script src="{{ "/assets/js/main.js" | relative_url }}"></script> {%- feed_meta -%} {%- if jekyll.environment == 'production' and site.google_analytics -%} {%- include extensions/google-analytics.html -%} {%- endif -%} + {%- include extensions/code-highlight.html -%} </head> |