Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4b5b29c

Browse files
committedNov 17, 2024·
更新
1 parent 6a09e07 commit 4b5b29c

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed
 

‎content/about.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "CoderStar"
3+
url: "/about"
4+
---
5+
6+
## 关于我
7+
---
8+
9+
> - Emial: 1340529758@qq.com
10+
> - WebSite: https://coder-star.github.io/
11+
> - 公众号:CoderStar
12+
13+
![CoderStar](assets/OfficialAccounts.jpg)

‎hugo.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ menu:
5858
name: Tags
5959
url: /tags/
6060
weight: 3
61+
- identifier: about
62+
name: About
63+
url: /about/
64+
weight: 4
6165
- identifier: search
6266
name: Search
6367
url: /search/

‎layouts/_default/_markup/render-image.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{{- if strings.HasSuffix $url.Path ".md" -}}
2727
{{- relref .Page .Destination | safeURL -}}
2828
{{- else -}}
29-
{{- printf "/%s%s" .Page.File.Dir .Destination | safeURL -}}
29+
{{- printf "%s%s" .Page.File.Dir .Destination | safeURL -}}
3030
{{- end -}}
3131
{{- else -}}
3232
{{- .Destination | safeURL -}}
@@ -38,7 +38,7 @@
3838
{{- if strings.HasSuffix $url.Path ".md" -}}
3939
{{- relref .Page .Destination | safeURL -}}
4040
{{- else -}}
41-
{{- printf "/%s%s" .Page.File.Dir .Destination | safeURL -}}
41+
{{- printf "%s%s" .Page.File.Dir .Destination | safeURL -}}
4242
{{- end -}}
4343
{{- else -}}
4444
{{- .Destination | safeURL -}}
@@ -51,7 +51,7 @@
5151
<script>
5252
document.addEventListener("DOMContentLoaded", function() {
5353
var images = document.querySelectorAll(".responsive-image");
54-
var maxHeight = window.innerHeight / 3;
54+
var maxHeight = window.innerHeight;
5555
images.forEach(function(image) {
5656
image.style.maxHeight = maxHeight + "px";
5757
});

0 commit comments

Comments
 (0)
Please sign in to comment.