mirror of https://github.com/jkjoy/hugoblog.git
12 lines
613 B
HTML
12 lines
613 B
HTML
<div class="heatmap-container" data-rss-url="/index.xml"></div>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
var containers = document.querySelectorAll('.heatmap-container');
|
|
containers.forEach(function(container) {
|
|
var card = document.createElement('heatmap-card');
|
|
card.rss_url = container.getAttribute('data-rss-url'); // 从 data-rss-url 属性中获取 RSS 订阅链接
|
|
container.appendChild(card);
|
|
});
|
|
});
|
|
</script>
|
|
<script src="https://blogcdn.loliko.cn/heatmap.js"></script> |