Skip to content

Commit 140c1bc

Browse files
authored
Merge pull request #37 from ethmarks/absurl
use baseURL in header and footer
2 parents 385b3cc + e211d8e commit 140c1bc

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

content/posts/mfm.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ I'm pretty sure that I'll be adding more features at some point in the future, s
3838
For example, the following Markdown...
3939

4040
```markdown
41-
![[Test]](https://ethmarks.github.io)
41+
![[Test]](https://example.com)
4242
```
4343

4444
...parses into the following HTML.
@@ -47,7 +47,7 @@ For example, the following Markdown...
4747
<iframe
4848
scrolling="no"
4949
title="Test"
50-
src="https://ethmarks.github.io"
50+
src="https://example.com"
5151
frameborder="no"
5252
loading="lazy"
5353
allowtransparency="true"
@@ -72,15 +72,15 @@ If the file extension of the media src is an [MP4](https://en.wikipedia.org/wiki
7272
The default behavior is for it to be parsed into a video element that does not loop, is not muted, and requires user input to start playback. For example, the following Markdown...
7373

7474
```markdown
75-
![Test](https://ethmarks.github.io/media/example.webm)
75+
![Test](https://example.com/media/example.webm)
7676
```
7777

7878
...parses into the following HTML.
7979

8080
```html
8181
<video
8282
class="video"
83-
src="https://ethmarks.github.io/media/example.webm"
83+
src="https://example.com/media/example.webm"
8484
controls
8585
alt="Test">
8686
</video>
@@ -91,15 +91,15 @@ The default behavior is for it to be parsed into a video element that does not l
9191
The MFM animation syntax is an override of the video syntax. The difference is that the text in the square brackets is prefixed with "GIF ". The "GIF" prefix will be removed from the final alt text. It is then parsed into a video element that loops, is muted, and autoplays. For example, the following Markdown...
9292

9393
```markdown
94-
![GIF Test](https://ethmarks.github.io/media/example.webm)
94+
![GIF Test](https://example.com/media/example.webm)
9595
```
9696

9797
...parses into the following HTML.
9898

9999
```html
100100
<video
101101
class="gif"
102-
src="https://ethmarks.github.io/media/example.webm"
102+
src="https://example.com/media/example.webm"
103103
autoplay
104104
loop
105105
muted

layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<span id="source">
33
<a href="https://github.com/ethmarks/ethmarks.github.io" id="sourcelink" target="_blank">Website Source</a>
44
</span>
5-
<span id="copyright"><a href="/about/">Ethan Marks</a>, &copy;2025</span>
5+
<span id="copyright"><a href="{{ "/about/" | absURL }}">Ethan Marks</a>, &copy;2025</span>
66
<span id="email">
77
<a href="mailto:ethmarks.dev@gmail.com" target="_blank">Contact</a>
88
</span>

layouts/partials/header.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<header>
2-
<a href="/" id="title" tabindex="0" aria-label="Home">Ethan Marks</a>
2+
<a href="{{ "/" | absURL }}" id="title" tabindex="0" aria-label="Home">Ethan Marks</a>
33
<nav>
4-
<a id="nav-home" class="staggered{{ if .IsHome }} active{{ end }}" href="/">Home</a>
5-
<a id="nav-about" class="staggered{{ if eq .Section "about" }} active{{ end }}" href="/about/">About</a>
6-
<a id="nav-posts" class="staggered{{ if eq .Section "posts" }} active{{ end }}" href="/posts/">Posts</a>
4+
<a id="nav-home" class="staggered{{ if .IsHome }} active{{ end }}" href="{{ "/" | absURL }}">Home</a>
5+
<a id="nav-about" class="staggered{{ if eq .Section "about" }} active{{ end }}" href="{{ "/about/" | absURL }}">About</a>
6+
<a id="nav-posts" class="staggered{{ if eq .Section "posts" }} active{{ end }}" href="{{ "/posts/" | absURL }}">Posts</a>
77
<a id="nav-blips" class="staggered" href="https://ethmarks.github.io/blips/">Blips</a>
8-
<a id="nav-projects" class="staggered{{ if eq .RelPermalink "/tags/projects/" }} active{{ end }}" href="/tags/projects/">Projects</a>
8+
<a id="nav-projects" class="staggered{{ if eq .RelPermalink "/tags/projects/" }} active{{ end }}" href="{{ "/tags/projects/" | absURL }}">Projects</a>
99
</nav>
1010
</header>

0 commit comments

Comments
 (0)