Tweak repo desc (WIP)
WIP because I'd like it to be visible even if repo is empty Signed-off-by: Minecon724 <minecon724@noreply.git.m724.eu>
This commit is contained in:
parent
f6465295a9
commit
9a5cd6bac3
2 changed files with 7 additions and 1 deletions
|
@ -9,7 +9,9 @@
|
|||
<div id="repo-desc" class="tw-break-anywhere tw-text-16">
|
||||
{{$description := .Repository.DescriptionHTML $.Context}}
|
||||
{{if $description}}<span class="description">{{$description | RenderCodeBlock}}</span>{{else}}<span class="no-description text-italic">{{ctx.Locale.Tr "repo.no_desc"}}</span>{{end}}
|
||||
{{if .Repository.Website}}<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}}
|
||||
{{if .Repository.Website}}
|
||||
<a class="link tw-mt-1 tw-flex tw-items-center tw-gap-1" href="{{.Repository.Website}}">{{svg "octicon-globe"}} {{.Repository.Website}}</a>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-my-2" id="repo-topics">
|
||||
|
|
|
@ -3016,3 +3016,7 @@ tbody.commit-list {
|
|||
#repo-activity-top-authors-chart {
|
||||
height: 150px; /* Pre-allocate the height that will be taken up by the chart, to avoid the container 'jumping'. */
|
||||
}
|
||||
|
||||
.no-description {
|
||||
color: var(--color-text-light-3);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue