Skip to content

Commit

Permalink
Small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechu10 committed Sep 17, 2024
1 parent 11082d7 commit 27decec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions posts/2024/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ fn main() {
println!("Hello, world!");
}
```

```js
console.log("Hello, world!");
```
6 changes: 3 additions & 3 deletions posts/2024/test.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ easy to include example HTML source code using Markdown -- just paste
it and indent it, and Markdown will handle the hassle of encoding the
ampersands and angle brackets. For example, this:

<div class="footer">
&copy; 2004 Foo Corporation
</div>
```html
<div class="footer">&copy; 2004 Foo Corporation</div>
```

Regular Markdown syntax is not processed within code blocks. E.g.,
asterisks are just literal asterisks within a code block. This means
Expand Down
6 changes: 3 additions & 3 deletions src/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn Route(route: ReadSignal<Routes>) -> View {
#[component]
fn Header() -> View {
view! {
header(class="p-2 border-b-2 border-slate-500 text-sm font-mono") {
header(class="p-2 border-b-2 border-slate-500 text-sm font-mono sm:px-5") {
nav(class="flex flex-row justify-between items-center") {
div(class="self-start") {
a(class="hover:underline font-bold", href="/") { "$ cd /home/lukechu" }
Expand All @@ -53,9 +53,9 @@ fn Footer() -> View {
div { "© 2024 Luke Chu" }
div {
"Made with "
a(class="hover:underline", href="https://rust-lang.org") { "Rust" }
a(class="hover:underline font-bold", href="https://rust-lang.org") { "Rust" }
" and "
a(class="hover:underline", href="https://github.com/sycamore-rs/sycamore") { "Sycamore" }
a(class="hover:underline font-bold", href="https://github.com/sycamore-rs/sycamore") { "Sycamore" }
}
}
}
Expand Down

0 comments on commit 27decec

Please sign in to comment.