Skip to content

Commit 5fcb45b

Browse files
Add syntax highlighting
1 parent eb339fc commit 5fcb45b

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.lektorproject

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ lektor-markdown-excerpt = 0.1
1414
lektor-markdown-header-anchors = 0.3.1
1515
lektor-strip-html-tags = 0.3.1
1616
lektor-webpack-support = 0.5
17+
lektor-markdown-highlighter = 0.3.1

configs/markdown-highlighter.ini

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pygments]
2+
style = tango

templates/layout.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
66
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet">
77
<link rel="stylesheet" href="{{ '/static/gen/style.css'|url }}">
8+
<link rel="stylesheet" href="{{ get_pygments_stylesheet()|url }}">
89
<meta property="og:site_name" content="Creative Commons" />
910
<meta property="og:title" content="{{ this.title }}" />
1011
{% if this.description %}

0 commit comments

Comments
 (0)