Skip to content

Commit 9d5e1b1

Browse files
authored
Merge pull request #2737 from Aloso/fix-missing-asset-url
Update deps in order to fix #2732
2 parents 7df879e + 18c816c commit 9d5e1b1

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

pelicanconf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
FEED_ALL_ATOM = 'atom.xml'
2626
FEED_ALL_RSS = 'rss.xml'
2727
FEED_MAX_ITEMS = 4
28-
CATEGORY_FEED_ATOM = 'categories/%s/atom.xml'
29-
CATEGORY_FEED_RSS = 'categories/%s/rss.xml'
28+
CATEGORY_FEED_ATOM = 'categories/{slug}/atom.xml'
29+
CATEGORY_FEED_RSS = 'categories/{slug}/rss.xml'
3030

3131
DEFAULT_PAGINATION = 10
3232

@@ -46,4 +46,4 @@
4646
"""
4747
}
4848

49-
MD_EXTENSIONS = ['headerid']
49+
PLUGINS = ['webassets']

requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
Markdown==2.4
2-
pelican==3.5
3-
feedgenerator==1.7
4-
webassets==0.11.1
1+
Markdown==3.3.6
2+
pelican==4.7.1
3+
feedgenerator==2.0
4+
pelican-webassets==2.0.0
55
cssmin==0.2.0
66
jinja2==2.11.3
7+
libsass==0.21.0

themes/rusted/templates/base.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width">
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width" />
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77

88
{% if article and article.author %}
99
<meta name="author" content="{{ article.author }}" />
@@ -31,13 +31,13 @@
3131
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME|striptags }} - Full RSS Feed" />
3232
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} - Full Atom Feed" />
3333

34-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
35-
{% assets filters="scss,cssmin", output="css/web-min.css", "css/main.scss" %}
34+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
35+
{% assets filters="libsass,cssmin", output="css/web-min.css", "css/main.scss" %}
3636

37-
<link rel="stylesheet" href="/{{ ASSET_URL }}">
38-
<link rel="icon" type="image/png" sizes="32x32" href="https://www.rust-lang.org/static/images/favicon-32x32.png">
39-
<link rel="icon" type="image/svg+xml" href="https://www.rust-lang.org/static/images/favicon.svg">
40-
<link rel="mask-icon" href="https://www.rust-lang.org/static/images/safari-pinned-tab.svg" color="#000">
37+
<link rel="stylesheet" href="/{{ ASSET_URL }}" />
38+
<link rel="icon" type="image/png" sizes="32x32" href="https://www.rust-lang.org/static/images/favicon-32x32.png" />
39+
<link rel="icon" type="image/svg+xml" href="https://www.rust-lang.org/static/images/favicon.svg" />
40+
<link rel="mask-icon" href="https://www.rust-lang.org/static/images/safari-pinned-tab.svg" color="#000" />
4141

4242
{% endassets %}
4343
</head>

0 commit comments

Comments
 (0)