Skip to content

Commit 384c770

Browse files
committed
add syntax highlighting in code blocks
1 parent 7da60da commit 384c770

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

assets/static/gen/styles.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/static/gen/styles.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configs/markdown-highlighter.ini

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

django-quilla.lektorproject

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ locale = es_CO
55

66
[packages]
77
lektor-disqus-comments = 0.2
8-
lektor-markdown-highlighter = 0.2
8+
lektor-markdown-highlighter = 0.3.2
99

1010
[servers.ghpages]
1111
target = ghpages+https://PyBAQ/django-quilla-web?cname=pybaq.co

scss/_base.scss

+7
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,10 @@ a {
4444
text-shadow:none;
4545
background:#2B2E31;
4646
}
47+
48+
pre {
49+
line-height: 125%;
50+
background-color: rgb(17, 17, 17);
51+
color: rgb(206, 206, 206);
52+
padding: 2vh;
53+
}

templates/layout.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<link rel="shortcut icon" href="{{ '/ico/favicon.png' | url}}">
8+
<link rel="stylesheet" href="{{ get_pygments_stylesheet()|url }}">
89
<title>{% block title %}{{bag('settings', this.alt, 'title')}}{% endblock %} </title>
910
{% include 'layouts/css_files.html' %}
1011

0 commit comments

Comments
 (0)