@bbki.ng/site 2.0.45 → 2.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -20,12 +20,12 @@ export const ArticlePage = (props: ArticlePageProps) => {
|
|
|
20
20
|
const { tags: tagNames, title, description, headless } = props;
|
|
21
21
|
const navgation = useNavigate();
|
|
22
22
|
const loading = useSafeArticleLoading(0.2, 5);
|
|
23
|
-
const defaultTag = { children: "目录", to: "/blog" };
|
|
24
|
-
const
|
|
23
|
+
// const defaultTag = { children: "目录", to: "/blog" };
|
|
24
|
+
const allTags = tagNames
|
|
25
25
|
? tagNames.map((t) => ({ children: t, to: `${ROUTES.TAGS}/${t}` }))
|
|
26
26
|
: [];
|
|
27
27
|
|
|
28
|
-
const allTags = [defaultTag, ...tags];
|
|
28
|
+
// const allTags = [defaultTag, ...tags];
|
|
29
29
|
|
|
30
30
|
if (headless) {
|
|
31
31
|
return props.children;
|
|
@@ -43,13 +43,13 @@ export const ArticlePage = (props: ArticlePageProps) => {
|
|
|
43
43
|
>
|
|
44
44
|
<article className={articleCls}>{props.children}</article>
|
|
45
45
|
<div className="mt-[1.25em] relative left-[-4px]">
|
|
46
|
-
{<Tags tags={allTags} />}
|
|
46
|
+
{allTags.length ? <Tags tags={allTags} /> : null}
|
|
47
|
+
<Reaction title={title} />
|
|
47
48
|
</div>
|
|
48
49
|
</Article>
|
|
49
50
|
<div className="px-16">
|
|
50
|
-
<Reaction title={title} />
|
|
51
51
|
<Button
|
|
52
|
-
className="
|
|
52
|
+
className=""
|
|
53
53
|
btnType="button"
|
|
54
54
|
onClick={() => {
|
|
55
55
|
navgation(-1);
|
|
@@ -88,7 +88,7 @@ export const OpenHeartReaction = (props: {
|
|
|
88
88
|
|
|
89
89
|
export const Reaction = (props: { title: string }) => {
|
|
90
90
|
return (
|
|
91
|
-
<div>
|
|
91
|
+
<div className="pt-32">
|
|
92
92
|
<OpenHeartReaction title={props.title} emojiPair={hearts} />
|
|
93
93
|
<OpenHeartReaction title={props.title} emojiPair={faces} />
|
|
94
94
|
<OpenHeartReaction title={props.title} emojiPair={sadFaces} />
|