feat(templates/repository, templates/terminal): additional support (#660)
This commit is contained in:
@@ -4,5 +4,7 @@
|
||||
"base.repositories",
|
||||
"gists",
|
||||
"languages",
|
||||
"pagespeed"
|
||||
"pagespeed",
|
||||
"isocalendar",
|
||||
"screenshot"
|
||||
]
|
||||
7
source/templates/terminal/partials/isocalendar.ejs
Normal file
7
source/templates/terminal/partials/isocalendar.ejs
Normal file
@@ -0,0 +1,7 @@
|
||||
<% if (plugins.isocalendar) { %>
|
||||
<div class="stdin"><%- meta.$ %> ncal -MB<%= {"half-year":5, "full-year":11}[plugins.isocalendar.duration] %></div><%# -%>
|
||||
<div class="stdout"><%# -%><div class="isocalendar"><%- plugins.isocalendar.svg %></div>
|
||||
<b><%= `${plugins.isocalendar.streak.current}`.padStart(5) %></b> consecutive day<%= s(plugins.isocalendar.streak.current) %> with commits
|
||||
<b><%= `~${plugins.isocalendar.average}`.padStart(5) %></b> commits per day in average
|
||||
</div>
|
||||
<% } %>
|
||||
4
source/templates/terminal/partials/screenshot.ejs
Normal file
4
source/templates/terminal/partials/screenshot.ejs
Normal file
@@ -0,0 +1,4 @@
|
||||
<% if (plugins.screenshot) { %>
|
||||
<div class="stdin"><%- meta.$ %> wget <%= plugins.screenshot.url %></div><%# -%>
|
||||
<div class="stdout"><%# -%><img class="screenshot autosize" src="<%= plugins.screenshot.image %>" height="<%= plugins.screenshot.height %>" width="<%= plugins.screenshot.width %>" alt=""/></div>
|
||||
<% } %>
|
||||
@@ -63,6 +63,22 @@
|
||||
color: #AE9DA7;
|
||||
}
|
||||
|
||||
/* Isocalendar */
|
||||
.isocalendar svg {
|
||||
margin-top: -20px !important;
|
||||
}
|
||||
|
||||
/* Images */
|
||||
.isocalendar svg, .screenshot {
|
||||
filter: grayscale(1) brightness(.9) opacity(.7);
|
||||
}
|
||||
|
||||
/* Autosize */
|
||||
.autosize {
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* Prompt */
|
||||
.ps1-path {
|
||||
color: #7EDA29;
|
||||
|
||||
Reference in New Issue
Block a user