Skip to content

Commit 717d2f4

Browse files
committed
Cleaned up FontAwesome plugin, more documentation added to README.md
1 parent be4b79a commit 717d2f4

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ These variables can be configured in a variety of ways - please consult the [Net
5050

5151
The [JSON-LD Structured Data](https://developers.google.com/search/docs/guides/intro-structured-data) can be updated by modifying the `jsonld()` function in the `layouts/default.vue` file. This feature shouldn't be used anywhere else - one `JSON-LD` snippet should describe the entire site.
5252

53+
#### Bootstrap + SASS Configuration
54+
55+
You can modify the `assets/sass/main.sass` file to optionally include Bootstrap component styles as-needed. **PROTIP** - only include the Bootstrap components your app depends on - this will keep your CSS bundle nice and slim :)
56+
57+
#### FontAwesome Vue Configuration
58+
59+
The repo includes a minimal subset of icons by default. When you need an additional icon, you must import it directly in `plugins/fontawesome.js` and register it with the FontAwesome plugin. You can learn more about the Vue-FontAwesome library [here](https://github.com/FortAwesome/vue-fontawesome).
60+
5361
#### References
5462
- [Vue.js](https://vuejs.org)
5563
- [Nuxt.js](https://nuxtjs.org)

pages/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<p class="lead mb-0 mt-2">
117117
<span>Built with </span>
118118
<font-awesome-icon icon="heart" class="text-danger" />
119-
<span class="px-1">by</span>
119+
<span>by</span>
120120
<a href="https://github.com/aeksco" target="_blank">@aeksco</a>
121121
</p>
122122

plugins/fontawesome.js

+1-11
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@ import { library, config } from '@fortawesome/fontawesome-svg-core'
33
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
44
import { faTwitter, faGithub } from '@fortawesome/free-brands-svg-icons'
55
import {
6-
faBook,
7-
faDollarSign,
8-
faDraftingCompass,
96
faHeart,
10-
faInfoCircle,
117
faQuestionCircle,
12-
faSpinner,
13-
faTimes
8+
faSpinner
149
} from '@fortawesome/free-solid-svg-icons'
1510

1611
// This is important, we are going to let Nuxt.js worry about the CSS
@@ -21,14 +16,9 @@ config.autoAddCss = false
2116
// Doc: https://github.com/FortAwesome/vue-fontawesome
2217

2318
// FontAwesome Core Icons
24-
library.add(faBook)
25-
library.add(faDollarSign)
26-
library.add(faDraftingCompass)
2719
library.add(faHeart)
28-
library.add(faInfoCircle)
2920
library.add(faQuestionCircle)
3021
library.add(faSpinner)
31-
library.add(faTimes)
3222

3323
// FontAwesome Brand Icons
3424
library.add(faTwitter)

0 commit comments

Comments
 (0)