Update 05-includes.md (#8364)

Added two commas (line 19 and 60)
This commit is contained in:
Nicholas Paxford 2020-09-16 19:46:41 +02:00 committed by GitHub
parent 7e0f907c64
commit 94930c5a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ The `include` tag allows you to include content from another file stored
in an `_includes` folder. Includes are useful for having a single source for
source code that repeats around the site or for improving the readability.
Navigation source code can get complex so sometimes it's nice to move it into an
Navigation source code can get complex, so sometimes it's nice to move it into an
include.
## Include usage
@ -57,7 +57,7 @@ in your browser and try switching between the pages.
Let's take this a step further and highlight the current page in the navigation.
`_includes/navigation.html` needs to know the URL of the page it's inserted into
so it can add styling. Jekyll has useful [variables](/docs/variables/) available
so it can add styling. Jekyll has useful [variables](/docs/variables/) available,
one of which is `page.url`.
Using `page.url` you can check if each link is the current page and color it red