iissnan / iissnan/theme-next-docs

如何在Markdown中插入自定义yml文件中的数据

Open
#249 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
165
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Jekyll有这样的功能,比如在md中可以直接使用`![]({{ site.data.year_book.January.iOS }})`来插入图片的链接
``` yaml
# source\_data\year_book\January.yml
iOS: https://.../xx.jpg
```
请问Hexo环境下,md写作插入数据的语法是什么?如果该功能不可用,应该如何实现?
[知乎](https://www.zhihu.com/question/264598381)中有一个相似的问题,但是不太懂具体做法。

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue asks how Hexo Markdown can use values from a custom YAML file, with a Jekyll example and a linked Zhihu discussion. No repository file, test, or entry point is mentioned. A complete result would document whether this is supported and, if not, provide a verified implementation approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, yaml
Domain
documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.