mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-28 07:50:34 +00:00
fix: fix various spacing issues (#108)
This commit is contained in:
parent
59b3d4a92d
commit
9e172ecab2
@ -11,6 +11,8 @@ weight: 1
|
|||||||
|
|
||||||
Sticky (or pinned) posts can be used to permanently pin important posts to the top of the post list. The implementation is pretty simple and handled by `weight: 1` in a post front matter. As there is no other logic to identify sticky posts you should not use negative values for weight as this will result in posts listed earlier.
|
Sticky (or pinned) posts can be used to permanently pin important posts to the top of the post list. The implementation is pretty simple and handled by `weight: 1` in a post front matter. As there is no other logic to identify sticky posts you should not use negative values for weight as this will result in posts listed earlier.
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
|
|
||||||
```YAML
|
```YAML
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="gblog-columns flex flex-wrap">
|
<div class="gblog-columns flex flex-wrap flex-mobile-column">
|
||||||
{{ range split .Inner "<--->" }}
|
{{ range split .Inner "<--->" }}
|
||||||
<div class="gblog-columns__content gblog-markdown--nested flex-even">
|
<div class="gblog-columns__content gblog-markdown--nested flex-even">
|
||||||
{{ . | $.Page.RenderString }}
|
{{ . | $.Page.RenderString }}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
.chroma {
|
.chroma {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
color: #555;
|
color: #555;
|
||||||
margin: 1rem 0;
|
|
||||||
}
|
}
|
||||||
.chroma code {
|
.chroma code {
|
||||||
background-color: $color-code;
|
background-color: $color-code;
|
||||||
@ -35,7 +34,7 @@
|
|||||||
> pre.chroma code {
|
> pre.chroma code {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,13 +2,18 @@
|
|||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
|
|
||||||
> :first-child {
|
> :first-child {
|
||||||
margin-top: 0;
|
margin-top: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--nested {
|
&--nested {
|
||||||
:first-child {
|
:first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> pre {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
> :last-child {
|
> :last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flex-mobile-column {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
.gblog-footer {
|
.gblog-footer {
|
||||||
&__item {
|
&__item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user