Avatar 灵的梦境

Friend Links

Configurations for friend links

Links page is a page for showing your friend blog links, which is enabled by default.

If you want to remove the links page for any reason, follow the steps in this section. Otherwise, you can skip ahead to the next chapter.

Set links.enable to false in src/site.config.ts:

src/site.config.ts
export const integ: IntegrationUserConfig = {
  // ...
  links: {
    enable: false
  }
}
ts

And also, remember to delete the following folders & files:

  • src/components/links/
  • src/pages/links/
  • public/links.json

Basic Configurations#

A basic configuration for friend links is in src/site.config.ts. You can add your friend’s logbook or your own link info.

The friend links configurations are at public/links.json.

Iris includes an optional GitHub Issue workflow that validates backlinks and writes approved sites to public/links.json.

The automation uses these files:

  • .github/ISSUE_TEMPLATE/friend-link.yml collects the application.
  • .github/friend-link.config.json defines your site information and target friend group.
  • .github/workflows/friend-link-checker.yml listens for new issues and author comments.
  • After approval, the checker commits the friend link and explicitly dispatches the configured Pages workflow. GitHub does not trigger another workflow from a push made with the default GITHUB_TOKEN.
  • .github/scripts/process-friend-request.cjs validates the site with Playwright and updates the JSON file.

Before enabling it:

  1. Edit .github/friend-link.config.json, replace the example site information and set site.friendPage to your own friend-links page.
  2. Change the automatic application URL in src/pages/links/index.astro to your repository.
  3. In GitHub, open Settings > Actions > General > Workflow permissions and enable Read and write permissions.
  4. Ensure direct pushes from GitHub Actions are allowed on the default branch.

Applicants must add your site first. If validation fails, the Issue receives a friend-link: needs-update label. The Issue author can comment after fixing the page to trigger validation again. A successful technical validation does not add the link immediately: it receives the friend-link: awaiting-review label and waits for a maintainer with repository write access. Maintainers can comment /approve to revalidate and add the link, or /reject reason to reject and close it.

Integrated with Friend-Circle-Lite#

Friend-Circle-Lite is a stripped-down friend-link app with no backend and running only using github action.

It requires:

  1. A github repository with github actions enabled by cron.
  2. A static site server like Vercel, Netlify, GitHub Pages, etc.

This theme has not integrated it and will not provide support for it in the future. But don’t worry, this doc will guide you to integrate it.

  1. Fork the Friend-Circle-Lite.

  2. Modify the config.yaml in your forked repository:

    config.yaml
    spider_settings:
       enable: true
       json_url: "<your-site>/links.json"
       article_count: 4
    yaml
  3. Go to “Actions” page and run workflow “Friend Circle Lite” manually to check if it works. This will also generate server files in “page” branch.

  4. Checkout docs to deploy the server files to your static site server.

  5. Add fetching script file friendCircle.ts to your project at path src/plugins.

  6. Add style file fc.css to your project at path src/assets/styles.

  7. Add initialize code in src/components/pages/links/index.astro:

Knowledge map

知识图谱

当前文档、同目录指南与引用关系。

准备中 全局图谱

正在构建知识图谱...

拖动节点 · 滚动缩放 · 点击打开

帮助与支持

这篇文档有帮助吗?

请给我们反馈以改进文档质量
(点击按钮后会打开邮箱)

帮助改进文档

所有文档均开源,发现问题或不清楚的地方?提交 PR 来帮助改进。

编辑此页面 了解如何贡献 →

需要更多帮助?

加入社区或直接联系获取支持

探索更多

发现知识库中的更多指南与资源

文件管理器 /
位置 /
内容
Knowledge explorer

知识图谱

全部知识 准备图谱...
文章 文档 标签 分类

正在加载知识网络...

拖动节点 · 滚动缩放 · 单击查看详情 · 双击打开页面
标签云 / Tag Cloud