From f4f4a347e3dd40974fe707fe833bf2f4df7d05c3 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 3 Mar 2025 16:58:21 +0800 Subject: feat(www): update page and use hugo image. --- www/layouts/index.html | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 www/layouts/index.html (limited to 'www/layouts/index.html') diff --git a/www/layouts/index.html b/www/layouts/index.html new file mode 100644 index 0000000..55e49ff --- /dev/null +++ b/www/layouts/index.html @@ -0,0 +1,92 @@ +{{ define "head"}} + {{ partial "css.html" "home.css" }} + {{ partial "css.html" "partials/preview/article.css" }} +{{ end }} + +{{ define "friend" }} + {{ $gh_url := printf "https://github.com/%s" .github}} +
+ + Friend {{.name}}'s avatar
{{.name}}
+ + {{- with resources.Get "github-mark.png" -}} + + {{- end -}} +
+ {{ if .tag }} + {{ .tag }} + {{ end }} +
+{{ end }} + +{{ define "content"}} + My avatar +

Hello! This is crupest !

+
+
+

Welcome to my home page! Nice to meet you here! 🥰

+

If you have something interesting to share with me, feel free to email me at + crupest@crupest.life. + You can also create an issue in any of my repos on GitHub to talk anything to me. +

+ +
+
+ {{ with .GetPage "/posts" }} +
+

Recent Posts (all)

+ {{ partial "preview/posts.html" (dict + "h" "h3" + "pages" (.RegularPages.ByDate.Reverse.Limit 3)) + }} +
+ {{ end }} +
+
+

My Friends (more links are being collected ...)

+
+ {{ block "friend" dict + "name" "wsm" + "avatar" "https://avatars.githubusercontent.com/u/74699943?v=4" + "github" "wushuming666" + }} + {{ end }} + {{ block "friend" dict + "name" "hsz" + "url" "https://www.hszsoft.com" + "avatar" "https://avatars.githubusercontent.com/u/63097618?v=4" + "github" "hszSoft" + "tag" "随性の程序员" + }} + {{ end }} +
+
+
+
+

Always Remember

+
+
+

Die Philosophen haben die Welt nur verschieden interpretiert, es kömmt aber darauf an, sie zu verändern.

+

Translated from German: + The philosophers have only interpreted the world in various ways, the point is to change it.

+
+
+ Karl Marx, Theses on Feuerbach (1845) +
+
+
+{{ end }} \ No newline at end of file -- cgit v1.2.3