quiet-comic 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +198 -0
- data/_artworks/demo-0.md +7 -0
- data/_artworks/demo-1.md +7 -0
- data/_artworks/demo-2.md +7 -0
- data/_artworks/demo-3.md +7 -0
- data/_artworks/demo-4.md +7 -0
- data/_artworks/demo-5.md +7 -0
- data/_artworks/demo-6.md +7 -0
- data/_artworks/demo-7.md +7 -0
- data/_artworks/demo-8.md +7 -0
- data/_artworks/demo-9.md +7 -0
- data/_artworks/demo.md +7 -0
- data/_includes/collection_feed.xml +80 -0
- data/_includes/comments.html +11 -0
- data/_includes/facebook_javascript_sdk.html +8 -0
- data/_includes/footer.html +50 -0
- data/_includes/google_analytics.html +10 -0
- data/_includes/head.html +23 -0
- data/_includes/header.html +43 -0
- data/_includes/seo.html +147 -0
- data/_layouts/artwork.html +41 -0
- data/_layouts/autopage_collection.html +63 -0
- data/_layouts/default.html +12 -0
- data/_layouts/home.html +22 -0
- data/_layouts/page.html +46 -0
- data/_layouts/post.html +5 -0
- data/_pages/demo-0.md +8 -0
- data/_pages/demo-1.md +7 -0
- data/_pages/demo-2.md +7 -0
- data/_pages/demo-3.md +7 -0
- data/_pages/demo-4.md +7 -0
- data/_pages/demo-5.md +7 -0
- data/_pages/demo-6.md +7 -0
- data/_pages/demo-7.md +7 -0
- data/_pages/demo-8.md +7 -0
- data/_pages/demo-9.md +7 -0
- data/_pages/demo.md +7 -0
- data/_sass/quiet_comic.scss +48 -0
- data/_sass/quiet_comic/base.scss +97 -0
- data/_sass/quiet_comic/components.scss +226 -0
- data/_sass/quiet_comic/grid.scss +420 -0
- data/_sass/quiet_comic/mixins.scss +37 -0
- data/_sass/quiet_comic/syntax_highlighting.scss +136 -0
- data/artworks_feed.xml +6 -0
- data/assets/fonts/GloriaHallelujah.ttf +0 -0
- data/assets/fonts/PermanentMarker.ttf +0 -0
- data/assets/images/artworks/krita.jpg +0 -0
- data/assets/images/da-icon.svg +51 -0
- data/assets/images/fb-icon.svg +1 -0
- data/assets/images/feed-icon.svg +1 -0
- data/assets/images/github-icon.svg +68 -0
- data/assets/images/instagram-icon.svg +1 -0
- data/assets/images/pages/placeholder-page.jpg +0 -0
- data/assets/images/placeholder-brand-image.png +0 -0
- data/assets/images/twitter-icon.svg +1 -0
- data/assets/images/youtube-icon.svg +1 -0
- data/assets/main.scss +6 -0
- data/pages_feed.xml +6 -0
- metadata +229 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: eabe6236b5c7862fc79efe56bd0f4700c99a0760
|
4
|
+
data.tar.gz: c1ccf6c90b2f96f948122537117eebde1f1d947c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1176c6d72c5e08b961d47c3ee42f9993803f57281cede3660c41895f7e4487f0cebade5aaca47792ebb97a72a3ac8992e244b0b85a6b9fc9de4a37e469346661
|
7
|
+
data.tar.gz: b23490c3a7e6056c2157fa13ab88464caeefc2d4f1f9aecaf59962379057aeb3e27301b1ccc2f788dae6904f30ee69a500f02b4f968059b1d1f0903dd8d2931e
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 tjjjwxzq
|
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,198 @@
|
|
1
|
+
# Quiet Comic
|
2
|
+
|
3
|
+
A simple webcomic theme with pagination support for your comic pages and any related art.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your Jekyll site's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem "quiet-comic"
|
11
|
+
```
|
12
|
+
|
13
|
+
Then copy the [theme's default `_config.yml`](https://github.com/tjjjwxzq/quiet-comic/blob/master/_config.yml) into your Jekyll site's `_config.yml`, and then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install quiet-comic
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
### Getting Started
|
24
|
+
|
25
|
+
#### Base Config
|
26
|
+
If you haven't already, copy the [theme's default `_config.yml`](https://github.com/tjjjwxzq/quiet-comic/blob/master/_config.yml) into your Jekyll site's `_config.yml`.
|
27
|
+
|
28
|
+
#### Collection folders
|
29
|
+
Next, you'll need create a `_pages` and `_artworks` folder for your collection of comic pages and related artworks. You can copy the `_artworks` and `_pages` folder from the theme's source (it comes with some demo content). To locate where the theme gem is installed on your system, you can do
|
30
|
+
|
31
|
+
```bash
|
32
|
+
bundle show quiet-comic
|
33
|
+
```
|
34
|
+
|
35
|
+
in your project directory.
|
36
|
+
|
37
|
+
If you run your website now you should be able to visit all the basic pages without any 404 errors.
|
38
|
+
|
39
|
+
#### Image Thumbnails
|
40
|
+
The asset files (images, fonts, stylesheets) from the theme are included implicitly. However, at this point, you will not be able to see the thumbnail images for the pages and the artworks (if you visit the `/pages` and `/artworks` page). The reason is that this theme uses `jekyll-minimagick` to generate thumbnails, but `jekyll-minimagick` only searches the `assets` directory of *your* project directory to generate the thumbnails, not the gem theme's.
|
41
|
+
|
42
|
+
So for the thumbnails to show up properly, you should create an `assets/images/artworks` and `assets/images/pages` directory, and put in your desired images. (Again, you can copy the demo images from the gem source).
|
43
|
+
|
44
|
+
#### Feed templates
|
45
|
+
Unfortunately there is as yet no way to implicitly include files from gem-based themes other than the `_layouts`, `_includes`, `_sass` and `assets` directories (and thus also no way to update them cleanly through the gem system). So you have to do some manual work to set up feeds for your comic pages and artworks.
|
46
|
+
|
47
|
+
Just copy the [theme's `pages_feed.xml`](https://github.com/tjjjwxzq/quiet-comic/blob/master/pages_feed.xml) into a `pages_feed.xml` file in your root directory, the [theme's `artworks_feed.xml`](https://github.com/tjjjwxzq/quiet-comic/blob/master/artworks_feed.xml) into a `artworks_feed.xml` file in your root directory, and the [theme's `combined_feed.xml`](https://github.com/tjjjwxzq/quiet-comic/blob/master/combined_feed.xml) into a `combined_feed.xml` file in your root directory. Then jekyll should generate all the feed files correctly, and include their links in your site `<head></head>`.
|
48
|
+
|
49
|
+
### Configuration
|
50
|
+
Please copy and paste the [theme's default `_config.yml` file](https://github.com/tjjjwxzq/quiet-comic/blob/master/_config.yml) into your own and customize any of the variables you wish.
|
51
|
+
|
52
|
+
### Layouts
|
53
|
+
|
54
|
+
The layouts are:
|
55
|
+
|
56
|
+
- `default.html` - base layout for all layouts. Sets the doctype, `<head>` element, and a header include.
|
57
|
+
- `home.html` - landing page with a full screen div for your beautiful cover art
|
58
|
+
- `page.html` - a single comic page
|
59
|
+
- `artwork.html` - a single artwork page
|
60
|
+
- `autopage_collection.html` - this is used by the AutoPages feature of the `jekyll-paginate-v2` gem to generate a paginated index for comic pages as well as artworks (or any collections you care to add to your website)
|
61
|
+
- `post.html` - a very minimal layout for blog posts. If you really want proper blog posts on your website, make sure to override and style this layout properly (blog posts are not the focus of this theme, however - jekyll just provides this functionality by default)
|
62
|
+
|
63
|
+
To override these layouts, create a `_layouts` directory and a new file with the name corresponding to the layout you want to override (eg. `_layouts/home.html`).
|
64
|
+
|
65
|
+
### Includes
|
66
|
+
- `head.html` - defines the `<head></head>` tag used in the `default` layout
|
67
|
+
- `seo.html` - bunch of tags for SEO included in `head.html`
|
68
|
+
- `header.html` - defines the site's main header with a responsive navbar
|
69
|
+
- `footer.html` - site's footer with author bio and social media links (links will show up only if you specify a link to your social media sites in `_config.yml`)
|
70
|
+
- `google-analytics` - code analytics inserted in the `default` layout (only active in production)
|
71
|
+
- `comments` - code for facebook comment box
|
72
|
+
- `facebook_javascript_sdk.html` - code for including the Facebook Javascript SDK in the `default` layout
|
73
|
+
- `collection_feed.xml` - used to generate an Atom feed for each of your collections. You need to create a `<collection>_feed.xml` in your root folder for the feed file to be generated
|
74
|
+
|
75
|
+
### Sass
|
76
|
+
To override the Sass in this theme, create a `_sass` directory and add your desired sass files. Then, create a `assets/main.scss` file and import your files as well as the theme's stylesheet:
|
77
|
+
|
78
|
+
```scss
|
79
|
+
@import 'myfile';
|
80
|
+
\\ ... import your sass files above to override theme defaults
|
81
|
+
@import 'quiet-comic';
|
82
|
+
```
|
83
|
+
|
84
|
+
### Collections
|
85
|
+
|
86
|
+
#### Pages
|
87
|
+
You should at minimum include the following font matter in your page:
|
88
|
+
|
89
|
+
```
|
90
|
+
---
|
91
|
+
page_number: 1
|
92
|
+
image: 'path/to/comic/strip/image'
|
93
|
+
---
|
94
|
+
```
|
95
|
+
|
96
|
+
Your pages will be sorted on the `page_number` variable so it must be included.
|
97
|
+
|
98
|
+
The `page_number` will be displayed on the page itself, and, depending on your config, in the pages index on the thumbnail for that page (see how to generate your thumbnail images [here](#thumbnails)).
|
99
|
+
|
100
|
+
The `image` should be the path to the comic strip file itself, relative to the base image directory. The base image directory for comic pages is `<base_image_dir>/pages`. Since the default base image directory is `assets/images`, this will be `assets/images/pages`. If you would like to change the base directory name, you can set the following in your config:
|
101
|
+
|
102
|
+
```yaml
|
103
|
+
base_image_dir: '/new/path/to/images/directory'
|
104
|
+
```
|
105
|
+
|
106
|
+
You can optionally include a `title`, `date` key (it's recommended), and this will be displayed on the page alongside the `page_number`.
|
107
|
+
|
108
|
+
You can specify whether you want the thumbnail label to show the `page_number` or the `title` by setting the following key in your `_config.yml` (`page_number` is the default):
|
109
|
+
|
110
|
+
```yaml
|
111
|
+
thumbnail_label: "page_number" # or "title"
|
112
|
+
```
|
113
|
+
|
114
|
+
Likewise, you can specify whether the feed `<title></title>` tag in each feed `<entry>` should show the `page_number` or the `title` by setting the following in your `_config.yml` (`page_number` is the default):
|
115
|
+
|
116
|
+
```yaml
|
117
|
+
feed_label: "page_number" # or title
|
118
|
+
```
|
119
|
+
|
120
|
+
Note that if you don't have a `title` key specified in your frontmatter, the `page.title` variable defaults to the name of your file (which may or may not be what you expect).
|
121
|
+
|
122
|
+
##### Chapters
|
123
|
+
|
124
|
+
#### Artworks
|
125
|
+
Your frontmatter should at minimum include:
|
126
|
+
|
127
|
+
```
|
128
|
+
---
|
129
|
+
title: Some title
|
130
|
+
date: YYYY-MM-DD
|
131
|
+
image: "path/to/image/file"
|
132
|
+
---
|
133
|
+
```
|
134
|
+
|
135
|
+
The date is required to sort your artworks in chronological order (when displayed in the gallery page as well as in the feed). Note that it must be written in the `YYYY-MM-DD` ISO 8601 format for it to be recognized as a `Date` by Jekyll (or it will end up a string and sorting won't work as expected).
|
136
|
+
|
137
|
+
The `image` should be the path to the artwork file itself, relative to the base image directory. The base image directory for artworks is `<base_image_dir>/artworks`. Since the default base image directory is `assets/images`, this will be `assets/images/pages`. If you would like to change the directory name, you can set the following in your config:
|
138
|
+
|
139
|
+
```yaml
|
140
|
+
base_image_dir: '/new/path/to/images/directory'
|
141
|
+
```
|
142
|
+
|
143
|
+
### <a name="thumbnails">Thumbnails</a>
|
144
|
+
|
145
|
+
This theme uses the `jekyll-minimagick` gem to automatically generate thumbnails for your comics or artworks based on your supplied configuration. By default you should put your comic page images into `assets/images/pages` and your artwork images into `assets/images/artworks`, and the thumbnails will be generated in the `assets/images/pages/thumbnails` and `assets/images/artworks/thumbnails` directories respectively. If you would like to change the default config, you can edit the `mini_magick` key in `_config.yml`:
|
146
|
+
|
147
|
+
```yaml
|
148
|
+
# jekyll-minimagick config
|
149
|
+
mini_magick:
|
150
|
+
pages_thumbnails:
|
151
|
+
source: "assets/images/pages"
|
152
|
+
destination: "assets/images/pages/thumbnails"
|
153
|
+
crop: "300x300+0+0"
|
154
|
+
artworks_thumbnails:
|
155
|
+
source: "assets/images/artworks"
|
156
|
+
destination: "assets/images/artworks/thumbnails"
|
157
|
+
crop: "300x300+0+0"
|
158
|
+
```
|
159
|
+
|
160
|
+
(For the `crop` option, the value must be of the form `width x height + x-offset + y-offset`. The offsets are mandatory, or minimagick will throw an error)
|
161
|
+
|
162
|
+
Note that if you change the source directories, you should also make the relevant changes to the `base_image_dir`.
|
163
|
+
|
164
|
+
### Feed
|
165
|
+
This theme uses the `jekyll-feed` gem to generate an Atom feed for your posts (`feed.xml`) (if you are running a blog alongside your web comic). However this gem does not support feed for collections.
|
166
|
+
|
167
|
+
This theme will create a feed for your comic pages (`pages_feed.xml`), artwork (`artwork_feed.xml`) and a combined feed for both (`combined_feed.xml`). The feed will sort your comic pages according to `page_number`, and your artworks according to `date` (so ensure that those variables are set in your frontmatter).
|
168
|
+
|
169
|
+
### Syntax Highlighting
|
170
|
+
This theme uses [rouge](https://github.com/jneen/rouge) for syntax highlighting (which is Jekyll's default highlighter). The syntax highlighting stylsheet uses the Zenburn theme. To override the theme, create a `_sass/syntax_highlighting.scss` file, put in your desired styles, and import it before the `quiet_comic` stylesheet in `assets/main.scss`. You can find other syntax highlighting styles here: [http://jwarby.github.io/jekyll-pygments-themes/languages/javascript.html](http://jwarby.github.io/jekyll-pygments-themes/languages/javascript.html).
|
171
|
+
|
172
|
+
### SEO
|
173
|
+
A set of meta tags for SEO are included in `<head></head>`. To see what's included, check out the source file `_includes/seo.html` (Do `bundle open quiet-comic` to open the gem source). Config that affects the output of these SEO tags can be found in `_config.yml`.
|
174
|
+
|
175
|
+
## Contributing
|
176
|
+
|
177
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. 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.
|
178
|
+
|
179
|
+
## Development
|
180
|
+
|
181
|
+
To set up your environment to develop this theme, run `bundle install`.
|
182
|
+
|
183
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
184
|
+
|
185
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
186
|
+
To add a custom directory to your theme-gem, please edit the regexp in `quiet-comic.gemspec` accordingly.
|
187
|
+
|
188
|
+
### TODO
|
189
|
+
1. Figure out image thumbnails in feed
|
190
|
+
3. Test-run the theme and check which should be spec files
|
191
|
+
5. Home page illustration and six simple comic pages
|
192
|
+
6. One simple artwork
|
193
|
+
7. Support grouping pages into chapters
|
194
|
+
8. Write a setup script
|
195
|
+
|
196
|
+
## License
|
197
|
+
|
198
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_artworks/demo-0.md
ADDED
data/_artworks/demo-1.md
ADDED
data/_artworks/demo-2.md
ADDED
data/_artworks/demo-3.md
ADDED
data/_artworks/demo-4.md
ADDED
data/_artworks/demo-5.md
ADDED
data/_artworks/demo-6.md
ADDED
data/_artworks/demo-7.md
ADDED
data/_artworks/demo-8.md
ADDED
data/_artworks/demo-9.md
ADDED
data/_artworks/demo.md
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<feed xmlns="http://www.w3.org/2005/Atom">
|
3
|
+
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
|
4
|
+
<link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
|
5
|
+
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" />
|
6
|
+
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
7
|
+
<id>{{ '/' | absolute_url | xml_escape }}</id>
|
8
|
+
|
9
|
+
{% if site.title %}
|
10
|
+
<title type="html">{{ site.title | smartify | xml_escape }}</title>
|
11
|
+
{% elsif site.name %}
|
12
|
+
<title type="html">{{ site.name | smartify | xml_escape }}</title>
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
{% if site.description %}
|
16
|
+
<subtitle>{{ site.description | xml_escape }}</subtitle>
|
17
|
+
{% endif %}
|
18
|
+
|
19
|
+
{% if site.author %}
|
20
|
+
<author>
|
21
|
+
<name>{{ site.author.name | default: site.author | xml_escape }}</name>
|
22
|
+
{% if site.author.email %}
|
23
|
+
<email>{{ site.author.email | xml_escape }}</email>
|
24
|
+
{% endif %}
|
25
|
+
{% if site.author.uri %}
|
26
|
+
<uri>{{ site.author.uri | xml_escape }}</uri>
|
27
|
+
{% endif %}
|
28
|
+
</author>
|
29
|
+
{% endif %}
|
30
|
+
|
31
|
+
{% assign collection_name = page.collection %}
|
32
|
+
{% case collection_name %}
|
33
|
+
{% when "pages" %}
|
34
|
+
{% assign items = (site[collection_name] | sort: 'page_number' | reverse) %}
|
35
|
+
{% when "artworks" %}
|
36
|
+
{% assign items = (site[collection_name] | sort: 'date' | reverse) %}
|
37
|
+
{% else %}
|
38
|
+
{% assign pages = (site["pages"] | sort: 'page_number') %}
|
39
|
+
{% assign artworks = (site["artworks"] | sort: 'date') %}
|
40
|
+
{% assign items = (pages | concat: artworks | sort: 'date' | reverse) %}
|
41
|
+
{% endcase %}
|
42
|
+
|
43
|
+
{% for item in items limit: 10 %}
|
44
|
+
<entry>
|
45
|
+
<title>
|
46
|
+
{% case site.feed_label %}
|
47
|
+
{% when 'page_number' %}
|
48
|
+
{{ item.page_number | default: item.title }}
|
49
|
+
{% else %}
|
50
|
+
{{ item.title }}
|
51
|
+
{% endcase %}
|
52
|
+
</title>
|
53
|
+
<link href="{{ item.url | absolute_url }}" rel="alternate" type="text/html" title="{{ item.title | xml_escape }}" />
|
54
|
+
{% if item.date %}
|
55
|
+
<published>{{ item.date | date_to_xmlschema }}</published>
|
56
|
+
{% endif %}
|
57
|
+
<updated>{{ item.last_modified_at | default: item.date | date_to_xmlschema }}</updated>
|
58
|
+
<id>{{ item.id | absolute_url | xml_escape }}</id>
|
59
|
+
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}">
|
60
|
+
{{ item.content | strip | xml_escape }}
|
61
|
+
</content>
|
62
|
+
|
63
|
+
<author>
|
64
|
+
<name>{{ site.author.name | default: "" }}</name>
|
65
|
+
{% if site.author.email %}
|
66
|
+
<email>{{ site.author.email }}</email>
|
67
|
+
{% endif %}
|
68
|
+
{% if site.author.uri %}
|
69
|
+
<uri>{{ site.author.uri }}</uri>
|
70
|
+
{% endif %}
|
71
|
+
</author>
|
72
|
+
|
73
|
+
{% unless item.image contains "://" %}
|
74
|
+
{% assign item_image = item.image | absolute_url | xml_escape %}
|
75
|
+
{% endunless %}
|
76
|
+
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ item_image }}" />
|
77
|
+
|
78
|
+
</entry>
|
79
|
+
{% endfor %}
|
80
|
+
</feed>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<div class="comments-container">
|
2
|
+
<h4>Comments</h4>
|
3
|
+
<section
|
4
|
+
class="fb-comments"
|
5
|
+
data-href="{{ page.url | absolute_url }}"
|
6
|
+
data-mobile="true"
|
7
|
+
data-numposts="{{ site.comments.facebook.num_posts | default: 5 }}"
|
8
|
+
data-width="100%"
|
9
|
+
data-colorscheme="{{ site.comments.facebook.colorscheme | default: 'light' }}"
|
10
|
+
></section>
|
11
|
+
</div>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<div id="fb-root"></div>
|
2
|
+
<script>(function(d, s, id) {
|
3
|
+
var js, fjs = d.getElementsByTagName(s)[0];
|
4
|
+
if (d.getElementById(id)) return;
|
5
|
+
js = d.createElement(s); js.id = id;
|
6
|
+
js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.11';
|
7
|
+
fjs.parentNode.insertBefore(js, fjs);
|
8
|
+
}(document, 'script', 'facebook-jssdk'));</script>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<footer>
|
2
|
+
<div class="bio-container">
|
3
|
+
<h5>{{ site.title }}</h5>
|
4
|
+
<p><strong>{{ site.author.name }}</strong> · {{ site.author.bio }}</p>
|
5
|
+
</div>
|
6
|
+
<ul class="social-links">
|
7
|
+
{% if site.author.github %}
|
8
|
+
<li>
|
9
|
+
<a href="{{ site.author.github }}">
|
10
|
+
<img src="{{ site.base_image_dir | append: 'github-icon.svg' | relative_url }}" />
|
11
|
+
</a>
|
12
|
+
</li>
|
13
|
+
{% endif %}
|
14
|
+
{% if site.author.deviant_art %}
|
15
|
+
<li>
|
16
|
+
<a href="{{ site.author.deviant_art }}">
|
17
|
+
<img src="{{ site.base_image_dir | append: 'da-icon.svg' | relative_url}}" />
|
18
|
+
</a>
|
19
|
+
</li>
|
20
|
+
{% endif %}
|
21
|
+
{% if site.author.facebook %}
|
22
|
+
<li>
|
23
|
+
<a href="{{ site.author.facebook }}">
|
24
|
+
<img src="{{ site.base_image_dir | append: 'fb-icon.svg' | relative_url }}" />
|
25
|
+
</a>
|
26
|
+
</li>
|
27
|
+
{% endif %}
|
28
|
+
{% if site.author.instagram %}
|
29
|
+
<li>
|
30
|
+
<a href="{{ site.author.instagram }}">
|
31
|
+
<img src="{{ site.base_image_dir | append: 'instagram-icon.svg' | relative_url }}" />
|
32
|
+
</a>
|
33
|
+
</li>
|
34
|
+
{% endif %}
|
35
|
+
{% if site.author.twitter %}
|
36
|
+
<li>
|
37
|
+
<a href="{{ site.author.twitter }}">
|
38
|
+
<img src="{{ site.base_image_dir | append: 'twitter-icon.svg' | relative_url }}" />
|
39
|
+
</a>
|
40
|
+
</li>
|
41
|
+
{% endif %}
|
42
|
+
{% if site.author.youtube %}
|
43
|
+
<li>
|
44
|
+
<a href="{{ site.author.youtube }}">
|
45
|
+
<img src="{{ site.base_image_dir | append: 'youtube-icon.svg' | relative_url }}" />
|
46
|
+
</a>
|
47
|
+
</li>
|
48
|
+
{% endif %}
|
49
|
+
</ul>
|
50
|
+
</footer>
|