Fix pagespeed plugin displayed url
This commit is contained in:
@@ -394,7 +394,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg>
|
||||||
<%= user.websiteUrl %>
|
<%= plugins.pagespeed.url %>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
@@ -135,12 +135,12 @@ Total <%= plugins.gists.totalCount %> gist<%= s(plugins.gists.totalCount) %>
|
|||||||
</div><% } -%>
|
</div><% } -%>
|
||||||
<%# ============================================================= -%>
|
<%# ============================================================= -%>
|
||||||
<% if (plugins.pagespeed) { %>
|
<% if (plugins.pagespeed) { %>
|
||||||
<div class="stdin"><%- meta.$ %> curl -<%= plugins.pagespeed.detailed ? "v" : "" %>I <%= user.websiteUrl %></div><%# -%>
|
<div class="stdin"><%- meta.$ %> curl -<%= plugins.pagespeed.detailed ? "v" : "" %>I <%= plugins.pagespeed.url %></div><%# -%>
|
||||||
<div class="stdout"><%# -%>
|
<div class="stdout"><%# -%>
|
||||||
<% if (plugins.pagespeed.error) { -%>
|
<% if (plugins.pagespeed.error) { -%>
|
||||||
<span class="error"><%= plugins.pagespeed.error.message %></span><% } else { -%>
|
<span class="error"><%= plugins.pagespeed.error.message %></span><% } else { -%>
|
||||||
<b>User-Agent</b>: Google PageSpeed API
|
<b>User-Agent</b>: Google PageSpeed API
|
||||||
<b>Location</b>: <%= user.websiteUrl %>
|
<b>Location</b>: <%= plugins.pagespeed.url %>
|
||||||
<% for (const {score, title} of plugins.pagespeed.scores) { -%>
|
<% for (const {score, title} of plugins.pagespeed.scores) { -%>
|
||||||
<b><%= `X-${title.replace(/ /g, "-")}` %></b>: <%= !Number.isNaN(score) ? Math.round(score*100) : "-" %>%
|
<b><%= `X-${title.replace(/ /g, "-")}` %></b>: <%= !Number.isNaN(score) ? Math.round(score*100) : "-" %>%
|
||||||
<% } -%>
|
<% } -%>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Reference in New Issue
Block a user