Skip to content

Commit 8bdda8f

Browse files
committed
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
1 parent 7209b4c commit 8bdda8f

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ classifiers = [
3939
dependencies = [
4040
"cssmin == 0.2.0",
4141
"jsmin == 3.0.1",
42-
"pelican == 4.9.1",
42+
"pelican == 4.10.2",
4343
"pelican-neighbors == 1.2.0",
4444
"pelican-related-posts == 1.0.0",
4545
"pelican-seo == 1.2.2",

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: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@
7474

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

77+
{% if "webassets" is plugin_enabled %}
78+
{% assets filters="cssmin", output="{{ THEME_STATIC_DIR }}/css/style.min.css", "{{ THEME_STATIC_DIR }}/css/style.css" %}
79+
<link rel="stylesheet" type="text/css" href="{{SITEURL}}/{{ASSET_URL}}">
80+
{% endassets %}
81+
{% else %}
82+
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/style.css">
83+
{% endif %}
84+
7785
{% if CSS_OVERRIDE %}
7886
<!-- CSS specified by the user -->
7987
{% for css in CSS_OVERRIDE %}
@@ -240,8 +248,8 @@
240248

241249
</section>
242250

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>
251+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.slim.min.js"></script>
252+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
245253
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jquery.fitvids.js"></script>
246254
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/script.js"></script>
247255

0 commit comments

Comments
 (0)