Add repository name and update README.md

This commit is contained in:
linguist
2021-01-02 15:30:27 +01:00
parent 7da310c020
commit b94281de8c
6 changed files with 47 additions and 4 deletions

View File

@@ -22,6 +22,10 @@
<% if (base.header) { %>
<section>
<h1 class="field">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill="#0366d6" fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 014.5 0h8.75a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75h-2.5a.75.75 0 110-1.5h1.75v-2h-8a1 1 0 00-.714 1.7.75.75 0 01-1.072 1.05A2.495 2.495 0 012 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 011-1h8zM5 12.25v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"></path></svg>
<span><%= user.name %></span>
</h1>
<div class="row">
<section>
<div class="field <%= computed.cakeday ? 'cakeday' : '' %>">

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -56,6 +56,9 @@
await common(...arguments)
await Promise.all(pending)
//Set repository name
data.user.name = `${data.user.login}/${repo}`
//Reformat projects names
if (data.plugins.projects)
data.plugins.projects.list?.map(project => project.name = project.name.replace(`(${login}/${repo})`, "").trim())