Skip to content

Commit

Permalink
Use relative Urls for stylesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelMarcey committed Nov 10, 2016
1 parent b39b2ee commit 672300f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@
<meta property="og:image" content="{{ '/static/og_image.png' | absolute_url }}" />
<meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}" />

<link rel="stylesheet" href="{{ '/css/main.css' | absolute_url }}" media="screen">
<link rel="icon" href="{{ '/static/favicon.png' | absolute_url }}" type="image/x-icon">
<link rel="stylesheet" href="{{ '/css/main.css' | relative_url }}" media="screen">
<link rel="icon" href="{{ '/static/favicon.png' | relative_url }}" type="image/x-icon">
{% if site.searchconfig %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" />
{% endif %}

<title>{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">

<base href="{{ absolute_url }}/" />

<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}" />
</head>

0 comments on commit 672300f

Please sign in to comment.