mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-07-17 03:51:56 +00:00
update
This commit is contained in:
parent
5e0bad32e0
commit
7a58953fbf
@ -362,3 +362,21 @@ body[dir="rtl"] .book-menu {
|
|||||||
padding: $padding-16 * 2 $padding-16;
|
padding: $padding-16 * 2 $padding-16;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: none;
|
||||||
|
border-top: 3px double #333;
|
||||||
|
color: #333;
|
||||||
|
overflow: visible;
|
||||||
|
text-align: center;
|
||||||
|
height: 10px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr:after {
|
||||||
|
background: #fff;
|
||||||
|
content: '§';
|
||||||
|
padding: 0 4px;
|
||||||
|
position: relative;
|
||||||
|
top: -13px;
|
||||||
|
}
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
<div class="flex flex-wrap justify-between">
|
|
||||||
|
|
||||||
{{ if .Params.date }} <!-- Check if the date is specified in the page's front matter -->
|
{{ if .Params.date }} <!-- Check if the date is specified in the page's front matter -->
|
||||||
<div>
|
<hr> <!-- This horizontal rule will only render if .Params.date exists -->
|
||||||
{{- $date := .Params.date.Format .Site.Params.BookDateFormat }} <!-- Format the date based on your site's parameters -->
|
<div class="flex flex-wrap justify-between">
|
||||||
<a class="flex align-center" title='{{ i18n "Page dated" }} | {{ $date }}'>
|
<div>
|
||||||
<img src="{{ "svg/calendar.svg" | relURL }}" class="book-icon" alt="Calendar" />
|
{{- $date := .Params.date.Format .Site.Params.BookDateFormat }} <!-- Format the date based on your site's parameters -->
|
||||||
<span>{{ $date }}</span>
|
<a class="flex align-center" title='{{ i18n "Page dated" }} | {{ $date }}'>
|
||||||
</a>
|
<img src="{{ "svg/calendar.svg" | relURL }}" class="book-icon" alt="Calendar" />
|
||||||
|
<span>{{ $date }}</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ $script := resources.Get "clipboard.js" | resources.Minify }}
|
{{ $script := resources.Get "clipboard.js" | resources.Minify }}
|
||||||
{{ with $script.Content }}
|
{{ with $script.Content }}
|
||||||
<script>{{ . | safeJS }}</script>
|
<script>{{ . | safeJS }}</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user