|
| 1 | +--- |
| 2 | +title: "Text and Typography" |
| 3 | +date: 2019-08-08 11:33:00 +0800 |
| 4 | +categories: [Blogging, Demo] |
| 5 | +tags: [typography] |
| 6 | +--- |
| 7 | + |
| 8 | +This Jekyll template totally compatible with Markdown syntax. Now, let's take a look for the text and typography in this theme. |
| 9 | + |
| 10 | +## Titles |
| 11 | + |
| 12 | +*** |
| 13 | +# H1 |
| 14 | + |
| 15 | +<h2 data-toc-skip>H2</h2> |
| 16 | + |
| 17 | +<h3 data-toc-skip>H3</h3> |
| 18 | + |
| 19 | +#### H4 |
| 20 | + |
| 21 | +*** |
| 22 | + |
| 23 | +## Paragraph |
| 24 | + |
| 25 | +I wandered lonely as a cloud |
| 26 | + |
| 27 | +That floats on high o'er vales and hills, |
| 28 | + |
| 29 | +When all at once I saw a crowd, |
| 30 | + |
| 31 | +A host, of golden daffodils; |
| 32 | + |
| 33 | +Beside the lake, beneath the trees, |
| 34 | + |
| 35 | +Fluttering and dancing in the breeze. |
| 36 | + |
| 37 | +## Block Quote |
| 38 | + |
| 39 | +> This line to shows the Block Quote. |
| 40 | +
|
| 41 | +## Tables |
| 42 | + |
| 43 | +|Company|Contact|Country| |
| 44 | +|:---|:--|---:| |
| 45 | +|Alfreds Futterkiste | Maria Anders | Germany |
| 46 | +|Island Trading | Helen Bennett | UK |
| 47 | +|Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |
| 48 | + |
| 49 | +## Link |
| 50 | + |
| 51 | +[http://127.0.0.1:4000](http://127.0.0.1:4000) |
| 52 | + |
| 53 | + |
| 54 | +## Footnote |
| 55 | + |
| 56 | +Click the hook will locate the footnote[^footnote]. |
| 57 | + |
| 58 | + |
| 59 | +## Image |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +## Inline code |
| 65 | + |
| 66 | +This is an example of `Inline Code`. |
| 67 | + |
| 68 | + |
| 69 | +## Code Snippet |
| 70 | + |
| 71 | +### Common |
| 72 | + |
| 73 | +``` |
| 74 | +This is a common code snippet, without syntax highlight and line number. |
| 75 | +``` |
| 76 | + |
| 77 | +### Specific Languages |
| 78 | + |
| 79 | +#### Console |
| 80 | + |
| 81 | +```console |
| 82 | +$ date |
| 83 | +Sun Nov 3 15:11:12 CST 2019 |
| 84 | +``` |
| 85 | + |
| 86 | + |
| 87 | +#### Terminal |
| 88 | + |
| 89 | +```terminal |
| 90 | +$ env |grep SHELL |
| 91 | +SHELL=/usr/local/bin/bash |
| 92 | +PYENV_SHELL=bash |
| 93 | +``` |
| 94 | + |
| 95 | +#### Ruby |
| 96 | + |
| 97 | +```ruby |
| 98 | +def sum_eq_n?(arr, n) |
| 99 | + return true if arr.empty? && n == 0 |
| 100 | + arr.product(arr).reject { |a,b| a == b }.any? { |a,b| a + b == n } |
| 101 | +end |
| 102 | +``` |
| 103 | + |
| 104 | +#### Shell |
| 105 | + |
| 106 | +```shell |
| 107 | +if [ $? -ne 0 ]; then |
| 108 | + echo "The command was not successful."; |
| 109 | + #do the needful / exit |
| 110 | +fi; |
| 111 | +``` |
| 112 | + |
| 113 | +#### Liquid |
| 114 | + |
| 115 | +{% raw %} |
| 116 | +```liquid |
| 117 | +{% if product.title contains 'Pack' %} |
| 118 | + This product's title contains the word Pack. |
| 119 | +{% endif %} |
| 120 | +``` |
| 121 | +{% endraw %} |
| 122 | + |
| 123 | +#### HTML |
| 124 | + |
| 125 | +```html |
| 126 | +<div class="sidenav"> |
| 127 | + <a href="#contact">Contact</a> |
| 128 | + <button class="dropdown-btn">Dropdown |
| 129 | + <i class="fa fa-caret-down"></i> |
| 130 | + </button> |
| 131 | + <div class="dropdown-container"> |
| 132 | + <a href="#">Link 1</a> |
| 133 | + <a href="#">Link 2</a> |
| 134 | + <a href="#">Link 3</a> |
| 135 | + </div> |
| 136 | + <a href="#contact">Search</a> |
| 137 | +</div> |
| 138 | +``` |
| 139 | + |
| 140 | +**Horizontal Scrolling** |
| 141 | + |
| 142 | +```html |
| 143 | +<div class="panel-group"> |
| 144 | + <div class="panel panel-default"> |
| 145 | + <div class="panel-heading" id="{{ category_name }}"> |
| 146 | + <i class="far fa-folder"></i> |
| 147 | + <p>This is a very long long long long long long long long long long long long long long long long long long long long long line.</p> |
| 148 | + </a> |
| 149 | + </div> |
| 150 | + </div> |
| 151 | +</div> |
| 152 | +``` |
| 153 | + |
| 154 | + |
| 155 | +## Reverse Footnote |
| 156 | + |
| 157 | +[^footnote]: The footnote source. |
0 commit comments