mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-15 08:12:57 -05:00
Compare commits
No commits in common. "8d81f5e37cc190792faaa8140717f15d096dfe26" and "493ee2da96ab8682fef2aea54c8869471d752585" have entirely different histories.
8d81f5e37c
...
493ee2da96
@ -357,17 +357,12 @@
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.share-buttons button,
|
||||
.share-buttons a {
|
||||
background-color: var(--background-2);
|
||||
padding: 4px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.share-buttons button {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.share-buttons svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
@ -562,7 +557,7 @@ blockquote {
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 1px solid var(--background-highlight);
|
||||
border-color: var(--background-highlight);
|
||||
}
|
||||
|
||||
table.markdown {
|
||||
@ -765,12 +760,10 @@ li.disabled > .page-link:hover {
|
||||
/* Print compatibility */
|
||||
@media print {
|
||||
.top,
|
||||
.breadcrumb,
|
||||
.section-header-link,
|
||||
.post-meta-edit-history,
|
||||
.prevnext,
|
||||
.share-buttons,
|
||||
.related-posts,
|
||||
.latest-posts {
|
||||
.comments {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,6 @@ params:
|
||||
# used for "View source" (unset by default)
|
||||
# gitFileURL: https://github.com/BBaoVanC/bobatheme/blob/master
|
||||
# gitFileIcon: github-circle
|
||||
# gitHistoryURL: https://github.com/BBaoVanC/bobatheme/commits/master
|
||||
|
||||
# display a "Latest Posts" section on the homepage below its content
|
||||
homepageLatestPosts: true
|
||||
@ -42,7 +41,6 @@ params:
|
||||
# linkedin: true
|
||||
# reddit: true
|
||||
# telegram: true
|
||||
# print: true
|
||||
|
||||
# show "Latest Posts" section at bottom of content pages
|
||||
# latestPostsOnContent: true
|
||||
|
@ -27,9 +27,6 @@ readingtime:
|
||||
one: "{{ . }} min"
|
||||
other: "{{ . }} mins"
|
||||
|
||||
edit_history:
|
||||
other: "Edit history"
|
||||
|
||||
|
||||
# Post count
|
||||
no_posts:
|
||||
@ -64,8 +61,8 @@ aria_back_to_top_button:
|
||||
aria_rss_link:
|
||||
other: "RSS feed link"
|
||||
|
||||
aria_post_meta_edit_history:
|
||||
other: "link to page edit history"
|
||||
aria_post_meta_view_source:
|
||||
other: "link to page source"
|
||||
|
||||
aria_post_meta_translations:
|
||||
other: "translations"
|
||||
|
@ -27,9 +27,6 @@ readingtime:
|
||||
one: "{{ . }} min"
|
||||
other: "{{ . }} mins"
|
||||
|
||||
edit_history:
|
||||
other: "Historial de cambios"
|
||||
|
||||
|
||||
# Post count
|
||||
no_posts:
|
||||
@ -64,8 +61,8 @@ newer_post:
|
||||
# aria_rss_link:
|
||||
# other: "RSS feed link"
|
||||
|
||||
# aria_post_meta_edit_history:
|
||||
# other: "link to page edit history"
|
||||
# aria_post_meta_view_source:
|
||||
# other: "link to page source"
|
||||
|
||||
# aria_post_meta_translations:
|
||||
# other: "translations"
|
||||
|
@ -1,8 +0,0 @@
|
||||
{{ if and .Site.Params.gitHistoryURL .File.Path }}
|
||||
<span class="post-meta-item post-meta-edit-history" aria-label="{{ i18n "aria_post_meta_edit_history" }}">
|
||||
{{ partial "icon.html" "history" }}
|
||||
<a href="{{ printf "%s/content/%s" .Site.Params.gitHistoryURL .File.Path }}" target="_blank" rel="noopener">
|
||||
{{- i18n "edit_history" -}}
|
||||
</a>
|
||||
</span>
|
||||
{{ end }}
|
13
layouts/partials/post-meta-item/viewsource.html
Normal file
13
layouts/partials/post-meta-item/viewsource.html
Normal file
@ -0,0 +1,13 @@
|
||||
{{ if and .Site.Params.gitFileURL .File.Path }}
|
||||
<span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_view_source" }}">
|
||||
{{ with .Site.Params.gitFileIcon }}
|
||||
{{ partial "icon.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "icon.html" "file" }}
|
||||
{{ end }}
|
||||
|
||||
<a href="{{ printf "%s/content/%s" .Site.Params.gitFileURL .File.Path }}" target="_blank" rel="noopener">
|
||||
View source
|
||||
</a>
|
||||
</span>
|
||||
{{ end }}
|
@ -24,7 +24,7 @@
|
||||
{{ partial "post-meta-item/authors.html" . }}
|
||||
{{ partial "post-meta-item/translations.html" . }}
|
||||
{{ partial "post-meta-item/readingtime.html" . }}
|
||||
{{ partial "post-meta-item/edithistory.html" . }}
|
||||
{{ partial "post-meta-item/viewsource.html" . }}
|
||||
{{ partial "post-meta-item/categories.html" . }}
|
||||
{{ partial "post-meta-item/tags.html" . }}
|
||||
</div>
|
||||
|
@ -16,4 +16,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ partial "post-meta-item/translations.html" . }}
|
||||
{{ if .File }}
|
||||
{{ partial "post-meta-item/viewsource.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
@ -52,11 +52,4 @@
|
||||
</a>
|
||||
{{ end }}
|
||||
*/}}
|
||||
|
||||
{{ if .Site.Params.shareButtons.print }}
|
||||
<button class="print-share"
|
||||
onclick="window.print(); share_event('Print');">
|
||||
{{- partial "icon.html" "printer" -}}
|
||||
</button>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user