fry 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +73 -0
- data/_includes/g_analytics.html +8 -0
- data/_includes/head.html +20 -0
- data/_includes/header.html +15 -0
- data/_layouts/default.html +12 -0
- data/_layouts/post.html +18 -0
- data/_sass/base.scss +94 -0
- data/_sass/bio.scss +24 -0
- data/_sass/lightbox.scss +35 -0
- data/_sass/photos.scss +80 -0
- data/assets/cursor.png +0 -0
- data/assets/ico.png +0 -0
- data/assets/main.scss +10 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3786426c9d9a5d12437ffc7c8ac3b7c50888610c
|
4
|
+
data.tar.gz: 0e569e19c50fae33fa6dc5664a42a68403d89a6b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f9d6a816312f21bcf7bc816f0a8007e8cf015109dc035fb62ae602f23790221626106e946940e61b2135f3149bfbe81ffd83350a7b47fbc1d02098e2c6166bbe
|
7
|
+
data.tar.gz: e146ace4e8025e80748a9a373da59735d43ee5beb3b84facc1310bb5c5773e570fa460b8ff11232f84eaa8a0739b888285c5d2dd7b14d6cfe1b13b8727524171
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# Fry
|
2
|
+
=======
|
3
|
+
Fry is [Louie](https://github.com/lllychen/louie)'s much more graphic-heavy, photogenic brother (still a Jekyll theme tho).
|
4
|
+
|
5
|
+

|
6
|
+

|
7
|
+

|
8
|
+
|
9
|
+
## Installation
|
10
|
+
Add this line to your Jekyll site's Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem "fry"
|
14
|
+
```
|
15
|
+
|
16
|
+
And add this line to your Jekyll site's `_config.yml`:
|
17
|
+
|
18
|
+
```yaml
|
19
|
+
theme: fry
|
20
|
+
```
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
$ bundle
|
25
|
+
|
26
|
+
Or install it yourself as:
|
27
|
+
|
28
|
+
$ gem install fry
|
29
|
+
|
30
|
+
## Usage
|
31
|
+
### Basic configurations
|
32
|
+
Here are a few general info fields to populate your new site right away.
|
33
|
+
|
34
|
+
```yaml
|
35
|
+
title: Fry
|
36
|
+
baseurl: "/fry"
|
37
|
+
favicon: "/assets/ico.png"
|
38
|
+
g_analytics: UA-12345678-1
|
39
|
+
|
40
|
+
header: name of your site here
|
41
|
+
desc: >
|
42
|
+
description of your site, can be a quick bio if it's a portfolio. It supports HTML so add your links, imgs, whatever!
|
43
|
+
```
|
44
|
+
|
45
|
+
### Social media links
|
46
|
+
To add links to your social sites (linkedin, twitter, etc) below the bio, create a file named `social.yml` in your `_data` folder (which you may not have created yet). Inside it, follow the following format:
|
47
|
+
|
48
|
+
```yaml
|
49
|
+
- title: Twitter
|
50
|
+
url: http://twitter.com/lllychen
|
51
|
+
- title: Github
|
52
|
+
url: http://github.com/lllychen/lou
|
53
|
+
# and so on...
|
54
|
+
```
|
55
|
+
|
56
|
+
### Date format
|
57
|
+
The default format for dates is `%Y-%m-%d`, which displays January 2nd, 2017 as `2017-01-02`. However, you can customize it according to [this](http://jekyll.tips/jekyll-casts/date-formatting/#date) in `_config.yml` such as follows:
|
58
|
+
|
59
|
+
```yaml
|
60
|
+
date_format: "%Y-%m-%d"
|
61
|
+
```
|
62
|
+
|
63
|
+
### Photo sets
|
64
|
+
This site is organized by sets of photos, which are each essentially a Jekyll post. To add a new one, create a new post and in the front matter, follow the example below:
|
65
|
+
|
66
|
+
```yaml
|
67
|
+
layout: post
|
68
|
+
title: name of your project or the like
|
69
|
+
photos:
|
70
|
+
unique-id-for-your-photo: path/to or url
|
71
|
+
```
|
72
|
+
|
73
|
+
The unique ID for each photo will be important as it is needed for the lightbox to work properly.
|
@@ -0,0 +1,8 @@
|
|
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
|
+
ga('create', '{{ site.g_analytics }}', 'auto');
|
7
|
+
ga('send', 'pageview');
|
8
|
+
</script>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
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
|
+
{% if site.favicon %}
|
10
|
+
<link rel="icon" href="{{ site.favicon | relative_url }}" />
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
14
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
15
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
16
|
+
|
17
|
+
{% if jekyll.environment == 'production' and site.g_analytics %}
|
18
|
+
{% include g_analytics.html %}
|
19
|
+
{% endif %}
|
20
|
+
</head>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<div class="bio">
|
2
|
+
<div class="bio__header">
|
3
|
+
<a href="{{ site.url }}{{ "/" | relative_url }}">
|
4
|
+
{{ site.header }}
|
5
|
+
</a>
|
6
|
+
</div>
|
7
|
+
<div class="bio__desc">{{ site.desc }}</div>
|
8
|
+
{% if site.data.social %}
|
9
|
+
<ul class="bio__social">
|
10
|
+
{% for item in site.data.social %}
|
11
|
+
<li><a href="{{ item.url }}" target="_blank">{{ item.title }}</a></li>
|
12
|
+
{% endfor %}
|
13
|
+
</ul>
|
14
|
+
{% endif %}
|
15
|
+
</div>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
{% include head.html %}
|
4
|
+
|
5
|
+
<body>
|
6
|
+
<div class="container">
|
7
|
+
<div class="post">
|
8
|
+
<div class="bio__header">
|
9
|
+
<a href="{{ site.url }}{{ "/" | relative_url }}">
|
10
|
+
{{ site.header }}
|
11
|
+
</a>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
{{ content }}
|
15
|
+
</div>
|
16
|
+
</body>
|
17
|
+
|
18
|
+
</html>
|
data/_sass/base.scss
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
$on-palm: 600px !default;
|
2
|
+
$on-laptop: 800px !default;
|
3
|
+
|
4
|
+
// typography
|
5
|
+
@import url('https://fonts.googleapis.com/css?family=Inconsolata:400,700');
|
6
|
+
$inconsolata: 'Inconsolata', monospace;
|
7
|
+
$font__size: 14px;
|
8
|
+
$font__weight: 400;
|
9
|
+
$font__line-height: 1.5;
|
10
|
+
|
11
|
+
// colors
|
12
|
+
$color__black: #000000;
|
13
|
+
$color__gray: #eeeeee;
|
14
|
+
$color__beige: #f8f8f1;
|
15
|
+
$color__yellow: #fefeca;
|
16
|
+
|
17
|
+
@mixin media-query($device) {
|
18
|
+
@media screen and (min-width: $device) {
|
19
|
+
@content;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// elements
|
24
|
+
* {
|
25
|
+
box-sizing: border-box;
|
26
|
+
}
|
27
|
+
|
28
|
+
::selection {
|
29
|
+
background: $color__yellow;
|
30
|
+
}
|
31
|
+
|
32
|
+
::-moz-selection {
|
33
|
+
background: $color__yellow;
|
34
|
+
}
|
35
|
+
|
36
|
+
hr {
|
37
|
+
color: $color__black;
|
38
|
+
background-color: $color__black;
|
39
|
+
}
|
40
|
+
|
41
|
+
a {
|
42
|
+
// display: block;
|
43
|
+
// width: 100%;
|
44
|
+
// height: 100%;
|
45
|
+
color: $color__black;
|
46
|
+
text-decoration: underline;
|
47
|
+
|
48
|
+
&:hover {
|
49
|
+
color: $color__black;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
// layout
|
54
|
+
html {
|
55
|
+
overflow-x: hidden;
|
56
|
+
overflow-y: scroll;
|
57
|
+
}
|
58
|
+
|
59
|
+
body {
|
60
|
+
width: 100%;
|
61
|
+
margin: 25px 0;
|
62
|
+
padding: 0;
|
63
|
+
// background: $color__beige;
|
64
|
+
font-family: $inconsolata;
|
65
|
+
font-size: $font__size;
|
66
|
+
font-weight: $font__weight;
|
67
|
+
line-height: $font__line-height;
|
68
|
+
}
|
69
|
+
|
70
|
+
.container {
|
71
|
+
max-width: 1200px;
|
72
|
+
margin: 0 25px;
|
73
|
+
}
|
74
|
+
|
75
|
+
// media queries
|
76
|
+
@include media-query($on-palm) {
|
77
|
+
body {
|
78
|
+
margin: 50px 0 25px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.container {
|
82
|
+
margin: 0 50px;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
@include media-query($on-laptop) {
|
87
|
+
body {
|
88
|
+
margin: 120px 0 50px;
|
89
|
+
}
|
90
|
+
|
91
|
+
.container {
|
92
|
+
margin: 0 120px;
|
93
|
+
}
|
94
|
+
}
|
data/_sass/bio.scss
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
.bio {
|
2
|
+
max-width: 500px;
|
3
|
+
margin-bottom: 50px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.bio__header {
|
7
|
+
margin-bottom: 20px;
|
8
|
+
font-weight: 700;
|
9
|
+
|
10
|
+
a {
|
11
|
+
text-decoration: none;
|
12
|
+
|
13
|
+
&:hover {
|
14
|
+
text-decoration: none;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.bio__social {
|
20
|
+
margin: 0;
|
21
|
+
margin-top: 10px;
|
22
|
+
padding: 0;
|
23
|
+
list-style: none;
|
24
|
+
}
|
data/_sass/lightbox.scss
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
.lightbox {
|
2
|
+
display: none;
|
3
|
+
position: fixed;
|
4
|
+
top: 0;
|
5
|
+
left: 0;
|
6
|
+
width: 100%;
|
7
|
+
height: 100%;
|
8
|
+
background: rgba(255,255,255,0.8);
|
9
|
+
text-align: center;
|
10
|
+
z-index: 999;
|
11
|
+
|
12
|
+
&:target {
|
13
|
+
outline: none;
|
14
|
+
display: block;
|
15
|
+
cursor: url('cursor.png'), default;
|
16
|
+
}
|
17
|
+
|
18
|
+
img {
|
19
|
+
display: inline-block;
|
20
|
+
max-width: 100%;
|
21
|
+
max-height: 100%;
|
22
|
+
vertical-align: middle;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
@include media-query($on-laptop) {
|
27
|
+
.lightbox {
|
28
|
+
// &:before {
|
29
|
+
// display: inline-block;
|
30
|
+
// height: 100%;
|
31
|
+
// vertical-align: middle;
|
32
|
+
// content: ' ';
|
33
|
+
// }
|
34
|
+
}
|
35
|
+
}
|
data/_sass/photos.scss
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
.photos {
|
2
|
+
display: block;
|
3
|
+
width: 100%;
|
4
|
+
border-bottom: 1px solid $color__black;
|
5
|
+
padding: 20px 0;
|
6
|
+
overflow: hidden;
|
7
|
+
|
8
|
+
&:first-child {
|
9
|
+
padding-top: 0;
|
10
|
+
}
|
11
|
+
|
12
|
+
&:last-child {
|
13
|
+
border: none;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.photos__hover-title {
|
18
|
+
@extend .container;
|
19
|
+
display: none;
|
20
|
+
position: fixed;
|
21
|
+
top: 0;
|
22
|
+
left: 0;
|
23
|
+
width: 100%;
|
24
|
+
height: 100%;
|
25
|
+
text-align: center;
|
26
|
+
z-index: -1;
|
27
|
+
|
28
|
+
div {
|
29
|
+
display: table-cell;
|
30
|
+
line-height: 150px;
|
31
|
+
font-weight: 700;
|
32
|
+
font-size: 150px;
|
33
|
+
vertical-align: middle;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.photos__img {
|
38
|
+
float: left;
|
39
|
+
width: 50%;
|
40
|
+
height: 200px;
|
41
|
+
line-height: 200px;
|
42
|
+
text-align: center;
|
43
|
+
overflow: hidden;
|
44
|
+
|
45
|
+
img {
|
46
|
+
max-width: 90%;
|
47
|
+
max-height: 90%;
|
48
|
+
margin-bottom: 20px;
|
49
|
+
vertical-align: middle;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
// media queries
|
54
|
+
@include media-query($on-palm) {
|
55
|
+
.photos__img {
|
56
|
+
width: 10%;
|
57
|
+
height: 80px;
|
58
|
+
line-height: 80px;
|
59
|
+
|
60
|
+
img {
|
61
|
+
max-width: 90%;
|
62
|
+
max-height: 90%;
|
63
|
+
margin-bottom: 0;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
@include media-query($on-laptop) {
|
69
|
+
.photos {
|
70
|
+
&:hover .photos__hover-title {
|
71
|
+
display: table;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
.photos__img {
|
76
|
+
width: 6.25%;
|
77
|
+
height: 55px;
|
78
|
+
line-height: 55px;
|
79
|
+
}
|
80
|
+
}
|
data/assets/cursor.png
ADDED
Binary file
|
data/assets/ico.png
ADDED
Binary file
|
data/assets/main.scss
ADDED
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fry
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Lillian Chen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- lilyc5459@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- _includes/g_analytics.html
|
65
|
+
- _includes/head.html
|
66
|
+
- _includes/header.html
|
67
|
+
- _layouts/default.html
|
68
|
+
- _layouts/post.html
|
69
|
+
- _sass/base.scss
|
70
|
+
- _sass/bio.scss
|
71
|
+
- _sass/lightbox.scss
|
72
|
+
- _sass/photos.scss
|
73
|
+
- assets/cursor.png
|
74
|
+
- assets/ico.png
|
75
|
+
- assets/main.scss
|
76
|
+
homepage: http://lillian-chen.com/fry/
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata: {}
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.4.5.1
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: Fry is Louie's much more graphic-heavy, photogenic brother (still a Jekyll
|
100
|
+
theme tho).
|
101
|
+
test_files: []
|