Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
link docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RDIL committed Dec 16, 2019
1 parent 4b4138a commit 210b1fd
Showing 1 changed file with 1 addition and 136 deletions.
137 changes: 1 addition & 136 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,139 +2,4 @@

*PickleCore* is a Jekyll theme developed by [Reece Dunham](https://github.com/RDIL) ([for his site](https://rdil.rocks)) and [Param Thakkar](https://github.com/paramt).

## Installation

First, download it by adding it to your `Gemfile`:

```ruby
gem "picklecore"
```

run [Bundler](https://bundler.io):

```shell
$ bundle install
```

and apply it in your `_config.yml`:

```yaml
theme: picklecore
```
and it should apply.
## Deploying
### GitHub Pages
Unfortunately, PickleCore is not whitelisted as a GitHub pages theme, so you can't use it by simply applying the theme. You will need to set up some kind of pipeline that bulids the site into raw HTML/CSS/JS and deploy that off the `gh-pages` branch.

### Netlify

Netlify is perfect for deploying PickleCore. The setup is quite easy - just set the command as `gem update && gem install bundler && bundle exec jekyll build` and set the deploy folder to `_site`!

## Customization

PickleCore is (most likely) the most customizable-out-of-the-box theme out in the Jekyllverse. Here is a list of keys you can put in your `_config.yml` and what they do:

* `name` - the name of the site (main title)
* `webmanifest` - link to a `manifest.json` or a file with the `.webmanifest` extension (used by Google for web apps, link must be relative to the root page of the site)
* `description` - description of the site (for metadata)
* `url` - the URL of your site when hosted in production
* `apple-touch-icon` - the URL of the Apple touch icon for the site if you have one (see [this article](https://www.computerhope.com/jargon/a/appletou.htm) for more info)
* `index_on_google` - `true` or `false` depending if you want your site in Google search results
* `keywords` - an inline list of comma (no spaces) seperated keywords (for SEO) (e.g. `keywords: "hello,world,this,is,my,site"`)
* `images.tileimage` - the link to the Microsoft tile image
* `browserconfigxml` - link to a `browserconfig.xml` for Microsoft-based browsers
* The same thing can be applied to `twitter` with the subkey `image`, and `opengraph` with the subkey `image`
* `twitter` - Twitter meta dictionary
* `username`: your Twitter username as a string (no `@`!)
* `devto` - your [DEV](https://dev.to/) username (if you want it on the sidebar)
* `no_extra_css` - prevent custom stylesheets (see below) from being loaded (defaults to `false`)
* `no_extra_head` - prevent custom metadata (see below) from being loaded (defaults to `false`)

Most of the favicons and images listed here can be made over at https://realfavicongenerator.net

### Colors

To change the base color, which defaults to `#303f9f`, you can add a file called `_includes/styling/theme-color.css`,
and put the hex color on the first line. **Do not** add a newline at the end of the file, it will break the CSS!

### Custom CSS

To apply custom CSS, add a file called `_includes/styling/extra.css` and put styles in that file.

Note: this will not work if you specify the `no_extra_css` key in your config as `true`.

## Applying Theme Components

The PickleCore theme allows you to apply some nice looking components that match with the theme via `includes`.

### Cards

[![A card](https://raw.githubusercontent.com/RDIL/debugging-playground/master/card-example.png)](https://github.com/RDIL/PickleCore)

A card (shown above) can be applied by adding the following to any page **with [Front Matter](https://jekyllrb.com/docs/front-matter/) on it**:

```html
<!--
Note: you can put as many cards as you want in each card container,
but all cards NEED to be in a container (with the class 'cards').
-->
<div class="cards">
<!-- In this container, render a card -->
{% include components/card.html cardtitle="My Card" cardbody="The text of the card!" %}
</div>
```

### Sidebar

The easiest way to apply the sidebar to your website is to use the `default-with-sidebar` layout via Jekyll:

```yaml
---
layout: default-with-sidebar
---
```

The second easiest way is to add it via the include:

```html
---
layout: default
---
<!--
Anchor the sidebar opener to this location on the page.
Note: trying to move it via CSS may prove difficult!
-->
{% include components/binds/sidebar-anchor.html %}
<!-- Other content -->
```

But you should ***most certainly not*** simply use the `sidebar.html` component without the anchor - this will most likely break everything. Use one of the methods above.

> *Help! My sidebar is blank when I open it - what do I do?*
> Certain site config fields will populate the sidebar, so see the customization section above.

### Solid Blocks

Sometimes you need to group data, or show something off, and a card just doesn't work.
That's alright, you can just use the solid block element.
Solid blocks are simply elements with white borders, and a bit of padding.
Oh, and did I mention they fit together quite nicely?

Example:

```html
<div class="block-solid">
<h2>I am in a block!</h2>
</div>
```

### Custom Metadata in `<head>`

To apply custom HTML in `<head>`, add a file called `_includes/metadata/extra.html` and put any HTML in that file.

Note: this will not work if you specify the `no_extra_head` key in your config as `true`.
See [the documentation](https://docs.rdil.rocks/libraries/picklecore/) for more info.

0 comments on commit 210b1fd

Please sign in to comment.