mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Format code and move quote.scss to article.scss
This style is only used on the article page, so it makes more sense to have it there.
This commit is contained in:
parent
a820c25fe6
commit
d090e1bb94
@ -231,6 +231,16 @@
|
||||
border-inline-start: var(--blockquote-border-size) solid var(--card-separator-color);
|
||||
padding: 15px calc(var(--card-padding) - var(--blockquote-border-size));
|
||||
background-color: var(--blockquote-background-color);
|
||||
|
||||
.cite {
|
||||
display: block;
|
||||
text-align: right;
|
||||
font-size: 0.75em;
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
|
@ -1,9 +0,0 @@
|
||||
blockquote .cite {
|
||||
display: block;
|
||||
text-align: right;
|
||||
font-size: 0.75em;
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
@ -18,7 +18,6 @@
|
||||
@import "partials/footer.scss";
|
||||
@import "partials/pagination.scss";
|
||||
@import "partials/sidebar.scss";
|
||||
@import "partials/quote.scss";
|
||||
@import "partials/base.scss";
|
||||
@import "partials/layout/article.scss";
|
||||
@import "partials/layout/list.scss";
|
||||
|
@ -1,15 +1,15 @@
|
||||
<blockquote>
|
||||
<p>{{ .Inner | markdownify }}</p>
|
||||
{{- if or (.Get "author") (.Get "source") -}}
|
||||
<span class="cite"><span>― </span>
|
||||
{{- if .Get "author" -}}
|
||||
<span>
|
||||
{{- .Get "author" -}}{{- if .Get "source" -}}, {{ end -}}
|
||||
<p>{{ .Inner | markdownify }}</p>
|
||||
{{- if or (.Get "author") (.Get "source") -}}
|
||||
<span class="cite"><span>― </span>
|
||||
{{- if .Get "author" -}}
|
||||
<span>
|
||||
{{- .Get "author" -}}{{- if .Get "source" -}}, {{ end -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
{{- with .Get "url" -}}<a href="{{ . }}">{{- end -}}
|
||||
<cite>{{ .Get "source" }}</cite>
|
||||
{{- if .Get "url" -}}</a>{{- end -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
{{- with .Get "url" -}}<a href="{{ . }}">{{- end -}}
|
||||
<cite>{{ .Get "source" }}</cite>
|
||||
{{- if .Get "url" -}}</a>{{- end -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
</blockquote>
|
||||
</blockquote>
|
Loading…
Reference in New Issue
Block a user