the code for my website (https://www.annwan.me)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
3.8 KiB

10 months ago
  1. +++
  2. author = "Hugo Authors"
  3. title = "Markdown Syntax Guide"
  4. date = "2019-03-11"
  5. description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
  6. tags = [
  7. "markdown",
  8. "css",
  9. "html",
  10. ]
  11. categories = [
  12. "themes",
  13. "syntax",
  14. ]
  15. series = ["Themes Guide"]
  16. aliases = ["migrate-from-jekyl"]
  17. toc = true
  18. +++
  19. This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
  20. <!--more-->
  21. ## Headings
  22. The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
  23. # H1
  24. ## H2
  25. ### H3
  26. #### H4
  27. ##### H5
  28. ###### H6
  29. ## Paragraph
  30. Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
  31. Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
  32. ## Blockquotes
  33. The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
  34. #### Blockquote without attribution
  35. > Tiam, ad mint andaepu dandae nostion secatur sequo quae.
  36. > **Note** that you can use *Markdown syntax* within a blockquote.
  37. #### Blockquote with attribution
  38. > Don't communicate by sharing memory, share memory by communicating.<br>
  39. > — <cite>Rob Pike[^1]</cite>
  40. [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
  41. ## Tables
  42. Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
  43. Name | Age
  44. --------|------
  45. Bob | 27
  46. Alice | 23
  47. #### Inline Markdown within tables
  48. | Italics | Bold | Code |
  49. | -------- | -------- | ------ |
  50. | *italics* | **bold** | `code` |
  51. ## Code Blocks
  52. #### Code block with backticks
  53. ```html
  54. <!doctype html>
  55. <html lang="en">
  56. <head>
  57. <meta charset="utf-8">
  58. <title>Example HTML5 Document</title>
  59. </head>
  60. <body>
  61. <p>Test</p>
  62. </body>
  63. </html>
  64. ```
  65. #### Code block indented with four spaces
  66. <!doctype html>
  67. <html lang="en">
  68. <head>
  69. <meta charset="utf-8">
  70. <title>Example HTML5 Document</title>
  71. </head>
  72. <body>
  73. <p>Test</p>
  74. </body>
  75. </html>
  76. #### Code block with Hugo's internal highlight shortcode
  77. {{< highlight html >}}
  78. <!doctype html>
  79. <html lang="en">
  80. <head>
  81. <meta charset="utf-8">
  82. <title>Example HTML5 Document</title>
  83. </head>
  84. <body>
  85. <p>Test</p>
  86. </body>
  87. </html>
  88. {{< /highlight >}}
  89. ## List Types
  90. #### Ordered List
  91. 1. First item
  92. 2. Second item
  93. 3. Third item
  94. #### Unordered List
  95. * List item
  96. * Another item
  97. * And another item
  98. #### Nested list
  99. * Fruit
  100. * Apple
  101. * Orange
  102. * Banana
  103. * Dairy
  104. * Milk
  105. * Cheese
  106. ## Other Elements — abbr, sub, sup, kbd, mark
  107. <abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
  108. H<sub>2</sub>O
  109. X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
  110. Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
  111. Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.