Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HTTPS URL on Google Fonts #147

Merged
merged 1 commit into from
Aug 31, 2015

Conversation

pongstr
Copy link

@pongstr pongstr commented Aug 10, 2015

Since google fonts are available on SSL maybe use the
protocol-relative URL instead?

@import url('//fonts.googleapis.com/css?family=Roboto:400,700|Inconsolata|Raleway:200');

instead of:

@import url('http://fonts.googleapis.com/css?family=Roboto:400,700|Inconsolata|Raleway:200');

@danielgtaylor
Copy link
Owner

@pongstr thanks for the pull request! Using the protocol-relative URLs means you cannot open the generated HTML locally unless using a web server. What if we just default all of them to HTTPS?

@kylef
Copy link
Collaborator

kylef commented Aug 10, 2015

@danielgtaylor I agree with making it HTTPS only. The protocol-relative URL pattern is now seen as an anti-pattern, and if the asset is available with TLS, then you should always use TLS to get it (https).

We've taken this approach in pelican.

@pongstr
Copy link
Author

pongstr commented Aug 10, 2015

@danielgtaylor @kylef I agree with that 100% sorry I didn't realized that immediately. PR Updated! :)

Use `https` instead of protocol-relative URL to make generated HTML
to work locally even without a webserver.

```
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700|Inconsolata|Raleway:200');
```

instead of:

```css
@import url('//fonts.googleapis.com/css?family=Roboto:400,700|Inconsolata|Raleway:200');
@import url('http://fonts.googleapis.com/css?family=Roboto:400,700|Inconsolata|Raleway:200');
```
@pongstr pongstr changed the title Use Protocol-relative URL on Google Fonts Use HTTPS URL on Google Fonts Aug 10, 2015
@trobrock
Copy link

What is the eta on this?

@danielgtaylor
Copy link
Owner

Sorry about that, I was out on vacation and this dropped from my radar.

danielgtaylor added a commit that referenced this pull request Aug 31, 2015
Use HTTPS URL on Google Fonts
@danielgtaylor danielgtaylor merged commit 748e5f9 into danielgtaylor:olio-theme Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants