jekyll-generate-favicons 0.0.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/README.md +21 -0
- data/lib/jekyll-generate-favicons/utils.rb +18 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 819978236e1526554bafa64c705483b2229ba1b7855182e0fb6a8ebbfbd512b6
|
4
|
+
data.tar.gz: 4c758a4ac31274ddd891c752126d9772d04937ab3c8ca896a9c852c97c5af4aa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 92ea637e28da4e072cd2d67223907e3a9ece04dec9b78407f022072f9bfefc5fd02318093f11be3fa0eb8748abf63e046f1390b64062ced29665e64f98c6fa6a
|
7
|
+
data.tar.gz: 6f4a6d040343afa20ac910c1571f2086d37dc6b8f2e32c8312f30e494cb23b71e8c959bb33a9cbc7adae610cffd17616d5596f4c2dd905cf9e4ffdbdcec871bb
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Jekyll Generate Favicons
|
2
|
+
|
3
|
+
Want to keep your repository free from unnecessary amounts of assets?
|
4
|
+
USe this simple Jekyll plugin that generates common favicon formats from SVG files with ImageMagick.
|
5
|
+
|
6
|
+
Define an `icon` and/or `apple_touch_icon` in your `_config.yml` to enable auto generation.
|
7
|
+
|
8
|
+
icon: favicon.svg
|
9
|
+
apple_touch_icon: apple-touch-icon.svg
|
10
|
+
|
11
|
+
Will search directly for the file or look it up in `assets/img`
|
12
|
+
|
13
|
+
Include the generated files with a `favicons` tag in your html `{% raw %}<head>{% endraw %}`:
|
14
|
+
|
15
|
+
{% favicons %}
|
16
|
+
|
17
|
+
### License
|
18
|
+
|
19
|
+
The repository is licensed under the [A-GPL 3.0](https://www.gnu.org/licenses/agpl-3.0.html) license.
|
20
|
+
|
21
|
+
The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Jekyll
|
2
|
+
module GenerateFavicons
|
3
|
+
def find_icon_file(site, file)
|
4
|
+
# extension = File.extname(src_file)
|
5
|
+
# basename = File.basename(src_file, extension)
|
6
|
+
try_file = File.join(site.source, file)
|
7
|
+
if File.file?(try_file)
|
8
|
+
return file, try_file
|
9
|
+
end
|
10
|
+
guess = File.join(site.source, "assets", "img", file)
|
11
|
+
if File.file?(guess)
|
12
|
+
return File.join("assets", "img", file), guess
|
13
|
+
end
|
14
|
+
throw "Could not find file #{file}"
|
15
|
+
end
|
16
|
+
module_function :find_icon_file
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-generate-favicons
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Markus Sosnowski
|
8
|
+
bindir: bin
|
9
|
+
cert_chain: []
|
10
|
+
date: 2025-02-24 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: jekyll
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '4.0'
|
19
|
+
- - "<"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '5.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '4.0'
|
29
|
+
- - "<"
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '5.0'
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: bundler
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - "~>"
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '2.6'
|
39
|
+
type: :development
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - "~>"
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '2.6'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: minitest
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '5.0'
|
53
|
+
type: :development
|
54
|
+
prerelease: false
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '5.0'
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: rubocop-jekyll
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 0.14.0
|
67
|
+
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 0.14.0
|
74
|
+
executables: []
|
75
|
+
extensions: []
|
76
|
+
extra_rdoc_files: []
|
77
|
+
files:
|
78
|
+
- README.md
|
79
|
+
- lib/jekyll-generate-favicons/utils.rb
|
80
|
+
homepage: https://github.com/syncall/jekyll-generate-favicons
|
81
|
+
licenses:
|
82
|
+
- AGPL-3.0-only
|
83
|
+
metadata: {}
|
84
|
+
rdoc_options: []
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 3.0.0
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
requirements: []
|
98
|
+
rubygems_version: 3.6.1
|
99
|
+
specification_version: 4
|
100
|
+
summary: A small plugin that generates common favicon formats with imagemagick.
|
101
|
+
test_files: []
|