Skip to content

Commit 0e682be

Browse files
committed
Fix CSS include
* Having CSS in assets/css is recommended by GitHub Pages docs. * Add relative_url.
1 parent 35f8fbf commit 0e682be

File tree

8 files changed

+15
-80
lines changed

8 files changed

+15
-80
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ description: >- # this means to ignore newlines until "baseurl:"
1919
Write an awesome description for your new site here. You can edit this
2020
line in _config.yml. It will appear in your document head meta (for
2121
Google search results) and in your feed.xml site description.
22-
baseurl: "" # the subpath of your site, e.g. /blog
22+
baseurl: "/tutorials" # the subpath of your site, e.g. /blog
2323
url: "" # the base hostname & protocol for your site, e.g. http://example.com
2424
twitter_username: erlangcentral
2525
github_username: erlangcentral

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55
{%- seo -%}
6-
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
6+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
77
<link rel="shortcut icon" type="image/x-icon" href="{{ "/assets/images/favicon.ico" | relative_url }}">
88
{%- feed_meta -%}
99
{%- if jekyll.environment == 'production' and site.google_analytics -%}

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{%- assign page_paths = site.header_pages | default: default_paths -%}
66
<div class="global-nav">
77
<a class="global-nav__link" href="https://erlangcentral.org">
8-
<img class="logo" src={{ "/assets/images/logo.png" | relative_url }}>
8+
<img class="logo" src="{{ "/assets/images/logo.png" | relative_url }}">
99
<span>{{ site.title | escape }}</span>
1010
</a>
1111
</div>
File renamed without changes.

_sass/minima.scss renamed to _sass/_erlangcentral.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// Imports
44
@font-face{
55
font-family: "NexaLight";
6-
src: url("fonts/nexa-light.woff") format("woff");
6+
src: url("../fonts/nexa-light.woff") format("woff");
77
}
88
@font-face{
99
font-family: "NexaBold";
10-
src: url("fonts/nexa-bold.woff") format("woff");
10+
src: url("../fonts/nexa-bold.woff") format("woff");
1111
}
1212
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i');
1313

@@ -62,9 +62,7 @@ $on-laptop: 767px !default;
6262
font-size: $base-font-size * $ratio;
6363
}
6464

65-
// Import partials.
6665
@import
67-
"minima/base",
68-
"minima/layout",
69-
"minima/syntax-highlighting"
66+
"base",
67+
"layout"
7068
;
File renamed without changes.

_sass/minima/_syntax-highlighting.scss

Lines changed: 0 additions & 71 deletions
This file was deleted.

assets/css/style.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
---
3+
4+
@import "{{ site.theme }}";
5+
6+
@import
7+
"erlangcentral"
8+
;

0 commit comments

Comments
 (0)