diff --git a/content/_index.md b/content/_index.md index 1df5dd2..dbca941 100644 --- a/content/_index.md +++ b/content/_index.md @@ -6,4 +6,4 @@ framed = true Welcome to my blog👋 Check these -[💻 技术文章](/categories/%E6%8A%80%E6%9C%AF/) | [📖 My Readings](https://reading.colinx.one) | [💡 My Github](https://github.com/Colin-XKL/) +[💻 技术文章](/categories/%E6%8A%80%E6%9C%AF/) | [📖 My Readings](https://reading.colinx.one) | [💡 My Github](https://github.com/Colin-XKL/) | [💎 公开服务](/services/) diff --git a/content/aboutme.md b/content/aboutme.md index a8863a5..58e2566 100644 --- a/content/aboutme.md +++ b/content/aboutme.md @@ -8,7 +8,7 @@ lastmod: 2021-05-10 ## About Me -00 后,性别男,爱好女,CS 在读,准软件工程师,业余摄影师、音乐制作人,RSS 爱好者 +00 后,性别男,爱好女,CS专业,软件攻城狮一枚,业余摄影师、音乐制作人,RSS 爱好者 ### I Like diff --git a/content/services.md b/content/services.md new file mode 100644 index 0000000..889f3b8 --- /dev/null +++ b/content/services.md @@ -0,0 +1,10 @@ +--- +title: 公开服务 +date: 2022-06-16 + +--- + +这里是一些开放的服务以及一些个人作品 + + +{{< service_list name="aaa" url="http://pro.colinx.oldnine.xyz:10055/items/OpenServices" >}} \ No newline at end of file diff --git a/layouts/shortcodes/service_list.html b/layouts/shortcodes/service_list.html new file mode 100644 index 0000000..d27520f --- /dev/null +++ b/layouts/shortcodes/service_list.html @@ -0,0 +1,30 @@ + +{{ with .Get "url" }} + {{ $url := . }} + {{ with $.Get "name" }} + {{ $name := . }} + {{ $data := getJSON $url }} + {{ range $data.data }} + {{ $item := . }} + +
{{$item.type}} - {{$item.subtitle}}
+地址: + {{ if (gt (len $link.Host) 1) }} + {{$link.Host}} + {{ else }} + {{$item.link}} + {{ end }} +
+ {{ if (gt (len $item.StartServingAt) 1) }} +上线于{{$item.StartServingAt}}
+ {{ end }} + + {{ end }} + {{ end }} +{{ end }} \ No newline at end of file