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

Commit

Permalink
Added the Font Awesome 5.3.1 library to projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhartman committed Sep 15, 2018
1 parent 568292b commit 7930c47
Show file tree
Hide file tree
Showing 20 changed files with 4,094 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ These extras are:
option of inputting your Site ID at time of creating your template or, if you
only create the GA tag later on, you can add the Site ID to the markup later
on. If this option is unticked, no additional code is added to your markup.
1. **Font Awesome:** includes the CSS and webfonts required for using the
[Font Awesome][fontawesome] library in your projects. To use Font Awesome
just add markup to your html like this `<i class="fa fa-star"></i>` and you
will get a star icon loaded in your document. If you don't select this option
then the CSS and `/webfonts/` directory are not copied over into your
project.

### Favicons

Expand Down Expand Up @@ -277,6 +283,7 @@ Special thanks go out to the following people and projects.
- [Bootstrap][bootstrap] - for the libraries and example code that is used in
this project. Without them, this project wouldn't even exist.
- [Espresso][espressoapp] - for their H5BP template that this was adapted from.
- [Font Awesome][fontawesome] - the the best icon font library in the world.
- [humans.txt][humans] - for the `humans.txt` boilerplate file.
- [robotstxt][robots] - for the `robots.txt` file.
- [H5BP][h5bp] - for providing the `.htaccess` file in the extras component.
Expand Down Expand Up @@ -305,3 +312,4 @@ Special thanks go out to the following people and projects.
[humans]: http://humanstxt.org/
[robots]: http://www.robotstxt.org/
[favicon]: https://realfavicongenerator.net/
[fontawesome]: https://fontawesome.com/
8 changes: 7 additions & 1 deletion _generator-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,20 @@ <h3>Extras</h3>

<input type="checkbox" name="serverExtras" checked="true">
<strong>Server Extras</strong>
<span>Include .htaccess, robots.txt, humans.txt, etc.</span>
<span>Include .htaccess, robots.txt, humans.txt, etc.?</span>
<br/>

<input type="checkbox" name="ga" onclick="Bootstrap.toggle_gaSiteId();">
<strong>Google Analytics</strong>
<span>Insert markup for Site ID: <input type="text" name="ga_siteId"
placeholder="UA-XXXXX-X" disabled="true"></span>
<br/>

<input type="checkbox" name="fontAwesome">
<strong>Font Awesome</strong>
<span>Include Font Awesome, the world's most popular and easiest to use
icon set?</span>
<br/>
</section>
</form>

Expand Down
9 changes: 9 additions & 0 deletions _generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
var config = generator.config || {};
config.base = config.base || 'starter';
config.serverExtras = !!config.serverExtras;
config.fontAwesome = !!config.fontAwesome;
config.ieTags = (config.ieTags === undefined) ? true : !!config.ieTags;
config.ga = !!config.ga;
config.ga_siteId = config.ga ? config.ga_siteId || '' : undefined;
Expand Down Expand Up @@ -39,6 +40,14 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
]);
}

// Exclude Fontawesome if the user doesn't select the fontAwesome option.
if (!config.fontAwesome) {
excludePaths = excludePaths.concat([
'css/fontawesome-all.min.css',
'webfonts/'
]);
}

// Don't copy over the browser-upgrade.css if user doesn't select the
// ieTags option.
if (!config.ieTags) {
Expand Down
5 changes: 5 additions & 0 deletions bootstrap/css/fontawesome-all.min.css

Large diffs are not rendered by default.

Binary file added bootstrap/webfonts/fa-brands-400.eot
Binary file not shown.
1,154 changes: 1,154 additions & 0 deletions bootstrap/webfonts/fa-brands-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bootstrap/webfonts/fa-brands-400.ttf
Binary file not shown.
Binary file added bootstrap/webfonts/fa-brands-400.woff
Binary file not shown.
Binary file added bootstrap/webfonts/fa-brands-400.woff2
Binary file not shown.
Binary file added bootstrap/webfonts/fa-regular-400.eot
Binary file not shown.
467 changes: 467 additions & 0 deletions bootstrap/webfonts/fa-regular-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bootstrap/webfonts/fa-regular-400.ttf
Binary file not shown.
Binary file added bootstrap/webfonts/fa-regular-400.woff
Binary file not shown.
Binary file added bootstrap/webfonts/fa-regular-400.woff2
Binary file not shown.
Binary file added bootstrap/webfonts/fa-solid-900.eot
Binary file not shown.
2,444 changes: 2,444 additions & 0 deletions bootstrap/webfonts/fa-solid-900.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bootstrap/webfonts/fa-solid-900.ttf
Binary file not shown.
Binary file added bootstrap/webfonts/fa-solid-900.woff
Binary file not shown.
Binary file added bootstrap/webfonts/fa-solid-900.woff2
Binary file not shown.
Binary file modified docs/images/extras.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7930c47

Please sign in to comment.