惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Azure Blog
Microsoft Azure Blog
S
Security @ Cisco Blogs
P
Proofpoint News Feed
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Last Watchdog
The Last Watchdog
AI
AI
Webroot Blog
Webroot Blog
aimingoo的专栏
aimingoo的专栏
Hacker News: Ask HN
Hacker News: Ask HN
B
Blog RSS Feed
小众软件
小众软件
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
W
WeLiveSecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Troy Hunt's Blog
云风的 BLOG
云风的 BLOG
P
Privacy International News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Vercel News
Vercel News
Y
Y Combinator Blog
P
Proofpoint News Feed
V2EX - 技术
V2EX - 技术
AWS News Blog
AWS News Blog
F
Fortinet All Blogs
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
A
Arctic Wolf
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
V2EX
MongoDB | Blog
MongoDB | Blog
SecWiki News
SecWiki News
The Register - Security
The Register - Security
博客园_首页
T
Threat Research - Cisco Blogs
Hacker News - Newest:
Hacker News - Newest: "LLM"
Recorded Future
Recorded Future
V
Vulnerabilities – Threatpost
I
InfoQ
雷峰网
雷峰网
C
Check Point Blog

EINDEX's Blog

2 2024-ending #1 Mid-Autumn Festival improving-your-code-review-process-with-semgrep semgrep-with-custom-rules
webmentions
EINDEX · 2022-12-05 · via EINDEX's Blog

webmentionsBlur image

/ Update

A beginner's guide to Webmentions, explaining what they are, how to join the community (using webmention.io, microformats2), benefits, and automation using GitHub Actions.

Recently I came across Now, I’m in IndieWeb? and learned about webmentions. I found the concept very interesting and decided to join the webmentions community for my blog.

What Are Webmentions#

Webmentions are a way for websites to communicate with each other and notify each other when they link to each other’s content. This allows for a more interactive and connected online community, where websites can engage with each other and their users in real-time.

To join the webmentions community and start receiving notifications when other websites link to your content, you need to take the following steps:

  1. Register your website with a webmention service, such as webmention.io. This will allow your website to receive webmentions from other sites and also enable you to send webmentions to other sites when you link to them. To do this, you can add the following HTML code to your website:

    <link rel="webmention" href="https://webmention.io/eindex.me/webmention" />
    <link rel="pingback" href="https://webmention.io/eindex.me/xmlrpc" />

    html

  2. Make sure your website follows the microformats2 standard. This may require some effort, but it is important for ensuring that your website can properly send and receive webmentions. You can use a tool like IndieWebify.Me to check if your website is using microformats2 correctly. You may also want to use a tool like ngrok or cloudflare tunnel to debug your website locally, which can save you time.

  3. Start sending and receiving webmentions on your website. Once your website is registered with a webmention service and you have tested your implementation, you can start using webmentions on your site. Whenever you link to another website, you can send a webmention to notify them of your link. And whenever someone else links to your website, you can receive a webmention notification and display that link on your site.

  4. Consider using tools like Github actions and JavaScript scripts to automate the process of sending and receiving webmentions. This is particularly useful for static websites. For example, you can store your webmentions in a webmentions branch on Github, and use a workflow file like this to fetch webmentions and send your webmentions, you also can check my implement for this blog:

    name: Fetch Webmentions
    on:
    schedule:
        - cron: "0 0 * * *"
    jobs:
    fetch_webmentions:
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v2
            with:
            ref: webmentions
        - name: Fetch Webmentions
            run: node pipeline/webmentions.js
        - name: Send Webmetnions
            run: node pipeline/send-webmentions.js

    yaml

By following these steps, you can join the webmentions community and start enjoying the benefits of more interactive and engaging communication with other websites and their users.

e

There are many potential benefits to joining the webmentions community and implementing webmentions on your website. Some of the potential benefits include:

  • Increased engagement and connectivity with other websites and theirusers. By receiving notifications when other websites link to your content and being able to notify other websites when you link to them, you can foster a more interactive and connected online community. This can lead to increased traffic and potentially even more opportunities for collaboration and engagement.
  • Improved communication and collaboration with other websites. Webmentions allow for real-time communication between websites, which can be helpful for coordinating efforts and staying up-to-date with the latest developments in the webmentions community.
  • The ability to participate in the evolving web ecosystem. Webmentions are a form of “web 3.0” where websites are more interconnected and interactive than in the past. By joining the webmention community, you can be part of this evolving web ecosystem and potentially benefit from new opportunities and connections that arise.

Of course, joining the webmention community does require some effort and resources, so it may not be the right decision for everyone. But for many website owners, the potential benefits of joining the webmention community may outweigh the challenges, making it a worthwhile investment.

Conclusion#

In this beginner’s guide, we’ve covered the steps involved in joining the webmentions community and implementing webmentions on your website. By following these steps, you can join the webmentions community and start enjoying the benefits of more interactive and engaging communication with other websites and their users. While there are some challenges and resources required to join the webmention community, the potential benefits may outweigh the challenges for many website owners.