Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 7930c47

Browse files
committed
Added the Font Awesome 5.3.1 library to projects.
1 parent 568292b commit 7930c47

20 files changed

+4094
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ These extras are:
133133
option of inputting your Site ID at time of creating your template or, if you
134134
only create the GA tag later on, you can add the Site ID to the markup later
135135
on. If this option is unticked, no additional code is added to your markup.
136+
1. **Font Awesome:** includes the CSS and webfonts required for using the
137+
[Font Awesome][fontawesome] library in your projects. To use Font Awesome
138+
just add markup to your html like this `<i class="fa fa-star"></i>` and you
139+
will get a star icon loaded in your document. If you don't select this option
140+
then the CSS and `/webfonts/` directory are not copied over into your
141+
project.
136142

137143
### Favicons
138144

@@ -277,6 +283,7 @@ Special thanks go out to the following people and projects.
277283
- [Bootstrap][bootstrap] - for the libraries and example code that is used in
278284
this project. Without them, this project wouldn't even exist.
279285
- [Espresso][espressoapp] - for their H5BP template that this was adapted from.
286+
- [Font Awesome][fontawesome] - the the best icon font library in the world.
280287
- [humans.txt][humans] - for the `humans.txt` boilerplate file.
281288
- [robotstxt][robots] - for the `robots.txt` file.
282289
- [H5BP][h5bp] - for providing the `.htaccess` file in the extras component.
@@ -305,3 +312,4 @@ Special thanks go out to the following people and projects.
305312
[humans]: http://humanstxt.org/
306313
[robots]: http://www.robotstxt.org/
307314
[favicon]: https://realfavicongenerator.net/
315+
[fontawesome]: https://fontawesome.com/

_generator-settings.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,20 @@ <h3>Extras</h3>
157157

158158
<input type="checkbox" name="serverExtras" checked="true">
159159
<strong>Server Extras</strong>
160-
<span>Include .htaccess, robots.txt, humans.txt, etc.</span>
160+
<span>Include .htaccess, robots.txt, humans.txt, etc.?</span>
161161
<br/>
162162

163163
<input type="checkbox" name="ga" onclick="Bootstrap.toggle_gaSiteId();">
164164
<strong>Google Analytics</strong>
165165
<span>Insert markup for Site ID: <input type="text" name="ga_siteId"
166166
placeholder="UA-XXXXX-X" disabled="true"></span>
167167
<br/>
168+
169+
<input type="checkbox" name="fontAwesome">
170+
<strong>Font Awesome</strong>
171+
<span>Include Font Awesome, the world's most popular and easiest to use
172+
icon set?</span>
173+
<br/>
168174
</section>
169175
</form>
170176

_generator.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
1111
var config = generator.config || {};
1212
config.base = config.base || 'starter';
1313
config.serverExtras = !!config.serverExtras;
14+
config.fontAwesome = !!config.fontAwesome;
1415
config.ieTags = (config.ieTags === undefined) ? true : !!config.ieTags;
1516
config.ga = !!config.ga;
1617
config.ga_siteId = config.ga ? config.ga_siteId || '' : undefined;
@@ -39,6 +40,14 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
3940
]);
4041
}
4142

43+
// Exclude Fontawesome if the user doesn't select the fontAwesome option.
44+
if (!config.fontAwesome) {
45+
excludePaths = excludePaths.concat([
46+
'css/fontawesome-all.min.css',
47+
'webfonts/'
48+
]);
49+
}
50+
4251
// Don't copy over the browser-upgrade.css if user doesn't select the
4352
// ieTags option.
4453
if (!config.ieTags) {

bootstrap/css/fontawesome-all.min.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
116 KB
Binary file not shown.

bootstrap/webfonts/fa-brands-400.svg

Lines changed: 1154 additions & 0 deletions
Loading
116 KB
Binary file not shown.
74.6 KB
Binary file not shown.
63.8 KB
Binary file not shown.
39.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)