Skip to content

Commit 4242a22

Browse files
committed
style: projects -> own pages, color svg links as links
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch master # Your branch is up to date with 'origin/master'. # # Changes to be committed: # modified: assets/icon_gh.svg # modified: assets/icon_li.svg # modified: assets/icon_so.svg # modified: content/posts/2022-08-13-translating_types_with_fastapi_and_openapi.md # modified: content/projects/geojson_to_gml.md # modified: content/projects/git_cc.md # modified: content/projects/yapf_diff.md # modified: layouts/home.html # modified: layouts/partials/gh_repo.html # modified: layouts/posts/list.html # modified: layouts/projects/list.html # # Untracked files: # content/articles_I_liked.md # content/tech_reads/ #
1 parent 612b1bb commit 4242a22

File tree

11 files changed

+71
-76
lines changed

11 files changed

+71
-76
lines changed

assets/icon_gh.svg

Lines changed: 10 additions & 11 deletions
Loading

assets/icon_li.svg

Lines changed: 12 additions & 16 deletions
Loading

assets/icon_so.svg

Lines changed: 7 additions & 5 deletions
Loading

content/posts/2022-08-13-translating_types_with_fastapi_and_openapi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: translating types with fastapi and openapi
2+
title: "translating types with `FastAPI` and `OpenAPI`"
33
layout: main
44
date: 2022-08-13
55
---

content/projects/geojson_to_gml.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
identifier: geojson-to-gml
3-
title: "geojson-to-gml-(3|2)"
2+
title: "`geojson-to-gml`"
43
repo: skalt/geojson-to-gml-3.2.1
54
date: 2017-05-15
65
---

content/projects/git_cc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
identifier: git-cc
3-
title: "`git-cc`"
3+
title: "`git-cc`: a TUI for conventional commits"
44
repo: skalt/git-cc
55
date: 2020-11-25
66
commercial: true

content/projects/yapf_diff.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "`yapf-diff`"
2+
title: "`yapf-diff`: Incremental python formatting"
33
repo: luxresearch/yapf-diff
44
date: 2019-02-22
55
---

layouts/home.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
2+
{{- define "head" -}}
3+
{{- end -}}
14
{{- define "main" -}}
2-
{{- $gh := resources.Get "icon_gh.svg" | resources.Minify | resources.Fingerprint -}}
3-
{{- $li := resources.Get "icon_li.svg" | resources.Minify | resources.Fingerprint -}}
4-
{{- $so := resources.Get "icon_so.svg" | resources.Minify | resources.Fingerprint -}}
5+
{{- $gh := resources.Get "icon_gh.svg" | resources.Minify -}}
6+
{{- $li := resources.Get "icon_li.svg" | resources.Minify -}}
7+
{{- $so := resources.Get "icon_so.svg" | resources.Minify -}}
58
<style>
69
/* centered */
710
.centered {
@@ -12,17 +15,18 @@
1215
text-decoration: none;
1316
}
1417
</style>
18+
1519
<main>
1620
<h1 class="centered">{{ .Title }}</h1>
1721
<div class="centered">
1822
<a href="https://github.com/skalt" target="gh">
19-
<img src="{{ $gh.Permalink }}" alt="GitHub profile" title="GitHub profile">
23+
{{ $gh.Content | safeHTML }}
2024
</a>
2125
<a href="https://linkedin.com/in/steven-kalt" target="li">
22-
<img src="{{ $li.Permalink }}" alt="LinkedIn profile" title="LinkedIn profile">
26+
{{ $li.Content | safeHTML }}
2327
</a>
2428
<a href="https://stackoverflow.com/users/1234567" target="so">
25-
<img src="{{ $so.Permalink }}" alt="Stack Overflow profile" title="Stack Overflow profile">
29+
{{ $so.Content | safeHTML }}
2630
</a>
2731
</div>
2832
{{- .Content -}}

layouts/partials/gh_repo.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
<!-- TODO: variant with a generic git icon -->
2-
{{- $gh := resources.Get "icon_gh.svg" | resources.Minify | resources.Fingerprint -}}
3-
<a href="https://github.com/{{ . }}" title="GitHub repo"><img src="{{ $gh.Permalink }}" alt="GitHub repo" title="GitHub repo"></a>
2+
<a class="gh_repo" href="https://github.com/{{ . }}" title="GitHub repo"><svg width="16" height="16" viewBox="0 0 32 32"><use xlink:href="#icon_gh"></use></svg></a>

layouts/posts/list.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
grid-column-gap: 1ch;
77
grid-row-gap: 1ch;
88
}
9+
time {
10+
color: GrayText;
11+
}
912
</style>
1013
<main>
1114
<ol>
1215
{{ range .Pages.ByDate.Reverse }}
1316
<li>
14-
<a href="{{ .Permalink }}">{{ .Title }}</a>
17+
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
1518
<time>{{ .Date | time.Format "2006-01-02" }}</time>
1619
</li>
1720
{{ end }}

0 commit comments

Comments
 (0)