Skip to content

Commit a2a44ec

Browse files
authored
improve: blog enhancements - sitemap, syntax highlighting, table styling (#176)
* fix: remove manual sitemap and use jekyll-sitemap plugin * style: replace syntax highlight css with native theme * style: add left-aligned table styling * style: switch syntax highlighting to highlight.js stackoverflow-dark theme - Disable Rouge (fix krandown typo -> kramdown, set syntax_highlighter: null) - Add highlight.js 11.11.1 via CDN with hljs.highlightAll() - Replace syntax-native.css with stackoverflow-dark theme * chore: remove css backup
1 parent 061d381 commit a2a44ec

11 files changed

Lines changed: 112 additions & 2124 deletions

File tree

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ excerpt_separator: <!--more-->
1616

1717
markdown: kramdown
1818

19-
krandown:
19+
kramdown:
2020
input: GFM
21-
highlighter: rouge
21+
syntax_highlighter: null
2222

2323
plugins:
2424
- jekyll-paginate

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<!--link href="{{ site.asset_url }}/apple-touch-icon.png" rel="apple-touch-icon" type="image/png"/-->
6464
<!--link href="{{ site.asset_url }}/apple-touch-icon.png" rel="apple-touch-icon-precomposed" type="image/png"/-->
6565
<link href="{{ site.asset_url }}/lib/normalize.css" rel="stylesheet" type="text/css"/>
66-
<link href="{{ site.asset_url }}/css/syntax-one-dark-vivid.css" rel="stylesheet" type="text/css"/>
66+
<link href="{{ site.asset_url }}/css/syntax-stackoverflow-dark.css" rel="stylesheet" type="text/css"/>
6767
<link rel="preconnect" href="https://fonts.googleapis.com">
6868
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6969
<link href="//fonts.googleapis.com/earlyaccess/notosanskr.css" rel="stylesheet" type="text/css" media="print" onload="this.media='all'"/>

_layouts/default.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
<script src="{{ site.asset_url }}/js/index.js"></script>
2727
<script src="{{ site.asset_url }}/js/dark-mode.js"></script>
2828
<script src="{{ site.asset_url }}/js/enhancements.js"></script>
29+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
30+
<script>hljs.highlightAll();</script>
2931

3032
{% if page.layout != 'home' %}
3133

assets/css/bak/monokai.css

Lines changed: 0 additions & 210 deletions
This file was deleted.

0 commit comments

Comments
 (0)