summaryrefslogtreecommitdiff
path: root/_includes/head.html
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-07-10 22:27:56 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-07-10 22:27:56 +0800
commit9204cde3538fb8f1fc3defa6c3453f5cfcfb85fe (patch)
tree41d8c4d1e84e92b037d7e140cb2b3cec6df01bdf /_includes/head.html
parent5d8928659ec3a31a4d19a3fe0d1d37bd448fbd73 (diff)
feat: use highlightjs as highlighter
Diffstat (limited to '_includes/head.html')
-rw-r--r--_includes/head.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/_includes/head.html b/_includes/head.html
index be3be7a..1ac5112 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -6,10 +6,17 @@
{%- seo -%}
<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 -%}
+ {%- include extensions/google-analytics.html -%}
{%- endif -%}
</head>