index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. ---
  2. layout: examples
  3. title: Blog Template
  4. extra_css:
  5. - "https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap"
  6. - "blog.css"
  7. include_js: false
  8. ---
  9. <div class="container">
  10. <header class="blog-header py-3">
  11. <div class="row flex-nowrap justify-content-between align-items-center">
  12. <div class="col-4 pt-1">
  13. <a class="link-secondary" href="#">Subscribe</a>
  14. </div>
  15. <div class="col-4 text-center">
  16. <a class="blog-header-logo text-dark" href="#">Large</a>
  17. </div>
  18. <div class="col-4 d-flex justify-content-end align-items-center">
  19. <a class="link-secondary" href="#" aria-label="Search">
  20. <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="mx-3" role="img" viewBox="0 0 24 24"><title>Search</title><circle cx="10.5" cy="10.5" r="7.5"/><path d="M21 21l-5.2-5.2"/></svg>
  21. </a>
  22. <a class="btn btn-sm btn-outline-secondary" href="#">Sign up</a>
  23. </div>
  24. </div>
  25. </header>
  26. <div class="nav-scroller py-1 mb-2">
  27. <nav class="nav d-flex justify-content-between">
  28. <a class="p-2 link-secondary" href="#">World</a>
  29. <a class="p-2 link-secondary" href="#">U.S.</a>
  30. <a class="p-2 link-secondary" href="#">Technology</a>
  31. <a class="p-2 link-secondary" href="#">Design</a>
  32. <a class="p-2 link-secondary" href="#">Culture</a>
  33. <a class="p-2 link-secondary" href="#">Business</a>
  34. <a class="p-2 link-secondary" href="#">Politics</a>
  35. <a class="p-2 link-secondary" href="#">Opinion</a>
  36. <a class="p-2 link-secondary" href="#">Science</a>
  37. <a class="p-2 link-secondary" href="#">Health</a>
  38. <a class="p-2 link-secondary" href="#">Style</a>
  39. <a class="p-2 link-secondary" href="#">Travel</a>
  40. </nav>
  41. </div>
  42. </div>
  43. <main class="container">
  44. <div class="p-4 p-md-5 mb-4 text-white rounded bg-dark">
  45. <div class="col-md-6 px-0">
  46. <h1 class="display-4 fst-italic">Title of a longer featured blog post</h1>
  47. <p class="lead my-3">Multiple lines of text that form the lede, informing new readers quickly and efficiently about what’s most interesting in this post’s contents.</p>
  48. <p class="lead mb-0"><a href="#" class="text-white fw-bold">Continue reading...</a></p>
  49. </div>
  50. </div>
  51. <div class="row mb-2">
  52. <div class="col-md-6">
  53. <div class="row g-0 border rounded overflow-hidden flex-md-row mb-4 shadow-sm h-md-250 position-relative">
  54. <div class="col p-4 d-flex flex-column position-static">
  55. <strong class="d-inline-block mb-2 text-primary">World</strong>
  56. <h3 class="mb-0">Featured post</h3>
  57. <div class="mb-1 text-muted">Nov 12</div>
  58. <p class="card-text mb-auto">This is a wider card with supporting text below as a natural lead-in to additional content.</p>
  59. <a href="#" class="stretched-link">Continue reading</a>
  60. </div>
  61. <div class="col-auto d-none d-lg-block">
  62. {{< placeholder width="200" height="250" background="#55595c" color="#eceeef" text="Thumbnail" >}}
  63. </div>
  64. </div>
  65. </div>
  66. <div class="col-md-6">
  67. <div class="row g-0 border rounded overflow-hidden flex-md-row mb-4 shadow-sm h-md-250 position-relative">
  68. <div class="col p-4 d-flex flex-column position-static">
  69. <strong class="d-inline-block mb-2 text-success">Design</strong>
  70. <h3 class="mb-0">Post title</h3>
  71. <div class="mb-1 text-muted">Nov 11</div>
  72. <p class="mb-auto">This is a wider card with supporting text below as a natural lead-in to additional content.</p>
  73. <a href="#" class="stretched-link">Continue reading</a>
  74. </div>
  75. <div class="col-auto d-none d-lg-block">
  76. {{< placeholder width="200" height="250" background="#55595c" color="#eceeef" text="Thumbnail" >}}
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="row g-5">
  82. <div class="col-md-8">
  83. <h3 class="pb-4 mb-4 fst-italic border-bottom">
  84. From the Firehose
  85. </h3>
  86. <article class="blog-post">
  87. <h2 class="blog-post-title">Sample blog post</h2>
  88. <p class="blog-post-meta">January 1, 2021 by <a href="#">Mark</a></p>
  89. <p>This blog post shows a few different types of content that’s supported and styled with Bootstrap. Basic typography, lists, tables, images, code, and more are all supported as expected.</p>
  90. <hr>
  91. <p>This is some additional paragraph placeholder content. It has been written to fill the available space and show how a longer snippet of text affects the surrounding content. We'll repeat it often to keep the demonstration flowing, so be on the lookout for this exact same string of text.</p>
  92. <h2>Blockquotes</h2>
  93. <p>This is an example blockquote in action:</p>
  94. <blockquote class="blockquote">
  95. <p>Quoted text goes here.</p>
  96. </blockquote>
  97. <p>This is some additional paragraph placeholder content. It has been written to fill the available space and show how a longer snippet of text affects the surrounding content. We'll repeat it often to keep the demonstration flowing, so be on the lookout for this exact same string of text.</p>
  98. <h3>Example lists</h3>
  99. <p>This is some additional paragraph placeholder content. It's a slightly shorter version of the other highly repetitive body text used throughout. This is an example unordered list:</p>
  100. <ul>
  101. <li>First list item</li>
  102. <li>Second list item with a longer description</li>
  103. <li>Third list item to close it out</li>
  104. </ul>
  105. <p>And this is an ordered list:</p>
  106. <ol>
  107. <li>First list item</li>
  108. <li>Second list item with a longer description</li>
  109. <li>Third list item to close it out</li>
  110. </ol>
  111. <p>And this is a definiton list:</p>
  112. <dl>
  113. <dt>HyperText Markup Language (HTML)</dt>
  114. <dd>The language used to describe and define the content of a Web page</dd>
  115. <dt>Cascading Style Sheets (CSS)</dt>
  116. <dd>Used to describe the appearance of Web content</dd>
  117. <dt>JavaScript (JS)</dt>
  118. <dd>The programming language used to build advanced Web sites and applications</dd>
  119. </dl>
  120. <h2>Inline HTML elements</h2>
  121. <p>HTML defines a long list of available inline tags, a complete list of which can be found on the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element">Mozilla Developer Network</a>.</p>
  122. <ul>
  123. <li><strong>To bold text</strong>, use <code class="language-plaintext highlighter-rouge">&lt;strong&gt;</code>.</li>
  124. <li><em>To italicize text</em>, use <code class="language-plaintext highlighter-rouge">&lt;em&gt;</code>.</li>
  125. <li>Abbreviations, like <abbr title="HyperText Markup Langage">HTML</abbr> should use <code class="language-plaintext highlighter-rouge">&lt;abbr&gt;</code>, with an optional <code class="language-plaintext highlighter-rouge">title</code> attribute for the full phrase.</li>
  126. <li>Citations, like <cite>— Mark Otto</cite>, should use <code class="language-plaintext highlighter-rouge">&lt;cite&gt;</code>.</li>
  127. <li><del>Deleted</del> text should use <code class="language-plaintext highlighter-rouge">&lt;del&gt;</code> and <ins>inserted</ins> text should use <code class="language-plaintext highlighter-rouge">&lt;ins&gt;</code>.</li>
  128. <li>Superscript <sup>text</sup> uses <code class="language-plaintext highlighter-rouge">&lt;sup&gt;</code> and subscript <sub>text</sub> uses <code class="language-plaintext highlighter-rouge">&lt;sub&gt;</code>.</li>
  129. </ul>
  130. <p>Most of these elements are styled by browsers with few modifications on our part.</p>
  131. <h2>Heading</h2>
  132. <p>This is some additional paragraph placeholder content. It has been written to fill the available space and show how a longer snippet of text affects the surrounding content. We'll repeat it often to keep the demonstration flowing, so be on the lookout for this exact same string of text.</p>
  133. <h3>Sub-heading</h3>
  134. <p>This is some additional paragraph placeholder content. It has been written to fill the available space and show how a longer snippet of text affects the surrounding content. We'll repeat it often to keep the demonstration flowing, so be on the lookout for this exact same string of text.</p>
  135. <pre><code>Example code block</code></pre>
  136. <p>This is some additional paragraph placeholder content. It's a slightly shorter version of the other highly repetitive body text used throughout.</p>
  137. </article>
  138. <article class="blog-post">
  139. <h2 class="blog-post-title">Another blog post</h2>
  140. <p class="blog-post-meta">December 23, 2020 by <a href="#">Jacob</a></p>
  141. <p>This is some additional paragraph placeholder content. It has been written to fill the available space and show how a longer snippet of text affects the surrounding content. We'll repeat it often to keep the demonstration flowing, so be on the lookout for this exact same string of text.</p>
  142. <blockquote>
  143. <p>Longer quote goes here, maybe with some <strong>emphasized text</strong> in the middle of it.</p>
  144. </blockquote>
  145. <p>This is some additional paragraph placeholder content. It has been written to fill the available space and show how a longer snippet of text affects the surrounding content. We'll repeat it often to keep the demonstration flowing, so be on the lookout for this exact same string of text.</p>
  146. <h3>Example table</h3>
  147. <p>And don't forget about tables in these posts:</p>
  148. <table class="table">
  149. <thead>
  150. <tr>
  151. <th>Name</th>
  152. <th>Upvotes</th>
  153. <th>Downvotes</th>
  154. </tr>
  155. </thead>
  156. <tbody>
  157. <tr>
  158. <td>Alice</td>
  159. <td>10</td>
  160. <td>11</td>
  161. </tr>
  162. <tr>
  163. <td>Bob</td>
  164. <td>4</td>
  165. <td>3</td>
  166. </tr>
  167. <tr>
  168. <td>Charlie</td>
  169. <td>7</td>
  170. <td>9</td>
  171. </tr>
  172. </tbody>
  173. <tfoot>
  174. <tr>
  175. <td>Totals</td>
  176. <td>21</td>
  177. <td>23</td>
  178. </tr>
  179. </tfoot>
  180. </table>
  181. <p>This is some additional paragraph placeholder content. It's a slightly shorter version of the other highly repetitive body text used throughout.</p>
  182. </article>
  183. <article class="blog-post">
  184. <h2 class="blog-post-title">New feature</h2>
  185. <p class="blog-post-meta">December 14, 2020 by <a href="#">Chris</a></p>
  186. <p>This is some additional paragraph placeholder content. It has been written to fill the available space and show how a longer snippet of text affects the surrounding content. We'll repeat it often to keep the demonstration flowing, so be on the lookout for this exact same string of text.</p>
  187. <ul>
  188. <li>First list item</li>
  189. <li>Second list item with a longer description</li>
  190. <li>Third list item to close it out</li>
  191. </ul>
  192. <p>This is some additional paragraph placeholder content. It's a slightly shorter version of the other highly repetitive body text used throughout.</p>
  193. </article>
  194. <nav class="blog-pagination" aria-label="Pagination">
  195. <a class="btn btn-outline-primary" href="#">Older</a>
  196. <a class="btn btn-outline-secondary disabled" href="#" tabindex="-1" aria-disabled="true">Newer</a>
  197. </nav>
  198. </div>
  199. <div class="col-md-4">
  200. <div class="position-sticky" style="top: 2rem;">
  201. <div class="p-4 mb-3 bg-light rounded">
  202. <h4 class="fst-italic">About</h4>
  203. <p class="mb-0">Customize this section to tell your visitors a little bit about your publication, writers, content, or something else entirely. Totally up to you.</p>
  204. </div>
  205. <div class="p-4">
  206. <h4 class="fst-italic">Archives</h4>
  207. <ol class="list-unstyled mb-0">
  208. <li><a href="#">March 2021</a></li>
  209. <li><a href="#">February 2021</a></li>
  210. <li><a href="#">January 2021</a></li>
  211. <li><a href="#">December 2020</a></li>
  212. <li><a href="#">November 2020</a></li>
  213. <li><a href="#">October 2020</a></li>
  214. <li><a href="#">September 2020</a></li>
  215. <li><a href="#">August 2020</a></li>
  216. <li><a href="#">July 2020</a></li>
  217. <li><a href="#">June 2020</a></li>
  218. <li><a href="#">May 2020</a></li>
  219. <li><a href="#">April 2020</a></li>
  220. </ol>
  221. </div>
  222. <div class="p-4">
  223. <h4 class="fst-italic">Elsewhere</h4>
  224. <ol class="list-unstyled">
  225. <li><a href="#">GitHub</a></li>
  226. <li><a href="#">Twitter</a></li>
  227. <li><a href="#">Facebook</a></li>
  228. </ol>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </main>
  234. <footer class="blog-footer">
  235. <p>Blog template built for <a href="https://getbootstrap.com/">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p>
  236. <p>
  237. <a href="#">Back to top</a>
  238. </p>
  239. </footer>