|
| 1 | +--- |
| 2 | +title: HUGO |
| 3 | +section: article |
| 4 | +date: 2020-01-01 |
| 5 | +authors: |
| 6 | + - name: imfing |
| 7 | + link: https://github.com/imfing |
| 8 | + image: https://github.com/imfing.png |
| 9 | + - name: Octocat |
| 10 | + link: https://github.com/octocat |
| 11 | + image: https://github.com/octocat.png |
| 12 | +tags: |
| 13 | + - Markdown |
| 14 | + - Example |
| 15 | + - Guide |
| 16 | + - featured |
| 17 | +image: /images/green.jpg |
| 18 | +series: ["WEB-DEV"] |
| 19 | +series_order: 2 |
| 20 | +excludeSearch: false |
| 21 | +chapter: 2 |
| 22 | + |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +This article offers a sample of basic Markdown syntax that can be used in Hugo content files. |
| 27 | +<!--more--> |
| 28 | + |
| 29 | +## Basic Syntax |
| 30 | + |
| 31 | +### Headings |
| 32 | + |
| 33 | +``` |
| 34 | +# Heading 1 |
| 35 | +## Heading 2 |
| 36 | +### Heading 3 |
| 37 | +#### Heading 4 |
| 38 | +##### Heading 5 |
| 39 | +###### Heading 6 |
| 40 | +``` |
| 41 | + |
| 42 | +## Heading 2 |
| 43 | +### Heading 3 |
| 44 | +#### Heading 4 |
| 45 | +##### Heading 5 |
| 46 | +###### Heading 6 |
| 47 | + |
| 48 | +### Emphasis |
| 49 | + |
| 50 | +```text |
| 51 | +*This text will be italic* |
| 52 | +_This will also be italic_ |
| 53 | +
|
| 54 | +**This text will be bold** |
| 55 | +__This will also be bold__ |
| 56 | +
|
| 57 | +_You **can** combine them_ |
| 58 | +``` |
| 59 | + |
| 60 | +*This text will be italic* |
| 61 | + |
| 62 | +_This will also be italic_ |
| 63 | + |
| 64 | +**This text will be bold** |
| 65 | + |
| 66 | +__This will also be bold__ |
| 67 | + |
| 68 | +_You **can** combine them_ |
| 69 | + |
| 70 | +### Lists |
| 71 | + |
| 72 | +#### Unordered |
| 73 | + |
| 74 | +``` |
| 75 | +* Item 1 |
| 76 | +* Item 2 |
| 77 | + * Item 2a |
| 78 | + * Item 2b |
| 79 | +``` |
| 80 | + |
| 81 | +* Item 1 |
| 82 | +* Item 2 |
| 83 | + * Item 2a |
| 84 | + * Item 2b |
| 85 | + |
| 86 | +#### Ordered |
| 87 | + |
| 88 | +``` |
| 89 | +1. Item 1 |
| 90 | +2. Item 2 |
| 91 | +3. Item 3 |
| 92 | + 1. Item 3a |
| 93 | + 2. Item 3b |
| 94 | +``` |
| 95 | + |
| 96 | +### Images |
| 97 | + |
| 98 | +```markdown |
| 99 | + |
| 100 | +``` |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | +### Links |
| 105 | + |
| 106 | +```markdown |
| 107 | +[Hugo](https://gohugo.io) |
| 108 | +``` |
| 109 | + |
| 110 | +[Hugo](https://gohugo.io) |
| 111 | + |
| 112 | +### Blockquotes |
| 113 | + |
| 114 | +```markdown |
| 115 | +As Newton said: |
| 116 | + |
| 117 | +> If I have seen further it is by standing on the shoulders of Giants. |
| 118 | +``` |
| 119 | + |
| 120 | +> If I have seen further it is by standing on the shoulders of Giants. |
| 121 | +
|
| 122 | +### Inline Code |
| 123 | + |
| 124 | +```markdown |
| 125 | +Inline `code` has `back-ticks around` it. |
| 126 | +``` |
| 127 | + |
| 128 | +Inline `code` has `back-ticks around` it. |
| 129 | + |
| 130 | +### Code Blocks |
| 131 | + |
| 132 | +#### Syntax Highlighting |
| 133 | + |
| 134 | +````markdown |
| 135 | +```go |
| 136 | +func main() { |
| 137 | + fmt.Println("Hello World") |
| 138 | +} |
| 139 | +``` |
| 140 | +```` |
| 141 | + |
| 142 | +```go |
| 143 | +func main() { |
| 144 | + fmt.Println("Hello World") |
| 145 | +} |
| 146 | +``` |
| 147 | + |
| 148 | +### Tables |
| 149 | + |
| 150 | +```markdown |
| 151 | +| Syntax | Description | |
| 152 | +| --------- | ----------- | |
| 153 | +| Header | Title | |
| 154 | +| Paragraph | Text | |
| 155 | +``` |
| 156 | + |
| 157 | +| Syntax | Description | |
| 158 | +| --------- | ----------- | |
| 159 | +| Header | Title | |
| 160 | +| Paragraph | Text | |
| 161 | + |
| 162 | +## References |
| 163 | + |
| 164 | +- [Markdown Syntax](https://www.markdownguide.org/basic-syntax/) |
| 165 | +- [Hugo Markdown](https://gohugo.io/content-management/formats/#markdown) |
0 commit comments