Skip to content

Commit ec23fa0

Browse files
author
Houssein Djirdeh
committed
first commit
0 parents  commit ec23fa0

25 files changed

+3927
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
.sass-cache
3+
.jekyll-metadata

Gemfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
source "https://rubygems.org"
2+
ruby RUBY_VERSION
3+
4+
# Hello! This is where you manage which Jekyll version is used to run.
5+
# When you want to use a different version, change it below, save the
6+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
7+
#
8+
# bundle exec jekyll serve
9+
#
10+
# This will help ensure the proper Jekyll version is running.
11+
# Happy Jekylling!
12+
gem "jekyll", "3.3.1"
13+
14+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
15+
gem "minima", "~> 2.0"
16+
17+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
18+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
19+
# gem "github-pages", group: :jekyll_plugins
20+
21+
# If you have any plugins, put them here!
22+
group :jekyll_plugins do
23+
gem "jekyll-feed", "~> 0.6"
24+
end

Gemfile.lock

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.5.1)
5+
public_suffix (~> 2.0, >= 2.0.2)
6+
colorator (1.1.0)
7+
ffi (1.9.18)
8+
forwardable-extended (2.6.0)
9+
jekyll (3.3.1)
10+
addressable (~> 2.4)
11+
colorator (~> 1.0)
12+
jekyll-sass-converter (~> 1.0)
13+
jekyll-watch (~> 1.1)
14+
kramdown (~> 1.3)
15+
liquid (~> 3.0)
16+
mercenary (~> 0.3.3)
17+
pathutil (~> 0.9)
18+
rouge (~> 1.7)
19+
safe_yaml (~> 1.0)
20+
jekyll-feed (0.9.2)
21+
jekyll (~> 3.3)
22+
jekyll-sass-converter (1.5.0)
23+
sass (~> 3.4)
24+
jekyll-watch (1.5.0)
25+
listen (~> 3.0, < 3.1)
26+
kramdown (1.13.2)
27+
liquid (3.0.6)
28+
listen (3.0.8)
29+
rb-fsevent (~> 0.9, >= 0.9.4)
30+
rb-inotify (~> 0.9, >= 0.9.7)
31+
mercenary (0.3.6)
32+
minima (2.1.1)
33+
jekyll (~> 3.3)
34+
pathutil (0.14.0)
35+
forwardable-extended (~> 2.6)
36+
public_suffix (2.0.5)
37+
rb-fsevent (0.9.8)
38+
rb-inotify (0.9.8)
39+
ffi (>= 0.5.0)
40+
rouge (1.11.1)
41+
safe_yaml (1.0.4)
42+
sass (3.4.24)
43+
44+
PLATFORMS
45+
ruby
46+
47+
DEPENDENCIES
48+
jekyll (= 3.3.1)
49+
jekyll-feed (~> 0.6)
50+
minima (~> 2.0)
51+
52+
RUBY VERSION
53+
ruby 2.3.1p112
54+
55+
BUNDLED WITH
56+
1.14.6

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Parker Moore
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
# minima
2+
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` &mdash; 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` &mdash; The layout for your landing-page / home-page / index-page.
38+
- `page.html` &mdash; The layout for your documents that contain FrontMatter, but are not posts.
39+
- `post.html` &mdash; 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` &mdash; Code to markup disqus comment box.
46+
- `footer.html` &mdash; Defines the site's footer section.
47+
- `google-analytics.html` &mdash; 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).

_config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
11+
# Site settings
12+
# These are used to personalize your new site. If you look in the HTML files,
13+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
14+
# You can create any custom variable you would like, and they will be accessible
15+
# in the templates via {{ site.myvariable }}.
16+
title: GitPoint
17+
18+
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.
22+
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
26+
27+
# Build settings
28+
markdown: kramdown
29+
theme: minima
30+
gems:
31+
- jekyll-feed
32+
exclude:
33+
- Gemfile
34+
- Gemfile.lock

_includes/footer.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!--<footer class="site-footer">
2+
3+
<div class="wrapper">
4+
5+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
6+
7+
<div class="footer-col-wrapper">
8+
<div class="footer-col footer-col-1">
9+
<ul class="contact-list">
10+
<li>
11+
{% if site.author %}
12+
{{ site.author | escape }}
13+
{% else %}
14+
{{ site.title | escape }}
15+
{% endif %}
16+
</li>
17+
{% if site.email %}
18+
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
19+
{% endif %}
20+
</ul>
21+
</div>
22+
23+
<div class="footer-col footer-col-2">
24+
<ul class="social-media-list">
25+
{% if site.github_username %}
26+
<li>
27+
{% include icon-github.html username=site.github_username %}
28+
</li>
29+
{% endif %}
30+
31+
{% if site.twitter_username %}
32+
<li>
33+
{% include icon-twitter.html username=site.twitter_username %}
34+
</li>
35+
{% endif %}
36+
</ul>
37+
</div>
38+
39+
<div class="footer-col footer-col-3">
40+
<p>{{ site.description | escape }}</p>
41+
</div>
42+
</div>
43+
44+
</div>
45+
46+
</footer>-->

_includes/github-corner.svg

Lines changed: 7 additions & 0 deletions
Loading

_includes/google-analytics.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6+
7+
ga('create', '{{ site.google_analytics }}', 'auto');
8+
ga('send', 'pageview');
9+
10+
</script>
11+

_includes/head.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8+
9+
<link rel="stylesheet" href="{{ "/assets/styles/main.css" | relative_url }}">
10+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
11+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ " /feed.xml
12+
" | relative_url }}"> {% if jekyll.environment == 'production' and site.google_analytics %} {% include google-analytics.html %} {% endif %}
13+
14+
<script async defer src="https://buttons.github.io/buttons.js"></script>
15+
</head>

_includes/header.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<a href="https://github.com/tastejs/hacker-news-pwas" class="github-corner" aria-label="View source on Github">
2+
{% include github-corner.svg %}
3+
</a>
4+
5+
<section class="flex-ns vh-100 items-center bg-near-white">
6+
<div class="mw6 ph5">
7+
<img src="https://hnpwa.com/assets/images/angular2hn-mobile.png">
8+
</div>
9+
<div class="tc tl-ns ph3 avenir">
10+
<h1 class="f3 f1-l fw4 mb3 mt4 mt0-ns">GitPoint</h1>
11+
<h2 class="f5 f3-l fw3 mb4 mb5-l lh-title">GitHub for iOS.</h2>
12+
<a href="https://www.amazon.com/Apple-iPhone-Warranty-Unlocked-Cellphone/dp/B015E8UTIU/ref=sr_1_2?ie=UTF8&qid=1481330742&sr=8-2&keywords=iphone+6s" class="dib grow">
13+
{% include icon-app-store.svg %}
14+
</a>
15+
</div>
16+
</section>

0 commit comments

Comments
 (0)