diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 13b0663..263540f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -34,10 +34,6 @@ There are other easy ways to support the project and show your appreciation, whi - Environment details (browser, OS, etc.) - For feature requests, describe the feature and why you think it would be useful -For the language of the issue, please use English or Chinese. Both are OK, but using English is preferred as it allows more people to understand the issue and help with it. - -If you are not comfortable with either, you can still use your native language (or use a translator), but I may not be able to fully understand it. - ## Development ### Development Environment This project is built using Astro, requiring a Node.js (v22.15.1 (lts) is recommended) environment. @@ -92,11 +88,6 @@ Now you already made changes to the code and want to commit it. please: - Link any related issues in the PR description (if any) - Provide a clear description of the changes -For the language of the pull request message, please use English or Chinese. Both are OK, but using English is preferred as it allows more people to understand the issue and help with it. - -If you are not comfortable with either, you can still use your native language (or use a translator), but I may not be able to fully understand it. - - ## Code of Conduct Please be respectful and considerate of others when contributing. I want to maintain a welcoming and inclusive environment for everyone. diff --git a/src/components/shortcodes/LinkCard.astro b/src/components/shortcodes/LinkCard.astro deleted file mode 100644 index 8575860..0000000 --- a/src/components/shortcodes/LinkCard.astro +++ /dev/null @@ -1,239 +0,0 @@ ---- -interface Props { - url: string; - showArchive?: boolean; - title?: string; - description?: string; - siteName?: string; -} - -const { url, showArchive = true} = Astro.props; - -const siteMetadata = { - title: Astro.props.title || '', - description: Astro.props.description || '', - siteName: Astro.props.siteName || '', - image: '', - domain: new URL(url).hostname || '' -}; - -// Get metadata from the URL -async function fetchMetadata(url: string) { - try { - const response = await fetch(url, { - headers: { - 'User-Agent': 'Mozilla/5.0 (compatible; LinkCard/1.0)' - } - }); - - if (!response.ok) { - throw new Error(`HTTP ${response.status}`); - } - - const html = await response.text(); - - // 提取元数据 - const titleMatch = html.match(/
{metadata.description}
- )} - - {metadata.siteName && - } -