Skip to content

Commit 361de98

Browse files
committed
feat: 样式调整,补充 create_time
1 parent 735c3b0 commit 361de98

File tree

7 files changed

+28
-11
lines changed

7 files changed

+28
-11
lines changed

components/c-article.vue

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@
66
<div
77
class="flex flex-wrap justify-center items-center space-x-4 mb-4 text-gray-700 text-sm"
88
>
9-
<p>
9+
<p v-if="doc.create_time">
1010
<span>发布于</span>
11+
<nuxt-link class="underline ml-1" :to="parseUrlByDoc(doc)">{{
12+
formatDate(doc.create_time)
13+
}}</nuxt-link>
14+
</p>
15+
<p>
16+
<span>更新于</span>
1117
<nuxt-link class="underline ml-1" :to="parseUrlByDoc(doc)">{{
1218
getPublishDate(doc)
1319
}}</nuxt-link>

components/c-side-bar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<var-cell ripple title="Tools">
7575
<template #icon>
7676
<icon
77-
name="material-symbols:auto-label-outline"
77+
name="material-symbols:tools-power-drill-outline"
7878
size="18"
7979
class="mr-2"
8080
/>

content/blogs/编写一个小工具方便快速为文章添加 Banner.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 编写一个小工具方便快速为文章添加 Banner
33
slug: add-a-post-banner-tool
44
update_time: 2023/10/13 00:10:21
5+
create_time: 2023/10/12 12:10:00
56
---
67

78
![image.png](https://cdn.ijust.cc/img/20231012232656.png)

nuxt.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ export default defineNuxtConfig({
102102
{
103103
rel: "icon",
104104
href: "/favicon.ico",
105+
type: "image/x-icon",
106+
},
107+
{
108+
rel: "icon",
109+
href: "/favicon.png",
110+
type: "image/png",
111+
},
112+
{
113+
rel: "apple-touch-icon",
114+
href: "/favicon.png",
105115
},
106116
{
107117
// sitemap

pages/podcasts/page/[page].vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const { data } = await useAsyncData(key, () =>
8888
.find(),
8989
);
9090
91-
console.log(44, data.value);
91+
// console.log(44, data.value);
9292
9393
// 转换成数组,按照年份倒序
9494
yearFilterDataArray.value = filterYearDate(data.value ?? []);

pages/tools/canvas.vue

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<UiCardContent class="space-y-4">
1010
<div class="space-y-2">
1111
<div class="flex space-x-4">
12-
<div class="w-1/3">
12+
<div class="w-1/3 space-y-2">
1313
<UiLabel for="config-width"
1414
>宽 Width {{ config.width[0] }}px</UiLabel
1515
>
@@ -22,7 +22,7 @@
2222
:step="1"
2323
/>
2424
</div>
25-
<div class="w-1/3">
25+
<div class="w-1/3 space-y-2">
2626
<UiLabel for="config-height"
2727
>高 Height {{ config.height[0] }}px</UiLabel
2828
>
@@ -217,12 +217,12 @@ const defaultModel = () => ({
217217
height: [250],
218218
background: "blue",
219219
hue: [160],
220-
personSize: [200],
221-
text: "web worker podcast",
222-
personY: [0],
223-
textY: [10],
224-
fontSize: [22],
225-
fromText: "@webworker.tech",
220+
personSize: [230],
221+
text: "编写一个好标题",
222+
personY: [13],
223+
textY: [13],
224+
fontSize: [26],
225+
fromText: "@ijust.cc",
226226
fromEnable: true,
227227
});
228228

public/favicon.png

52.9 KB
Loading

0 commit comments

Comments
 (0)