Skip to content

Commit 27decec

Browse files
committed
Small tweaks
1 parent 11082d7 commit 27decec

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

posts/2024/hello-world.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ fn main() {
1414
println!("Hello, world!");
1515
}
1616
```
17+
18+
```js
19+
console.log("Hello, world!");
20+
```

posts/2024/test.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ easy to include example HTML source code using Markdown -- just paste
238238
it and indent it, and Markdown will handle the hassle of encoding the
239239
ampersands and angle brackets. For example, this:
240240

241-
<div class="footer">
242-
&copy; 2004 Foo Corporation
243-
</div>
241+
```html
242+
<div class="footer">&copy; 2004 Foo Corporation</div>
243+
```
244244

245245
Regular Markdown syntax is not processed within code blocks. E.g.,
246246
asterisks are just literal asterisks within a code block. This means

src/shell.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn Route(route: ReadSignal<Routes>) -> View {
3131
#[component]
3232
fn Header() -> View {
3333
view! {
34-
header(class="p-2 border-b-2 border-slate-500 text-sm font-mono") {
34+
header(class="p-2 border-b-2 border-slate-500 text-sm font-mono sm:px-5") {
3535
nav(class="flex flex-row justify-between items-center") {
3636
div(class="self-start") {
3737
a(class="hover:underline font-bold", href="/") { "$ cd /home/lukechu" }
@@ -53,9 +53,9 @@ fn Footer() -> View {
5353
div { "© 2024 Luke Chu" }
5454
div {
5555
"Made with "
56-
a(class="hover:underline", href="https://rust-lang.org") { "Rust" }
56+
a(class="hover:underline font-bold", href="https://rust-lang.org") { "Rust" }
5757
" and "
58-
a(class="hover:underline", href="https://github.com/sycamore-rs/sycamore") { "Sycamore" }
58+
a(class="hover:underline font-bold", href="https://github.com/sycamore-rs/sycamore") { "Sycamore" }
5959
}
6060
}
6161
}

0 commit comments

Comments
 (0)