Skip to content

Commit 0c5930e

Browse files
authored
Performance fixes (#108)
* update to latest pelican - update highlight js to latest version - remove margin for pre code. this is used for line numbers - webassets and cssmin for stylesheet compress * added minify
1 parent 7209b4c commit 0c5930e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ classifiers = [
3737
]
3838

3939
dependencies = [
40-
"cssmin == 0.2.0",
41-
"jsmin == 3.0.1",
42-
"pelican == 4.9.1",
40+
"pelican == 4.10.2",
4341
"pelican-neighbors == 1.2.0",
4442
"pelican-related-posts == 1.0.0",
4543
"pelican-seo == 1.2.2",
4644
"pelican-sitemap == 1.1.0",
4745
"pelican-webassets == 2.0.0",
46+
"pelican-minify == 2.0.0",
4847
]
4948

5049
[project.urls]

static/css/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,9 @@ button,input,select,textarea {
758758
display: block;
759759
position: static;
760760
top: auto;
761-
margin: -1.33334em -1.33334em -1.33334em 1.33334em;
762-
padding: 1.33334em;
761+
/* This is for if the code has line numbers. */
762+
/* margin: -1.33334em -1.33334em -1.33334em 1.33334em;
763+
padding: 1.33334em; */
763764
overflow-x: auto;
764765
font-size: 0.75em;
765766
line-height: 2em;

templates/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
{% endif %}
7373
{% endfor %}
7474

75-
<link href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/style.css" type="text/css" rel="stylesheet" />
75+
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/style.css">
7676

7777
{% if CSS_OVERRIDE %}
7878
<!-- CSS specified by the user -->
@@ -240,8 +240,8 @@
240240

241241
</section>
242242

243-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
244-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
243+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.slim.min.js"></script>
244+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
245245
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jquery.fitvids.js"></script>
246246
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/script.js"></script>
247247

0 commit comments

Comments
 (0)