Skip to content

Commit 5401bb0

Browse files
author
Houssein Djirdeh
committed
config and readme updates:
1 parent 7f16af9 commit 5401bb0

File tree

2 files changed

+11
-154
lines changed

2 files changed

+11
-154
lines changed

README.md

Lines changed: 2 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -1,147 +1,3 @@
1-
# minima
1+
##
22

3-
*Minima is a one-size-fits-all Jekyll theme for writers*. It's Jekyll's default (and first) theme. It's what you get when you run `jekyll new`.
4-
5-
[Theme preview](https://jekyll.github.io/minima/)
6-
7-
![minima theme preview](/screenshot.png)
8-
9-
## Installation
10-
11-
Add this line to your Jekyll site's Gemfile:
12-
13-
```ruby
14-
gem "minima"
15-
```
16-
17-
And add this line to your Jekyll site:
18-
19-
```yaml
20-
theme: minima
21-
```
22-
23-
And then execute:
24-
25-
$ bundle
26-
27-
28-
## Contents At-A-Glance
29-
30-
Minima has been scaffolded by the `jekyll new-theme` command and therefore has all the necessary files and directories to have a new Jekyll site up and running with zero-configuration.
31-
32-
### Layouts
33-
34-
Refers to files within the `_layouts` directory, that define the markup for your theme.
35-
36-
- `default.html` — The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says ` {{ content }} ` and are linked to this file via [FrontMatter](https://jekyllrb.com/docs/frontmatter/) declaration `layout: default`.
37-
- `home.html` — The layout for your landing-page / home-page / index-page.
38-
- `page.html` — The layout for your documents that contain FrontMatter, but are not posts.
39-
- `post.html` — The layout for your posts.
40-
41-
### Includes
42-
43-
Refers to snippets of code within the `_includes` directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.
44-
45-
- `disqus_comments.html` — Code to markup disqus comment box.
46-
- `footer.html` — Defines the site's footer section.
47-
- `google-analytics.html` — Inserts Google Analytics module (active only in production environment).
48-
- `head.html` &mdash; Code-block that defines the `<head></head>` in *default* layout.
49-
- `header.html` &mdash; Defines the site's main header section.
50-
- `icon-* files` &mdash; Inserts github and twitter ids with respective icons.
51-
52-
### Sass
53-
54-
Refers to `.scss` files within the `_sass` directory that define the theme's styles.
55-
56-
- `minima.scss` &mdash; The core file imported by preprocessed `main.scss`, it defines the variable defaults for the theme and also further imports sass partials to supplement itself.
57-
- `minima/_base.scss` &mdash; Resets and defines base styles for various HTML elements.
58-
- `minima/_layout.scss` &mdash; Defines the visual style for various layouts.
59-
- `minima/_syntax-highlighting.scss` &mdash; Defines the styles for syntax-highlighting.
60-
61-
### Assets
62-
63-
Refers to various asset files within the `assets` directory.
64-
Contains the `main.scss` that imports sass files from within the `_sass` directory. This `main.scss` is what gets processed into the theme's main stylesheet `main.css` called by `_layouts/default.html` via `_includes/head.html`.
65-
66-
This directory can include sub-directories to manage assets of similar type, and will be copied over as is, to the final transformed site directory.
67-
68-
69-
## Usage
70-
71-
### Customization
72-
73-
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.
74-
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.
75-
76-
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:
77-
- Create a new instance of `main.scss` at site source.
78-
- Create a new file `main.scss` at `<your-site>/assets/`
79-
- Add the frontmatter dashes, and
80-
- Add `@import "minima";`, to `<your-site>/assets/main.scss`
81-
- Add your custom CSS.
82-
- Download the file from this repo
83-
- Create a new file `main.scss` at `<your-site>/assets/`
84-
- Copy the contents at [assets/main.scss](assets/main.scss) onto the `main.scss` you just created, and edit away!
85-
- Copy directly from Minima 2.0 gem
86-
- Go to your local minima gem installation directory ( run `bundle show minima` to get the path to it ).
87-
- Copy the `assets/` folder from there into the root of `<your-site>`
88-
- Change whatever values you want, inside `<your-site>/assets/main.scss`
89-
90-
--
91-
92-
### Change default date format
93-
94-
You can change the default date format by specifying `site.minima.date_format`
95-
in `_config.yml`.
96-
97-
```
98-
# Minima date format
99-
# refer to http://shopify.github.io/liquid/filters/date/ if you want to customize this
100-
minima:
101-
date_format: "%b %-d, %Y"
102-
```
103-
104-
--
105-
106-
### Enabling comments (via Disqus)
107-
108-
Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
109-
110-
To enable it, add the following lines to your Jekyll site:
111-
112-
```yaml
113-
disqus:
114-
shortname: my_disqus_shortname
115-
```
116-
117-
You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
118-
119-
Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
120-
121-
If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
122-
123-
--
124-
125-
### Enabling Google Analytics
126-
127-
To enable Google Anaytics, add the following lines to your Jekyll site:
128-
129-
```yaml
130-
google_analytics: UA-NNNNNNNN-N
131-
```
132-
133-
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
134-
135-
## Contributing
136-
137-
Bug reports and pull requests are welcome on GitHub at https://github.com/jekyll/minima. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
138-
139-
## Development
140-
141-
To set up your environment to develop this theme, run `script/bootstrap`.
142-
143-
To test your theme, run `script/server` (or `bundle exec jekyll serve`) and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme and the contents. As you make modifications, your site will regenerate and you should see the changes in the browser after a refresh.
144-
145-
## License
146-
147-
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
3+
Site for GitPoint :)

_config.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,22 @@
1414
# You can create any custom variable you would like, and they will be accessible
1515
# in the templates via {{ site.myvariable }}.
1616
title: GitPoint
17-
email: your-email@domain.com
17+
email: houssein.djirdeh@gmail.com
1818
description: > # this means to ignore newlines until "baseurl:"
19-
Write an awesome description for your new site here. You can edit this
20-
line in _config.yml. It will appear in your document head meta (for
21-
Google search results) and in your feed.xml site description.
19+
GitHub for iOS
2220
baseurl: "" # the subpath of your site, e.g. /blog
23-
url: "" # the base hostname & protocol for your site, e.g. http://example.com
24-
twitter_username: jekyllrb
25-
github_username: jekyll
21+
url: "https://gitpoint.co" # the base hostname & protocol for your site, e.g. http://example.com
22+
twitter_username: "@hdjirdeh"
23+
github_username: "housseindjirdeh"
2624

2725
# Build settings
2826
markdown: kramdown
29-
theme: minima
3027
gems:
3128
- jekyll-feed
3229
exclude:
3330
- Gemfile
3431
- Gemfile.lock
32+
- vendor
33+
- package.json
34+
- sw-precache-config.js
35+
- node_modules

0 commit comments

Comments
 (0)