Joseph Hale's Technical Blog
0

Configure Feed

Select the types of activity you want to include in your feed.

refactor(layout): improve margin bottom of the core block (#1116)

Improvement of commit 73af591

authored by

Cotes Chung and committed by
GitHub
(Jun 28, 2023, 8:21 PM +0800) 2bbfda79 b0f4ae5e

+12 -21
+1 -1
_includes/post-paginator.html
··· 1 1 <!-- The paginator for post list on HomgPage. --> 2 2 3 - <ul class="pagination align-items-center mt-4 mb-5 ps-lg-2"> 3 + <ul class="pagination align-items-center mt-4 mb-1 ps-lg-2"> 4 4 <!-- left arrow --> 5 5 {% if paginator.previous_page %} 6 6 {% assign prev_url = paginator.previous_page_path | relative_url %}
+1 -1
_layouts/category.html
··· 5 5 6 6 {% include lang.html %} 7 7 8 - <div id="page-category" class="mb-5"> 8 + <div id="page-category"> 9 9 <h1 class="ps-lg-2"> 10 10 <i class="far fa-folder-open fa-fw text-muted"></i> 11 11 {{ page.title }}
+2 -11
_layouts/home.html
··· 40 40 {% endfor %} 41 41 {% endif %} 42 42 43 - {% if paginator.total_pages > 1 %} 44 - {% assign has_paginator = true %} 45 - {% endif %} 46 - 47 - <div 48 - id="post-list" 49 - {% unless has_paginator %} 50 - class="mb-5" 51 - {% endunless %} 52 - > 43 + <div id="post-list"> 53 44 {% for post in posts %} 54 45 <a href="{{ post.url | relative_url }}" class="card-wrapper"> 55 46 <div class="card post-preview flex-md-row-reverse"> ··· 114 105 </div> 115 106 <!-- #post-list --> 116 107 117 - {% if has_paginator %} 108 + {% if paginator.total_pages > 1 %} 118 109 {% include post-paginator.html %} 119 110 {% endif %}
+6 -2
_layouts/page.html
··· 5 5 {% include lang.html %} 6 6 {% include origin-type.html %} 7 7 8 - <div class="row"> 8 + {% if layout.tail_includes %} 9 + {% assign has_tail = true %} 10 + {% endif %} 11 + 12 + <div class="row{% unless has_tail %} mb-5{% endunless %}"> 9 13 <!-- core --> 10 14 <div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4"> 11 15 {% capture padding %} ··· 52 56 </div> 53 57 54 58 <!-- tail --> 55 - {% if layout.tail_includes %} 59 + {% if has_tail %} 56 60 <div class="row"> 57 61 <div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5"> 58 62 {% for _include in layout.tail_includes %}
+1 -1
_layouts/tag.html
··· 5 5 6 6 {% include lang.html %} 7 7 8 - <div id="page-tag" class="mb-5"> 8 + <div id="page-tag"> 9 9 <h1 class="ps-lg-2"> 10 10 <i class="fa fa-tag fa-fw text-muted"></i> 11 11 {{ page.title }}
+1 -1
_layouts/tags.html
··· 3 3 # All the Tags of posts. 4 4 --- 5 5 6 - <div id="tags" class="d-flex flex-wrap mx-xl-2 mb-5"> 6 + <div id="tags" class="d-flex flex-wrap mx-xl-2"> 7 7 {% assign tags = '' | split: '' %} 8 8 {% for t in site.tags %} 9 9 {% assign tags = tags | push: t[0] %}
-4
_sass/addon/commons.scss
··· 1213 1213 } 1214 1214 1215 1215 #core-wrapper { 1216 - min-height: calc( 1217 - 100vh - #{$topbar-height} - #{$footer-height-mobile} 1218 - ) !important; 1219 - 1220 1216 .post-content { 1221 1217 > blockquote[class^='prompt-'] { 1222 1218 @include ml-mr(-1.25rem);