Skip to content
This repository was archived by the owner on Oct 20, 2020. It is now read-only.

Commit fd4e73c

Browse files
committed
feat(build): do not use build.time
1 parent b527279 commit fd4e73c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

templates/feed.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<description><%= config.description %></description>
66
<link><%= config.webHost %></link>
77
<atom:link href="<%= config.webHost %><%= config.baseHref %>feed.xml" rel="self" type="application/rss+xml" />
8-
<pubDate><%= new Date(build.time).toUTCString() %></pubDate>
9-
<lastBuildDate><%= new Date(build.time).toUTCString() %></lastBuildDate>
8+
<pubDate><%= new Date().toUTCString() %></pubDate>
9+
<lastBuildDate><%= new Date().toUTCString() %></lastBuildDate>
1010
<generator>https://github.com/coderbyheart/underline</generator>
1111
<% content.posts.sort((a,b) => a.content.publicationDate > b.content.publicationDate ? -1 : 1).slice(0, 10).map(({content,
1212
page}) => { %>

templates/includes/meta.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
33
<meta name="description" content="<%= config.description %>">
44
<meta name="disqus" content="<%= config.disqus %>">
5-
<meta name="version" content="<%= build.version %>-<%= build.time %>">
5+
<meta name="version" content="<%= build.version %>">
66
<meta name="identifier" content="<%= build.identifier %>">
77
<link rel="alternate" type="application/rss+xml" title="<%= config.appName %> &raquo; Feed" href="<%= config.webHost %><%= config.baseHref %>feed.xml" />
88
<link rel="canonical" href="<%= page.url %>">
9-
<link rel="deferred-stylesheet" href="./css/underline.min.css?v=<%= build.version %>-<%= build.time %>"/>
9+
<link rel="deferred-stylesheet" href="./css/underline.min.css?v=<%= build.version %>"/>
1010
<base href="<%= config.baseHref %>">

templates/includes/script.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script defer type="text/javascript" src="js/underline.min.js?v=<%= build.version %>-<%= build.time %>"></script>
1+
<script defer type="text/javascript" src="js/underline.min.js?v=<%= build.version %>"></script>

0 commit comments

Comments
 (0)