Skip to content

Commit

Permalink
remove 'css' subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmaroli committed Sep 30, 2016
1 parent 480cb36 commit cc49d2e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,19 @@ And then execute:
To override the default structure and style of minima, simply create the concerned directory at the root of your site, copy the file you wish to customize to that directory, and then edit the file.
e.g., to override the [`_includes/head.html `](_includes/head.html) file to specify a custom style path, create an `_includes` directory, copy `_includes/head.html` from minima gem folder to `<yoursite>/_includes` and start editing that file.

The site's default CSS has now moved to a new place within the gem itself, [`assets/css/main.scss`](assets/css/main.scss). To **override the default CSS**, the file has to exist at your site source. Do either of the following:
The site's default CSS has now moved to a new place within the gem itself, [`assets/main.scss`](assets/main.scss). To **override the default CSS**, the file has to exist at your site source. Do either of the following:
- Create a new instance of `main.scss` at site source.
- Create a new directory `css` at `<your-site>/assets/`
- Create a new file `main.scss` at `<your-site>/assets/css/`
- Create a new file `main.scss` at `<your-site>/assets/`
- Add the frontmatter dashes, and
- Add `@import "minima";`, to `<your-site>/assets/main.scss`
- Add your custom CSS.
- Download the file from this repo
- Create a new directory `css` at `<your-site>/assets/`
- Create a new file `main.scss` at `<your-site>/assets/css/`
- Copy the contents at [assets/css/main.scss](assets/css/main.scss) onto the `main.scss` you just created, and edit away!
- Create a new file `main.scss` at `<your-site>/assets/`
- Copy the contents at [assets/main.scss](assets/main.scss) onto the `main.scss` you just created, and edit away!
- Copy directly from Minima 2.0 gem
- Go to your local minima gem installation directory ( run `bundle show minima` to get the path to it ).
- Copy the `css/` folder from there into `<your-site>/assets/`
- Change whatever values you want, inside `<your-site>/assets/css/main.scss`
- Copy the `assets/` folder from there into the root of `<your-site>`
- Change whatever values you want, inside `<your-site>/assets/main.scss`

--

Expand Down
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{% assign custom_url = site.url | append: site.baseurl %}
{% assign full_base_url = custom_url | default: site.github.url %}
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: full_base_url }}">
<link rel="stylesheet" href="{{ "/assets/main.css" | prepend: full_base_url }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: full_base_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | prepend: full_base_url }}">

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion minima.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Thank you for installing minima 2.0!
Minima 2.0 comes with a breaking change that
renders '<your-site>/css/main.scss' redundant.
That file is now bundled with this gem as
'<minima>/assets/css/main.scss'.
'<minima>/assets/main.scss'.
More Information:
https://github.com/jekyll/minima#customization
Expand Down

0 comments on commit cc49d2e

Please sign in to comment.