Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Theme
Commits
70cd535a
Commit
70cd535a
authored
1 year ago
by
Olivia206
Browse files
Options
Downloads
Patches
Plain Diff
fixed post meta alignment
parent
d04858a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/sass/_theme/blocks/posts.sass
+37
-23
37 additions, 23 deletions
assets/sass/_theme/blocks/posts.sass
config.yaml
+1
-1
1 addition, 1 deletion
config.yaml
layouts/partials/blocks/templates/posts/large.html
+3
-3
3 additions, 3 deletions
layouts/partials/blocks/templates/posts/large.html
with
41 additions
and
27 deletions
assets/sass/_theme/blocks/posts.sass
+
37
−
23
View file @
70cd535a
...
...
@@ -38,26 +38,20 @@
@include
icon
(
arrow-right
,
after
,
true
)
p
[
itemprop
=
"articleBody"
]
margin-top
:
$spacing1
.post-meta
display
:
flex
flex-wrap
:
wrap
gap
:
half
(
$spacing0
)
.post-author
&
::after
content
:
'—'
p
display
:
inline
&
::before
display
:
none
.post-categories
margin-top
:
half
(
$spacing0
)
li
display
:
inline-flex
&
:not
(
:last-child
)
::after
content
:
', '
.post-author
p
:
:
before
display
:
none
@include
media-breakpoint-down
(
desktop
)
.post
+
.post
margin-top
:
$spacing2
.post-meta
.post-author
display
:
inline-flex
&
::after
content
:
'—'
margin
:
0
half
(
$spacing0
)
.post-categories
display
:
flex
@include
media-breakpoint-up
(
desktop
)
.large
.post
...
...
@@ -65,16 +59,36 @@
gap
:
half
(
$grid-gutter
)
+
.post
margin-top
:
$spacing2
.post-meta
display
:
inline
.post-meta
>
*
display
:
inline
&
:not
(
:first-child
)
::before
content
:
'—'
margin-right
:
half
(
$spacing0
)
>
time
display
:
inline-block
margin-top
:
-2px
.post-author
p
display
:
inline
li
margin-right
:
$spacing0
.post-categories
li
display
:
inline-flex
margin-right
:
$spacing0
padding-bottom
:
3px
&
:not
(
:last-child
)
::after
content
:
','
@include
in-page-with-sidebar
.large
.post
@include
media-breakpoint-down
(
xl
)
flex-direction
:
column
@include
media-breakpoint-up
(
xl
)
.media
,
.post-content
width
:
calc
(
#{
col
(
4
,
8
)
}
+
#{
half
(
$grid-gutter
)
}
)
.media
,
.post-content
width
:
calc
(
#{
col
(
4
,
8
)
}
+
#{
half
(
$grid-gutter
)
}
)
@include
in-page-without-sidebar
.large
.post
...
...
This diff is collapsed.
Click to expand it.
config.yaml
+
1
−
1
View file @
70cd535a
...
...
@@ -55,7 +55,7 @@ params:
date_format
:
"
:date_long"
index
:
show_categories
:
true
show_author
:
fals
e
show_author
:
tru
e
show_description
:
true
truncate_description
:
200
# Set to 0 to disable truncate
layout
:
list
# grid | list
...
...
This diff is collapsed.
Click to expand it.
layouts/partials/blocks/templates/posts/large.html
+
3
−
3
View file @
70cd535a
...
...
@@ -28,11 +28,11 @@
{{- partial "posts/author" . -}}
{{ end }}
<time
itemprop=
"datePublished"
datetime=
"{{ .Date.Format "
2006
-01-02T15:04
"
}}"
>
{{ .Date | time.Format site.Params.posts.date_format }}
</time>
{{ if site.Params.posts.index.show_categories }}
{{- partial "posts/categories" . -}}
{{ end }}
</div>
{{ if site.Params.posts.index.show_categories }}
{{- partial "posts/categories" . -}}
{{ end }}
{{ if site.Params.posts.index.show_description }}
{{- if (partial "GetTextFromHTML" .Params.summary) -}}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment