|
@@ -4,8 +4,6 @@
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
|
|
- <meta name="description" content="{dreamer-cms:article field='tag' /}">
|
|
|
- <title>{dreamer-cms:global name="title" /}</title>
|
|
|
<link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
|
|
|
<link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
|
|
|
<link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
|
|
@@ -52,7 +50,8 @@
|
|
|
<section>
|
|
|
<div class="p-2">
|
|
|
<div><img style="width: 100%;object-fit: cover;" data-src="{dreamer-cms:article field='litpic' /}"
|
|
|
- src="{dreamer-cms:template /}assets/img/none.png"></div>
|
|
|
+ src="{dreamer-cms:template /}assets/img/none.png"
|
|
|
+ alt="{dreamer-cms:article field='title' /}"></div>
|
|
|
</div>
|
|
|
</section>
|
|
|
{dreamer-cms:include file='back.html'/}
|
|
@@ -105,11 +104,12 @@
|
|
|
element.style.width = "100%"
|
|
|
});
|
|
|
var imgArr = document.querySelectorAll("#content img")
|
|
|
- imgArr.forEach(i => {
|
|
|
+ imgArr.forEach((i,index) => {
|
|
|
i.style.width = "100%"
|
|
|
i.style.height = "auto"
|
|
|
let src = i.getAttribute("src")
|
|
|
i.setAttribute("data-src", src)
|
|
|
+ i.setAttribute("alt", "图片"+index)
|
|
|
i.setAttribute("src", "{dreamer-cms:template /}assets/img/none.png")
|
|
|
});
|
|
|
})
|