Skip to content

Commit 09a29c6

Browse files
committed
URL fixes
1 parent 5d1243a commit 09a29c6

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup Pages
3131
uses: actions/configure-pages@v4
3232
- name: Install dependencies
33-
run: sudo apt-get install -y gettext
33+
run: sudo apt-get install -y gettext markdown
3434
- name: Build docs
3535
run: bash my-jopa
3636
- name: Upload artifact

layout.jsh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
website_name="JOPA"
2+
website_url="https://neoascetic.github.io/jopa/"
23
website_description="Simple thus hackable static site generator"
34
description=${description:-$website_description}
45

@@ -11,12 +12,12 @@ multiline layout << 'JOPA'
1112
<title>${website_name} ${title}</title>
1213
<meta name="viewport" content="width=device-width">
1314
<meta name="description" content="${description}">
14-
<link rel="stylesheet" href="/assets/styles.css">
15+
<link rel="stylesheet" href="assets/styles.css">
1516
</head>
1617

1718
<body>
1819
<header>
19-
<h1><a href="/">${website_name}</a></h1>
20+
<h1><a href="${website_url}">${website_name}</a></h1>
2021
<h2>${website_description}</h2>
2122
</header>
2223

@@ -28,7 +29,7 @@ multiline layout << 'JOPA'
2829
</div>
2930

3031
<footer>
31-
built with <a href="/">(_x_)</a>
32+
built with <a href="${website_url}">(_x_)</a>
3233
</footer>
3334
</body>
3435
JOPA

pages/1-quickstart.jsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ package. If these are not installed, go do, I'll wait.
99

1010
Okay, now, when dependencies are ready, you need to grab the actual Jopa
1111
code. You can grab the code directly from GitHub or just copy-paste it
12-
from the [code](/code.html) page. Put the code in a file named `jopa`
13-
and do not forget to make it executable:
12+
from the [code](code.html) page. Put the code in a file named `jopa` and
13+
do not forget to make it executable:
1414

1515
chmod +x ./jopa
1616

pages/index.jsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ JOPA
1414
multiline indexer_main << 'JOPA'
1515
<section class="index" id="jopa-${target}">
1616
<div class="index-header">
17-
<a class="separate-link" href="/${target}">(read on a separate page)</a></span>
17+
<a class="separate-link" href="${target}">(read on a separate page)</a></span>
1818
<h3><a class="self-link" href="#jopa-${target}">${title}</a></h3>
1919
</div>
2020
${content}

0 commit comments

Comments
 (0)