Skip to content

如何实现动态友链,按照文档写的并没有生效,network也没有看到有该接口的网络请求 {% sites api:https://api.vlts.cc/output_data/v2/volantis-x/examples %} #857

Closed Answered by seepine
seepine asked this question in Q&A
Discussion options

You must be logged in to vote


源码site.js是这么拼接,因此必须有repo才会渲染

{%  sites repo:autogen.json  api:https://raw.githubusercontent.com/seepine/blog-friends/output %}

且因其中v1是写死的变量,因此提供的数据接口路径必须有包含v1,拼接完是
https://raw.githubusercontent.com/seepine/blog-friends/output/v1/autogen.json

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by seepine
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants