Skip to content

Commit c3588ff

Browse files
authored
Merge pull request #1806 from thibaudcolas/google-fonts-simplify
Simplify Google Fonts link element
2 parents fc0a87e + 5c3a5a9 commit c3588ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

en/css/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Maybe we can customize the font in our header? Paste this into your `<head>` in
159159

160160
{% filename %}blog/templates/blog/post_list.html{% endfilename %}
161161
```html
162-
<link href="//fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext" rel="stylesheet" type="text/css">
162+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext">
163163
```
164164

165165
As before, check the order and place before the link to `blog/static/css/blog.css`. This line will import a font called *Lobster* from Google Fonts (https://www.google.com/fonts).

en/django_forms/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ After editing the line, your HTML file should now look like this:
7171
<head>
7272
<title>Django Girls blog</title>
7373
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
74-
<link href='//fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
74+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext">
7575
<link rel="stylesheet" href="{% static 'css/blog.css' %}">
7676
</head>
7777
<body>

en/template_extending/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Then open it up in the code editor and copy everything from `post_list.html` to
2828
<head>
2929
<title>Django Girls blog</title>
3030
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
31-
<link href='//fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
31+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext">
3232
<link rel="stylesheet" href="{% static 'css/blog.css' %}">
3333
</head>
3434
<body>

0 commit comments

Comments
 (0)