post.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. ---
  2. layout: default
  3. ---
  4. <div id="fb-root"></div>
  5. <script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v6.0"></script>
  6. <!-- Page Content -->
  7. <hr class="custom mt-0 mb-5">
  8. <div class="container">
  9. <div class="row">
  10. <div class="col-lg-8">
  11. <article class="post" itemscope itemtype="https://schema.org/BlogPosting">
  12. <header>
  13. <h1 itemprop="name headline">{{ page.title }}</h1>
  14. <div>
  15. <i class="fal fa-tag"></i> {{ page.category }}
  16. </div>
  17. <hr class="custom">
  18. <div class="mb-3">
  19. Posted <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time> by <span itemprop="author" itemscope itemtype="https://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
  20. </div>
  21. </header>
  22. <div itemprop="articleBody">
  23. {{ content }}
  24. </div>
  25. <div>
  26. <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://startbootstrap.com{{ page.url }}" data-via="SBootstrap" data-lang="en">Tweet</a>
  27. </div>
  28. <div class="fb-share-button" data-href="https://startbootstrap.com{{ page.url }}" data-layout="button" data-size="small">
  29. <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&amp;src=sdkpreparse" class="fb-xfbml-parse-ignore">Share</a>
  30. </div>
  31. <hr class="custom my-4">
  32. <div class="d-flex align-items-stretch justify-content-between">
  33. {% if page.previous.url %}
  34. <a class="btn btn-white border-0 rounded shadow post-pager-link p-0 prev" href="{{ page.previous.url }}">
  35. <span class="d-flex h-100">
  36. <span class="bg-primary p-2 d-flex align-items-center text-white">
  37. <i class="fal fa-arrow-circle-left"></i>
  38. </span>
  39. <span class="p-3 d-flex flex-column justify-content-center w-100">
  40. <div class="indicator mb-1 text-uppercase">Previous Post</div>
  41. {{ page.previous.title }}
  42. </span>
  43. </span>
  44. </a>
  45. {% endif %}
  46. {% if page.next.url %}
  47. <a class="btn btn-white border-0 rounded shadow post-pager-link p-0 next" href="{{ page.next.url }}">
  48. <span class="d-flex h-100">
  49. <span class="p-3 d-flex flex-column justify-content-center w-100">
  50. <div class="indicator mb-1 text-uppercase">Next Post</div>
  51. {{ page.next.title }}
  52. </span>
  53. <span class="bg-primary p-2 d-flex align-items-center text-white">
  54. <i class="fal fa-arrow-circle-right"></i>
  55. </span>
  56. </span>
  57. </a>
  58. {% endif %}
  59. </div>
  60. <hr class="custom my-4">
  61. </article>
  62. <div class="card border-0 shadow mb-5">
  63. <div class="card-body d-flex align-items-center">
  64. <div class="d-none d-md-block mr-4">
  65. <img class="img-fluid rounded-circle" src="/assets/img/blog/authors/{{ page.author-slug }}.jpg" alt="{{ page.author }}">
  66. </div>
  67. <div>
  68. <h4>{{ page.author }}</h4>
  69. <p>{{ page.author-desc }}</p>
  70. <div class="d-flex flex-column flex-md-row">
  71. {% if page.author-url %}
  72. <div class="mb-3 mb-md-0 mr-0 mr-md-3 small">
  73. <a href="{{ page.author-url }}">{{ page.author-url }}</a>
  74. </div>
  75. {% endif %}
  76. {% if page.author-github %}
  77. <div class="mb-3 mb-md-0 mr-0 mr-md-3 small">
  78. <i class="fab fa-github text-github"></i> <a href="https://github.com/{{ page.author-github }}">{{ page.author-github }}</a>
  79. </div>
  80. {% endif %}
  81. {% if page.author-twitter %}
  82. <div class="mb-3 mb-md-0 mr-0 mr-md-3 small">
  83. <i class="fab fa-twitter text-twitter"></i> <a href="https://twitter.com/{{ page.author-twitter }}">@{{ page.author-twitter }}</a>
  84. </div>
  85. {% endif %}
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="native-standard"></div>
  91. {% include disqus.html %}
  92. </div>
  93. <div class="col-lg-4">
  94. <!-- Carbon -->
  95. <div class="carbon-inverse mb-5 mt-5 mt-lg-0">
  96. {% include carbon.html %}
  97. </div>
  98. <!-- Latests Posts -->
  99. <div class="card border-0 shadow mb-5 latest-posts">
  100. <div class="card-header border-0 bg-primary text-white py-3">
  101. <span class="font-weight-bold small">Latest Posts</span>
  102. </div>
  103. <div class="list-group list-group-flush">
  104. {% for post in site.posts offset: 0 limit: 5 %}
  105. <a class="list-group-item list-group-item-action" href="{{ post.url }}">
  106. <h6 class="latest-posts-title mb-1">{{ post.title }}</h6>
  107. <div class="latest-posts-date">
  108. {{ page.date | date: "%b %-d, %Y" }}
  109. </div>
  110. </a>
  111. {% endfor %}
  112. </div>
  113. <div class="card-body">
  114. <a class="btn-all btn btn-block btn-primary" href="/articles">View all posts</a>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <!-- Script for Carbon Native Test -->
  121. <script>
  122. (function(){
  123. if(typeof _bsa !== 'undefined' && _bsa) {
  124. _bsa.init('custom', 'CE7DV2JN', 'placement:startbootstrapcom',
  125. {
  126. target: '.native-standard',
  127. template: `
  128. <a href="##link##" class="native-banner" style="background: linear-gradient(-30deg, ##backgroundColor##E5, ##backgroundColor##E5 45%, ##backgroundColor## 45%) #fff;">
  129. <div class="native-main">
  130. <img class="native-img" src="##logo##">
  131. <div class="native-details" style="color: ##textColor##">
  132. <span class="native-company">Sponsored by ##company##</span>
  133. <span class="native-desc">##description##</span>
  134. </div>
  135. <span class="native-cta" style="color: ##ctaTextColor##; background-color: ##ctaBackgroundColor##;">##callToAction##</span>
  136. </div>
  137. </a>
  138. <a class="native-via" href="##adViaLink##">Ads via BuySellAds</a>
  139. `,
  140. }
  141. );
  142. }
  143. })();
  144. </script>