mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2026-08-11 07:57:15 -05:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c23b43342c
|
||
|
|
2f6db565a9
|
||
|
|
a2a8e2c205
|
@@ -823,7 +823,7 @@ figcaption {
|
|||||||
background-color: var(--background-1);
|
background-color: var(--background-1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
.code-block > .code-header {
|
.code-block-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -833,17 +833,17 @@ figcaption {
|
|||||||
border-top-right-radius: 8px;
|
border-top-right-radius: 8px;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
}
|
}
|
||||||
.code-block > .code-header > * {
|
.code-block-header > * {
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
}
|
}
|
||||||
.code-block > .code-header > .code-type {
|
.code-block-type {
|
||||||
border-top-left-radius: 8px;
|
border-top-left-radius: 8px;
|
||||||
}
|
}
|
||||||
/* TODO: make the code copy button prettier */
|
/* TODO: make the code copy button prettier */
|
||||||
.code-block > .code-header > .code-copy-button {
|
.code-block-copy-button {
|
||||||
color: var(--link-1);
|
color: var(--link-1);
|
||||||
}
|
}
|
||||||
.code-block > .code-header > .code-copy-button:hover {
|
.code-block-copy-button:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.code-block > .highlight {
|
.code-block > .highlight {
|
||||||
@@ -877,7 +877,7 @@ figcaption {
|
|||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-block > .code-header > .code-type,
|
.code-block-type,
|
||||||
code {
|
code {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,23 @@ taxonomies:
|
|||||||
outputs:
|
outputs:
|
||||||
page:
|
page:
|
||||||
- html
|
- html
|
||||||
|
home:
|
||||||
|
- html
|
||||||
|
- rss
|
||||||
|
- redirects
|
||||||
|
|
||||||
|
outputFormats:
|
||||||
|
# https://honnef.co/articles/generating-netlify-_redirects-from-hugo/
|
||||||
|
redirects:
|
||||||
|
baseName: _redirects
|
||||||
|
isPlainText: true
|
||||||
|
mediaType: text/redirects
|
||||||
|
root: true
|
||||||
|
|
||||||
|
mediaTypes:
|
||||||
|
# https://honnef.co/articles/generating-netlify-_redirects-from-hugo/
|
||||||
|
text/redirects:
|
||||||
|
delimeter: ""
|
||||||
|
|
||||||
privacy:
|
privacy:
|
||||||
googleAnalytics:
|
googleAnalytics:
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
{{ $type = . }}
|
{{ $type = . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="code-block">
|
<div class="code-block">
|
||||||
<div class="code-header">
|
<div class="code-block-header">
|
||||||
<pre class="code-type">{{ $type }}</pre>
|
<pre class="code-block-type">{{ $type }}</pre>
|
||||||
<a href="javascript:void(0)" class="code-copy-button">
|
<a href="javascript:void(0)" class="code-block-copy-button">
|
||||||
{{ i18n "copy_to_clipboard" }}
|
{{ i18n "copy_to_clipboard" }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{{ range hugo.Sites -}}
|
||||||
|
{{ range $p := .Pages -}}
|
||||||
|
{{ range .Aliases -}}
|
||||||
|
{{ . }} {{ $p.RelPermalink }}
|
||||||
|
{{ end -}}
|
||||||
|
{{ end -}}
|
||||||
|
{{ end -}}
|
||||||
Reference in New Issue
Block a user