Skip to content

Commit

Permalink
fix image show (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
huqiuxiang authored Oct 10, 2024
1 parent edd3556 commit 7c43b4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/post/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
imgElements.forEach(img => {
const src = img.getAttribute('src');
//图片格式列表
if (src.toLowerCase().endsWith('.image')) {
img.setAttribute('src', src.replace('.image', ''));
}
//if (src.toLowerCase().endsWith('.image')) {
//img.setAttribute('src', src.replace('.image', ''));
//}
img.setAttribute('referrerpolicy', 'no-referrer');
});
</script>
Expand Down

0 comments on commit 7c43b4e

Please sign in to comment.