jekyll-favicon 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +3 -3
- data/README.md +15 -9
- data/lib/jekyll/favicon/config/defaults.yml +2 -2
- data/lib/jekyll/favicon/generator.rb +10 -0
- data/lib/jekyll/favicon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 218508fbabc682014853065308c51db130593dfb
|
4
|
+
data.tar.gz: 356462e4cfb0b8b6532613c0972fd11a8a4363b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44505c0684395214fb9ba940ef4a033b53aaf3419c9ff99f2d25be7119eea6755fd9e0fa815137c34c99fab6deee361af0a4c9f28b018b358fc2576d94c727a0
|
7
|
+
data.tar.gz: 2dea6475eabf7a4e44efed4f56ed1c25063aa723997fe4acf39c50b5141b40843dc9e7ffcae808a5802e260ac3747d84056506fec4efd3967e494d8a9caae193
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.2.7] - 2019-05-27
|
10
|
+
### Fixed
|
11
|
+
- Set default background back to none
|
12
|
+
- Restore safari-pinned-tab
|
13
|
+
### Changed
|
14
|
+
- Update README outdated stuff
|
15
|
+
- Correct typos on README
|
16
|
+
|
9
17
|
## [0.2.6] - 2019-03-23
|
10
18
|
### Added
|
11
19
|
- Readme troubleshooting for librsvg2-bin package missing
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jekyll-favicon (0.2.
|
4
|
+
jekyll-favicon (0.2.7)
|
5
5
|
jekyll (~> 3.0)
|
6
6
|
mini_magick (~> 4.5)
|
7
7
|
|
@@ -17,7 +17,7 @@ GEM
|
|
17
17
|
eventmachine (>= 0.12.9)
|
18
18
|
http_parser.rb (~> 0.6.0)
|
19
19
|
eventmachine (1.2.7)
|
20
|
-
ffi (1.
|
20
|
+
ffi (1.11.1)
|
21
21
|
forwardable-extended (2.6.0)
|
22
22
|
http_parser.rb (0.6.0)
|
23
23
|
i18n (0.9.5)
|
@@ -74,7 +74,7 @@ GEM
|
|
74
74
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
75
75
|
ruby-progressbar (1.10.0)
|
76
76
|
safe_yaml (1.0.5)
|
77
|
-
sass (3.7.
|
77
|
+
sass (3.7.4)
|
78
78
|
sass-listen (~> 4.0.0)
|
79
79
|
sass-listen (4.0.0)
|
80
80
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
data/README.md
CHANGED
@@ -17,11 +17,17 @@ Check if it is already installed by running:
|
|
17
17
|
|
18
18
|
```sh
|
19
19
|
$ convert --version
|
20
|
-
Version: ImageMagick 7.0.
|
21
|
-
Copyright: © 1999-
|
22
|
-
License:
|
23
|
-
Features: Cipher DPC HDRI Modules
|
24
|
-
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
|
20
|
+
Version: ImageMagick 7.0.8-46 Q16 x86_64 2019-05-19 https://imagemagick.org
|
21
|
+
Copyright: © 1999-2019 ImageMagick Studio LLC
|
22
|
+
License: https://imagemagick.org/script/license.php
|
23
|
+
Features: Cipher DPC HDRI Modules OpenMP(3.1)
|
24
|
+
Delegates (built-in): bzlib freetype heic jng jp2 jpeg lcms ltdl lzma openexr png tiff webp xml zlib
|
25
|
+
```
|
26
|
+
|
27
|
+
If you have a [problem converting SVG files](https://github.com/afaundez/jekyll-favicon/issues/9#issuecomment-473862194), you may need to install the package `librsvg2-bin`. For example, in Ubuntu/Debian systems:
|
28
|
+
|
29
|
+
```sh
|
30
|
+
sudo apt install librsvg2-bin
|
25
31
|
```
|
26
32
|
|
27
33
|
If you have a [problem converting SVG files](https://github.com/afaundez/jekyll-favicon/issues/9#issuecomment-473862194), you may need to install the package `librsvg2-bin`. For example, in Ubuntu/Debian systems:
|
@@ -35,20 +41,20 @@ sudo apt install librsvg2-bin
|
|
35
41
|
Add this line to your application's Gemfile:
|
36
42
|
|
37
43
|
```ruby
|
38
|
-
gem 'jekyll-favicon', '~> 0.2.
|
44
|
+
gem 'jekyll-favicon', '~> 0.2.7', group: :jekyll_plugins
|
39
45
|
```
|
40
46
|
|
41
47
|
## Usage
|
42
48
|
|
43
|
-
If you are going to use this plugin in a hosted build/service, be sure that they include your plugins as part of the process. You can check [running example](https://afaundez.gitlab.io/jekyll-favicon-example/) hosted by [GitLab](https://about.gitlab.com/features/pages/).
|
49
|
+
If you are going to use this plugin in a hosted build/service, be sure that they include your plugins as part of the process. You can check [this running example](https://afaundez.gitlab.io/jekyll-favicon-example/) hosted by [GitLab](https://about.gitlab.com/features/pages/).
|
44
50
|
|
45
51
|
As [Github Pages](https://pages.github.com) build doesn't load custom plugins, this plugin won't work. As an alternative, you can build your site and push all files (for example, build to `docs`, version it and push it, although this works only for project pages).
|
46
52
|
|
47
53
|
### Generator
|
48
54
|
|
49
|
-
By installing the plugin, it will be automatically
|
55
|
+
By installing the plugin, it will be automatically activated. It will search for the file `/favicon.svg` and generate a set of files in `/assets/images` and few more items at the site's root. It also will exclude the original sources from being copied as a regular static file.
|
50
56
|
|
51
|
-
You can override
|
57
|
+
You can override these settings in your sites's `_config.yml`:
|
52
58
|
|
53
59
|
```yaml
|
54
60
|
favicon:
|
@@ -46,6 +46,7 @@ module Jekyll
|
|
46
46
|
def generate_icons
|
47
47
|
@site.static_files.push ico_icon
|
48
48
|
@site.static_files.push(*png_icons)
|
49
|
+
@site.static_files.push(*svg_icons)
|
49
50
|
end
|
50
51
|
|
51
52
|
def ico_icon
|
@@ -60,6 +61,15 @@ module Jekyll
|
|
60
61
|
end
|
61
62
|
end
|
62
63
|
|
64
|
+
def svg_icons
|
65
|
+
return [] unless Favicon.config['source'].svg?
|
66
|
+
source = Favicon.config['source']
|
67
|
+
%w[safari-pinned-tab.svg].collect do |name|
|
68
|
+
target = File.join Favicon.config['path'], name
|
69
|
+
Icon.new @site, source, source_path(source), target
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
63
73
|
def generate_metadata
|
64
74
|
@site.pages.push metadata Browserconfig.new,
|
65
75
|
Favicon.config['ie']['browserconfig']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-favicon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alvaro Faundez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|