mirror of
https://github.com/10h30/astroplate.git
synced 2026-06-05 15:08:00 +09:00
modified Disqus
This commit is contained in:
@@ -6,12 +6,12 @@ import Disqus from "@/function-components/Disqus";
|
||||
import { getSinglePage } from "@/lib/contentParser.astro";
|
||||
import dateFormat from "@/lib/utils/dateFormat";
|
||||
import similerItems from "@/lib/utils/similarItems";
|
||||
import { humanize, markdownify, slugify } from "@/lib/utils/textConverter";
|
||||
import { humanize,markdownify,slugify } from "@/lib/utils/textConverter";
|
||||
import { Image } from "@astrojs/image/components";
|
||||
import {
|
||||
FaRegClock,
|
||||
FaRegFolder,
|
||||
FaRegUserCircle,
|
||||
FaRegClock,
|
||||
FaRegFolder,
|
||||
FaRegUserCircle,
|
||||
} from "react-icons/fa/index.js";
|
||||
|
||||
const { blog_folder } = config.settings;
|
||||
@@ -94,9 +94,7 @@ const { title, description, author, categories, image, date, tags } = post.data;
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-20">
|
||||
<Disqus client:load />
|
||||
</div>
|
||||
<Disqus className="mt-20" client:load />
|
||||
</article>
|
||||
</div>
|
||||
|
||||
|
||||
+3
-3
@@ -2,17 +2,17 @@ import config from "@/config/config.json";
|
||||
import { DiscussionEmbed } from "disqus-react";
|
||||
import React from "react";
|
||||
|
||||
const Disqus = () => {
|
||||
const Disqus = ({ className }: { className?: string }) => {
|
||||
const { disqus } = config;
|
||||
return (
|
||||
<>
|
||||
<div className={className}>
|
||||
{disqus.enable && (
|
||||
<DiscussionEmbed
|
||||
shortname={disqus.shortname}
|
||||
config={disqus.settings}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user