-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,39 @@ | ||
<div class="flex flex-wrap justify-between"> | ||
{{ if .Site.IsMultiLingual }} | ||
{{ if .Site.IsMultiLingual }} | ||
{{ partial "docs/languages" . }} | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ if and .GitInfo .Site.Params.BookRepo }} | ||
{{ if and .GitInfo .Site.Params.BookRepo }} | ||
<div> | ||
{{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}} | ||
{{- $commitPath := default "commit" .Site.Params.BookCommitPath -}} | ||
<a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ $commitPath }}/{{ .GitInfo.Hash }}" title='{{ i18n "Last modified by" }} {{ .GitInfo.AuthorName }} | {{ $date }}' target="_blank" rel="noopener"> | ||
<img src="{{ "svg/calendar.svg" | relURL }}" class="book-icon" alt="Calendar" /> | ||
<a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ $commitPath }}/{{ .GitInfo.Hash }}" | ||
title='{{ i18n "Last modified by" }} {{ .GitInfo.AuthorName }} | {{ $date }}' target="_blank" rel="noopener"> | ||
<img src="{{ " svg/calendar.svg" | relURL }}" class="book-icon" alt="Calendar" /> | ||
<span>{{ $date }}</span> | ||
</a> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }} | ||
{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }} | ||
<div> | ||
<a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ .Site.Params.contentDir | default "content" }}/{{ replace .File.Path "\\" "/" }}" target="_blank" rel="noopener"> | ||
<img src="{{ "svg/edit.svg" | relURL }}" class="book-icon" alt="Edit" /> | ||
<a class="flex align-center" | ||
href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ .Site.Params.contentDir | default " content" | ||
}}/{{ replace .File.Path "\\" "/" }}" target="_blank" rel="noopener"> | ||
<img src="{{ " svg/edit.svg" | relURL }}" class="book-icon" alt="Edit" /> | ||
<span>{{ i18n "Edit this page" }}</span> | ||
</a> | ||
</div> | ||
{{ end }} | ||
</div> | ||
{{ end }} | ||
|
||
<div class="footer"> | ||
计算机技术学习札记 — <a href="https://www.criwits.top/terms">使用条款</a><br> | ||
<a href="https://beian.miit.gov.cn/" target="_blank">粤<span class="kerning">ICP</span>备<span | ||
class="beian-mono kerning">2022104373</span>号<span class="kerning beian-mono">-</span><span | ||
class="beian-mono">1</span></a><br> | ||
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030502009325" target="_blank">粤公网安备<span | ||
class="beian-mono kerning">44030502009325</span>号</a> | ||
|
||
</div> | ||
|
||
</div> |