mirror of https://github.com/luizdepra/hugo-coder.git

Simon Hollingshead
30.59.2024 444d2847a59e13b4ea0529177fe9e62e0afa481d
refs
author Simon Hollingshead <me@simonhollingshead.com>
Tuesday, January 30, 2024 00:59 +0100
committer GitHub <noreply@github.com>
Tuesday, January 30, 2024 00:59 +0100
commit444d2847a59e13b4ea0529177fe9e62e0afa481d
tree 59d1708f9c5f7ef887dd946eb02d74c5c29a7f36 tree | zip | gz
parent fda946e483f7a6ef9d50a64a4252d4e4370e0f71 view | diff
Swap from ForkAwesome 1.2.0 to FontAwesome 6.5.1. (#882)

### Prerequisites

Put an `x` into the box(es) that apply:

- [x] This pull request fixes a bug.
- [x] This pull request adds a feature.
- [x] This pull request introduces breaking change.

### Description

This change allows FontAwesome 6.5.1 to be used as a drop-in replacement
for ForkAwesome 1.2.0.

The easiest way to see that my change has worked practically-invisibly
is that the home page of the demo site now shows Medium with its new
three-circular-blobs logo instead of the old capital-M logo, despite the
fact I have not changed anything about the hugo configuration for the
demo site.

Points of note here:

- Using FontAwesome in SCSS is different. Therefore the ONLY breaking
change here is for people who have made changes to the theme and written
"@include fa-icon" in their SCSS. Everything that can happen in content
(e.g. class names) are translated by the v4-shims.
- All files here are from https://fontawesome.com/download ('Free for
Web').
- The contents of the /scss folder are in assets/scss/font-awesome.
- The contents of /webfonts are in static/fonts (except
fa-v4compatibility because that's not needed - v4-shims does all the
work we need).
- /LICENSE.txt is added to both directories to ensure it is clear both
are part of the FA-licensed code.
- In ForkAwesome, the path to the font was constructed in _path.css
suffixing $fa-version, so the preload needed to have the version at the
end. Since the default behaviour of FontAwesome is to not include a
version suffix, the preloads no longer have one either. This is a
necessary change because the HTML spec (section 4.6.6.19) explicitly
says that the entire URL [i.e. including query and fragment] is in the
key used to determine whether an element in the preload cache can be
consumed.

### Issues Resolved

#858

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [x] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

- [x] If you have changed any SCSS code, run `make release` to
regenerate all CSS files

#### Contributors

- [x] Add yourself to `CONTRIBUTORS.md` if you aren't on it already

Co-authored-by: Luiz F. A. de PrĂ¡ <luizdepra@users.noreply.github.com>
19 files deleted
30 files added
1 files renamed
7 files modified
25548 ■■■■ changed files
assets/scss/_content.scss 3 ●●●● diff | view | raw | blame | history
assets/scss/_variables.scss 3 ●●●●● diff | view | raw | blame | history
assets/scss/coder.scss 6 ●●●● diff | view | raw | blame | history
assets/scss/font-awesome/LICENSE.txt 165 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_animated.scss 153 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_bordered-pulled.scss 20 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_core.scss 43 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_fixed-width.scss 5 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_functions.scss 57 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_icons.scss 10 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_list.scss 18 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_mixins.scss 75 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_rotated-flipped.scss 31 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_screen-reader.scss 14 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_shims.scss 2042 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_sizing.scss 16 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_stacked.scss 32 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/_variables.scss 4993 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/brands.scss 30 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/fontawesome.scss 21 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/regular.scss 26 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/solid.scss 26 ●●●●● diff | view | raw | blame | history
assets/scss/font-awesome/v4-shims.scss 11 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_animated.scss 34 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_bordered-pulled.scss 25 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_core.scss 12 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_functions.scss 11 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_icons.scss 934 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_larger.scss 13 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_list.scss 19 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_mixins.scss 60 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_path.scss 16 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_rotated-flipped.scss 20 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_screen-reader.scss 5 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_stacked.scss 20 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/_variables.scss 945 ●●●●● diff | view | raw | blame | history
assets/scss/fork-awesome/fork-awesome.scss 28 ●●●●● diff | view | raw | blame | history
docs/configurations.md 2 ●●● diff | view | raw | blame | history
layouts/partials/head/theme-styles.html 4 ●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder-dark.scss_70f8a07cb8b7568202eb18ce456ff884.content 835 ●●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder-dark.scss_70f8a07cb8b7568202eb18ce456ff884.json 1 ●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder.scss_38b4d05915c0483e6cb106e4f0efccbc.content 17 ●●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder.scss_38b4d05915c0483e6cb106e4f0efccbc.json 2 ●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder.scss_d9b60ee5c2bc7799a5af2e1647965a29.content 11347 ●●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder.scss_d9b60ee5c2bc7799a5af2e1647965a29.json 1 ●●●● diff | view | raw | blame | history
static/fonts/LICENSE.txt 165 ●●●●● diff | view | raw | blame | history
static/fonts/fa-brands-400.ttf diff | view | raw | blame | history
static/fonts/fa-brands-400.woff2 diff | view | raw | blame | history
static/fonts/fa-regular-400.ttf diff | view | raw | blame | history
static/fonts/fa-regular-400.woff2 diff | view | raw | blame | history
static/fonts/fa-solid-900.ttf diff | view | raw | blame | history
static/fonts/fa-solid-900.woff2 diff | view | raw | blame | history
static/fonts/forkawesome-webfont.eot diff | view | raw | blame | history
static/fonts/forkawesome-webfont.svg 3232 ●●●●● diff | view | raw | blame | history
static/fonts/forkawesome-webfont.ttf diff | view | raw | blame | history
static/fonts/forkawesome-webfont.woff diff | view | raw | blame | history
static/fonts/forkawesome-webfont.woff2 diff | view | raw | blame | history