我可以将哪些自定义代码添加到Squarespace中以将整天发布到博客文章中?看起来像这样:每篇网志文章于2020年4月29日星期三吗?
这是我目前拥有的:2020年4月29日
<time class="dt-published blog-meta-item blog-meta-item--date" datetime="Apr 28" pubdate="" data-content-field="published-on">
<span>Apr 29, 2020</span>
</time>
我相信您正在JavaScript中寻找Date方法。
基本上我只是每天和每个月都向字符串数组中插入内容,并通过Date()
函数提取当前日期。