Skip to content

Commit 55d2242

Browse files
Add codeblock title
1 parent 10abb18 commit 55d2242

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

index.qmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ Turing is written entirely in Julia, and is interoperable with its powerful ecos
101101
```
102102

103103
:::
104+
105+
::: {.code-window-title}
106+
```{=html}
107+
<span>~/linear_regression.jl</span>
108+
```
109+
:::
110+
111+
104112
:::
105113

106114
```{.julia .code-overflow-scroll}

theming/rules/_layouts.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,15 @@
191191
gap: 0.55rem;
192192
}
193193

194+
.code-window-title {
195+
position: absolute;
196+
left: 50%;
197+
transform: translateX(-50%);
198+
color: $text-muted;
199+
font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
200+
font-size: 0.8rem;
201+
}
202+
194203
.dot {
195204
width: 13px;
196205
height: 13px;

0 commit comments

Comments
 (0)