Skip to content

Commit

Permalink
feat: 样式调整,补充 create_time
Browse files Browse the repository at this point in the history
  • Loading branch information
Otto-J committed Oct 13, 2023
1 parent 735c3b0 commit 361de98
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 11 deletions.
8 changes: 7 additions & 1 deletion components/c-article.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
<div
class="flex flex-wrap justify-center items-center space-x-4 mb-4 text-gray-700 text-sm"
>
<p>
<p v-if="doc.create_time">
<span>发布于</span>
<nuxt-link class="underline ml-1" :to="parseUrlByDoc(doc)">{{
formatDate(doc.create_time)
}}</nuxt-link>
</p>
<p>
<span>更新于</span>
<nuxt-link class="underline ml-1" :to="parseUrlByDoc(doc)">{{
getPublishDate(doc)
}}</nuxt-link>
Expand Down
2 changes: 1 addition & 1 deletion components/c-side-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<var-cell ripple title="Tools">
<template #icon>
<icon
name="material-symbols:auto-label-outline"
name="material-symbols:tools-power-drill-outline"
size="18"
class="mr-2"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 编写一个小工具方便快速为文章添加 Banner
slug: add-a-post-banner-tool
update_time: 2023/10/13 00:10:21
create_time: 2023/10/12 12:10:00
---

![image.png](https://cdn.ijust.cc/img/20231012232656.png)
Expand Down
10 changes: 10 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ export default defineNuxtConfig({
{
rel: "icon",
href: "/favicon.ico",
type: "image/x-icon",
},
{
rel: "icon",
href: "/favicon.png",
type: "image/png",
},
{
rel: "apple-touch-icon",
href: "/favicon.png",
},
{
// sitemap
Expand Down
2 changes: 1 addition & 1 deletion pages/podcasts/page/[page].vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const { data } = await useAsyncData(key, () =>
.find(),
);
console.log(44, data.value);
// console.log(44, data.value);
// 转换成数组,按照年份倒序
yearFilterDataArray.value = filterYearDate(data.value ?? []);
Expand Down
16 changes: 8 additions & 8 deletions pages/tools/canvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<UiCardContent class="space-y-4">
<div class="space-y-2">
<div class="flex space-x-4">
<div class="w-1/3">
<div class="w-1/3 space-y-2">
<UiLabel for="config-width"
>宽 Width {{ config.width[0] }}px</UiLabel
>
Expand All @@ -22,7 +22,7 @@
:step="1"
/>
</div>
<div class="w-1/3">
<div class="w-1/3 space-y-2">
<UiLabel for="config-height"
>高 Height {{ config.height[0] }}px</UiLabel
>
Expand Down Expand Up @@ -217,12 +217,12 @@ const defaultModel = () => ({
height: [250],
background: "blue",
hue: [160],
personSize: [200],
text: "web worker podcast",
personY: [0],
textY: [10],
fontSize: [22],
fromText: "@webworker.tech",
personSize: [230],
text: "编写一个好标题",
personY: [13],
textY: [13],
fontSize: [26],
fromText: "@ijust.cc",
fromEnable: true,
});
Expand Down
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 361de98

Please sign in to comment.