Skip to content

Commit

Permalink
Some more info, if they are forked or not.
Browse files Browse the repository at this point in the history
  • Loading branch information
arran4 committed Jun 20, 2024
1 parent 20191dd commit 6e2ebb9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 8 additions & 3 deletions content/repos/_content.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,21 @@
"categories" (slice "Repos")
"default_branch" .default_branch
"heroUrl" $heroUrl
"full_name" .full_name
"private" .private
"archived" .archived
"fork" .fork
}}
{{ $page := dict
"content" $content
"dates" $dates
"kind" "page"
"params" $params
"path" .node_id
"title" .full_name
"title" .name
}}
{{ $.AddPage $page }}

{{ if not (or .private ) }}
{{ $.AddPage $page }}
{{ end }}
{{ end }}

2 changes: 2 additions & 0 deletions layouts/partials/repocards/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ <h5 class="card-title">{{ .Title }}</h5>
{{ if and site.Params.features.tags.enable site.Params.features.tags.on_card }}
{{ partial "misc/repotags.html" (index .Params "repo-tags" ) }}
{{ end }}
{{ if .Params.fork }} Forked {{ end }}
{{ if .Params.archived }} Archived {{ end }}
</div>
<div class="card-footer">
<span class="float-repot">
Expand Down
2 changes: 2 additions & 0 deletions layouts/repos/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ <h5 class="author-name"><a href="{{ .Params.owner.html_url}}">{{ .Params.owner.l

<div class="title">
<h1><a href="{{ .Params.html_url}}">{{ .Page.Title }}</a></h1>
{{ if .Params.fork }} Forked {{ end }}
{{ if .Params.archived }} Archived {{ end }}
</div>

{{ if not (site.Params.features.blog.showAuthor | default true) }}
Expand Down

0 comments on commit 6e2ebb9

Please sign in to comment.