mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-09-04 02:17:34 -05:00
Compare commits
3 Commits
share-butt
...
5d335647d0
Author | SHA1 | Date | |
---|---|---|---|
5d335647d0
|
|||
22fff1a9c5
|
|||
b79c956c07
|
@@ -198,21 +198,22 @@ video {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-media > figure img,
|
figure > .figure-media {
|
||||||
.post-media > figure video {
|
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border: 7px solid var(--figure-border);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
figure img,
|
figure > .figure-media.border {
|
||||||
figure video {
|
|
||||||
padding: 5px;
|
|
||||||
border: 2px solid var(--figure-border);
|
border: 2px solid var(--figure-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-media > figure > .figure-media {
|
||||||
|
border: 7px solid var(--figure-border);
|
||||||
|
}
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
margin: auto;
|
display: block;
|
||||||
display: inline-block;
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
|
@@ -1,7 +0,0 @@
|
|||||||
{{ with .Description }}
|
|
||||||
<p>{{ . | markdownify }}</p>
|
|
||||||
{{ else }}
|
|
||||||
{{ with .Summary }}
|
|
||||||
{{ . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
@@ -3,9 +3,9 @@
|
|||||||
* claims that images won't work with JS disabled since it would
|
* claims that images won't work with JS disabled since it would
|
||||||
* make tracking possible, but my experience says otherwise
|
* make tracking possible, but my experience says otherwise
|
||||||
*/}}
|
*/}}
|
||||||
<img src="{{ .Permalink }}" {{ with .Params.alt }}alt="{{ . }}"{{ end }} />
|
<img class="figure-media" src="{{ .Permalink }}" {{ with .Params.alt }}alt="{{ . }}"{{ end }} />
|
||||||
{{ else if eq .ResourceType "video" }}
|
{{ else if eq .ResourceType "video" }}
|
||||||
<video controls preload="metadata">
|
<video class="figure-media" controls preload="metadata">
|
||||||
{{ with .Params.alt }}
|
{{ with .Params.alt }}
|
||||||
{{ warnf "video does not support alt text, '%s'" . }}
|
{{ warnf "video does not support alt text, '%s'" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{{ if gt .Paginator.TotalPages 1 }}
|
{{ if gt .Paginator.TotalPages 1 }}
|
||||||
<nav class="pagination">
|
<nav class="pagination">
|
||||||
{{/* https://github.com/gohugoio/hugo/blob/a88b488181279befd50e1d127f9f67604f2f9854/tpl/tplimpl/embedded/templates/_partials/pagination.html */}}
|
{{/* https://github.com/gohugoio/hugo/blob/a88b488181279befd50e1d127f9f67604f2f9854/tpl/tplimpl/embedded/templates/_partials/pagination.html */}}
|
||||||
{{ partial "_internal/pagination.html" . }}
|
{{ partial "pagination-hugo.html" . }}
|
||||||
</nav>
|
</nav>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -5,9 +5,11 @@
|
|||||||
|
|
||||||
{{ partial "page-metadata/author.html" . }}
|
{{ partial "page-metadata/author.html" . }}
|
||||||
|
|
||||||
<div class="page-description">
|
{{ with .Summary }}
|
||||||
{{ partial "description-or-summary.html" . }}
|
<div class="page-description">
|
||||||
</div>
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="readmore">
|
<div class="readmore">
|
||||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||||
|
@@ -5,8 +5,10 @@
|
|||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="section-description">
|
{{ with .Summary }}
|
||||||
{{ partial "description-or-summary.html" . }}
|
<div class="section-description">
|
||||||
</div>
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
@@ -6,9 +6,11 @@
|
|||||||
|
|
||||||
{{ partial "page-metadata/series.html" . }}
|
{{ partial "page-metadata/series.html" . }}
|
||||||
|
|
||||||
<div class="page-description">
|
{{ with .Summary }}
|
||||||
{{ partial "description-or-summary.html" . }}
|
<div class="page-description">
|
||||||
</div>
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-list series-inner">
|
<div class="page-list series-inner">
|
||||||
{{ range .Data.Pages.Reverse }}
|
{{ range .Data.Pages.Reverse }}
|
||||||
|
@@ -8,9 +8,11 @@
|
|||||||
|
|
||||||
{{ partial "feature-figure.html" . }}
|
{{ partial "feature-figure.html" . }}
|
||||||
|
|
||||||
<div class="page-description">
|
{{ with .Summary }}
|
||||||
{{ partial "description-or-summary.html" . }}
|
<div class="page-description">
|
||||||
</div>
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="readmore">
|
<div class="readmore">
|
||||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{{ partial "page-metadata/taxonomy.html" . }}
|
{{ partial "page-metadata/taxonomy.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "description-or-summary.html" . }}
|
{{ .Summary }}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user