It’s okay, I have added <link href='//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css' rel='stylesheet'/> straight to the page’s .MD file and although not pretty, it saves installing a plugin.
I find it strange though that something that is so trivial in WP, seems to be so complicated with Grav (or Twig for that matter).
Arghhhh, yup got it working now too. In systems.yaml I had css_pipeline: set to true and then it doesn’t work.
I’m with you on the switching over small and medium projects to Grav! I tried the Simply Static plugin (for WP), but Grav takes things to a whole different level!
The offered solution does add the css on a per page basis. However, it prepends the called CSS to the top of the list. How can I specify it should be appended to the bottom of the css list?
For example, my base.html.twig has
x.css
y.css
When I modify a particular individual page template.html.twig to add z.css using this method, then the rendered order automatically becomes
z.css
x.css
y.css
because the Grav system by default prepends to the top of the list.
How can specify that it should instead append to bottom of the list?
RESOLVED. The answer was in the documentation link previously provided.
The solution is to specify the priority number associated with the CSS file.
Grav assigns a default priority value of 10 and prepends page-specific (or plugin-specific) CSS files to the list of all CSS files from the base.html.twig which have that default priority value of 10 (i.e., all CSS files which by default have no priority specified).
To get an individual page-specific CSS file to be listed below all those normal CSS files, explicitly set a priority value of less than 10 to that unique asset.
And, so, while all the other style sheets have no priority value specified and therefore by default get assigned 10, this one has been explicitly set to priority 5 which forces Grav to list it below all the others.
Success. I now have the required cascade for the unique page: