Skip to content

Commit 2147773

Browse files
committed
update: breadcrump getting useful
1 parent ea4d7e4 commit 2147773

File tree

2 files changed

+32
-13
lines changed

2 files changed

+32
-13
lines changed

assets/css/layouts.css

+25-10
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
11
.signage {
22
display: flex;
33
flex-direction: row;
4+
white-space: nowrap;
45

56
background-color: #111111;
6-
padding: 2rem 2rem 2rem 1rem;
7+
padding: 1rem 2rem 1rem 1rem;
78

89

910
* {
1011
font-family: var(--font-mono);
1112
font-size: 32px;
1213
}
1314

14-
nav {
15+
.breadcrump {
16+
display: inline-flex;
17+
1518
&::before{
1619
content: "";
1720
border-left: #fff solid .4rem;
1821
padding: .5rem;
1922
}
23+
& :first-child::before{
24+
content: "~";
25+
}
26+
& :not(:last-child):after{
27+
content: "/";
28+
}
29+
30+
a {
31+
text-decoration-line: none;
32+
color: magenta;
33+
}
2034
}
21-
a {
22-
text-decoration-line: none;
23-
color: magenta;
24-
}
35+
36+
2537
h1 {
2638
color: #fff;
2739
&::after{
@@ -31,6 +43,8 @@
3143
}
3244

3345
}
46+
47+
3448
.home {
3549
display: grid;
3650
justify-content: center;
@@ -71,8 +85,9 @@
7185

7286
.single {
7387
grid-template-rows: min-content auto;
74-
}
75-
.single.breadcrumb {
76-
place-self: center;
77-
margin: 1rem 0;
88+
89+
.breadcrumb {
90+
place-self: center;
91+
margin: 1rem 0;
92+
}
7893
}

layouts/partials/signage.html

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<nav class="signage">
2-
<nav id="breadcrump">
3-
<a href="/">~</a><!--
4-
--><a href="..">{{ substr .RelPermalink 0 -1 }}</a>
2+
<nav class="breadcrump">
3+
<!-- Ancestors -->
4+
{{ range after 0 .Ancestors.Reverse }}
5+
<a href="{{ .RelPermalink }}">{{ .File.ContentBaseName }}</a>
6+
{{ end }}
7+
<!-- Current -->
8+
<a href="{{ .RelPermalink }}">{{.File.ContentBaseName }}</a>
59
</nav>
610

711
<h1>$&nbsp;proxyerium</h1>

0 commit comments

Comments
 (0)