Skip to content

Commit

Permalink
Format projects footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
01100100 committed Aug 11, 2024
1 parent 72250bc commit a317867
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
3 changes: 2 additions & 1 deletion assets/css/_page/_projects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,13 @@
}
}

.post-footer {
.project-footer {
margin-top: .4rem;
display: flex;
justify-content: space-between;
align-items: center;
font-size: .875rem;
flex-wrap: wrap;

@include link(false, false);

Expand Down
29 changes: 15 additions & 14 deletions layouts/_default/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ <h1 class="single-title" itemprop="name headline">
<a href="{{ $params.website }}">{{ .Title }}</a>
</h1>

{{- /* Meta */ -}}
<div class="project-meta">
<span class="project-github">
{{- with $params.github -}}
<a href="{{ . }}" target="_blank" rel="noopener noreferrer"><i class='fab fa-github fa-fw'></i>Repo on Github</a>
{{- end -}}
</span>
</div>

{{- /* Summary content */ -}}
<div class="content">
{{- with .Summary -}}
Expand All @@ -48,16 +39,26 @@ <h1 class="single-title" itemprop="name headline">
{{- end -}}
</div>

{{- /* Meta */ -}}




{{- /* Footer */ -}}
<div class="post-footer">
<div class="project-footer">
<div class="github">
<i class='fab fa-github fa-fw'></i>
<a href="{{ $params.github }}" target="_blank" rel="noopener noreferrer">Repo on Github</a>
</div>
{{- with .Params.tags -}}
<div class="post-tags">
<i class="fas fa-tags fa-fw"></i>&nbsp;
<div class="tech-tags">
<i class="fas fa-cogs fa-fw"></i>&nbsp;&nbsp;
{{- range $index, $value := . -}}
{{- if gt $index 0 }},&nbsp;{{ end -}}
{{- if lt $index 0 }},&nbsp;{{ end -}}
<code>
{{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
<a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a>
{{ $tag.Title }}
</code>
{{- end -}}
</div>
{{- end -}}
Expand Down

0 comments on commit a317867

Please sign in to comment.