Skip to content

Commit

Permalink
improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejas2805 committed Mar 4, 2020
1 parent d5b928e commit 9720d63
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/userGuide/syntax/pageHead.mbdf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Steps:
{{ icon_example }} Suppose you want to insert the code below into the `<head>` of a page, and you have saved the code as **`_markbind/head/`**`myCustomLinks.md`:

```html{.no-line-numbers}
<script src="`{{ baseUrl }}`/js/myCustomScript.js"></script>
<link rel="stylesheet" href="`{{ baseUrl }}`/css/main.css">
<link rel="stylesheet" href="`{{ baseUrl }}`/css/extra.css">
<script src="{{ baseUrl }}/js/myCustomScript.js"></script>
<link rel="stylesheet" href="{{ baseUrl }}/css/main.css">
<link rel="stylesheet" href="{{ baseUrl }}/css/extra.css">
```

To specify that you want to insert `myCustomLinks.md` into the `<head>` of `myPage.html`, update the front matter of the `myPage.md` as follows:
Expand All @@ -32,13 +32,15 @@ To specify that you want to insert `myCustomLinks.md` into the `<head>` of `myPa

{{ icon_example }} Here's how you can force the line `<script ... > ... </script>` to be inserted at the top of the `<head>` section.

```html {.no-line-numbers} {highlight-lines="1,3"}
````{.no-line-numbers}
```html {highlight-lines="1,3"}
<head-top>
<script src="`{{ baseUrl }}`/js/myCustomScript.js"></script>
<script src="{{ baseUrl }}/js/myCustomScript.js"></script>
</head-top>
<link rel="stylesheet" href="`{{ baseUrl }}`/css/main.css">
<link rel="stylesheet" href="`{{ baseUrl }}`/css/extra.css">
<link rel="stylesheet" href="{{ baseUrl }}/css/main.css">
<link rel="stylesheet" href="{{ baseUrl }}/css/extra.css">
```
````

</div>

Expand Down

0 comments on commit 9720d63

Please sign in to comment.