Skip to content

Commit 8de6cb0

Browse files
authored
chore: deadlink fixes and proper "/" removal (#7)
1 parent c2d142e commit 8de6cb0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# secureblue.io
22

3-
This repo contains the source files of [secureblue's static website](https://secureblue-staging.github.io) (provisory domain), generated using Jekyll and currently being deployed to GitHub Pages. We plan on deploying to Cloudflare Pages in the future. It is a fork of [GrapheneOS's static website](https://github.com/GrapheneOS/grapheneos.org) and borrows pieces of HTML and general ideas from it as well as a mostly identical CSS, but uses a website generation workflow we consider more convenient.
3+
This repo contains the source files of [secureblue's static website](https://secureblue.github.io) (provisory domain), generated using Jekyll and currently being deployed to GitHub Pages. We plan on deploying to Cloudflare Pages in the future. It is a fork of [GrapheneOS's static website](https://github.com/GrapheneOS/grapheneos.org) and borrows pieces of HTML and general ideas from it as well as a mostly identical CSS, but uses a website generation workflow we consider more convenient.
44

55
## Content
66

@@ -29,15 +29,15 @@ By default, most files not relevant to the generated website are already exclude
2929
> [!NOTE]
3030
> An alert of the "note" type. It's pretty cool, right?
3131
>
32-
> Another line in the same alert. Click [here](https://esselownitro.github.io/faq) to go to the FAQ.
32+
> Another line in the same alert. Click [here](https://secureblue.github.io/faq) to go to the FAQ.
3333
3434
Which can be created with the following, simple sintax:
3535

3636
```
3737
> [!NOTE]
3838
> An alert of the "note" type. It's pretty cool, right?
3939
>
40-
> Another line in the same alert. Click [here](https://esselownitro.github.io/faq) to go to the FAQ.
40+
> Another line in the same alert. Click [here](https://secureblue.github.io/faq) to go to the FAQ.
4141
```
4242

4343
Except that as an inclusible HTML fragment, `alert.html` presents an unhiged manner to imitate the above. It has to be included (implying everything is on a same line) and requires two variables to be passed to it, one indicating the type of alert, and the other being one whole string with all the text that needs to be shown. Newlines are not permitted and have to be broken by including `<br>`, not because it means a line break in HTML, but as an arbitrary token that `alert.html` will scan for and use as a breaking point for newlines. This is necessary since Liquid doesn't support initializing arrays, and that arbitrarily chosen token is scanned to create an array from a whole string, separating elements by each occurrence of the token. Each element of the array will be treated as a line of text in the alert. Also, apostrophes (`'`) have to be escaped with a backwards slash (like so: `\'`). Aditionally, since it is an HTML fragment that is being included, the content passed to it is not processed as markdown. Links have to be written as HTML instead of markdown in alerts, etc...

_includes/meta.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
<meta property="og:title" content="{{ page.title }}"/>
1212
<meta property="og:description" content="{{ page.description }}"/>
1313
<meta property="og:type" content="website"/>
14-
<meta property="og:image" content="https://secureblue-staging.github.io/assets/icons/opengraph.png"/>
14+
<meta property="og:image" content="https://secureblue.github.io/assets/icons/opengraph.png"/>
1515
<meta property="og:image:width" content="512"/>
1616
<meta property="og:image:height" content="512"/>
1717
<meta property="og:image:alt" content="secureblue logo"/>
1818
<meta property="og:site_name" content="secureblue"/>
19-
<meta property="og:url" content="https://secureblue-staging.github.io/{{ include.content }}"/>
19+
<meta property="og:url" content="https://secureblue.github.io/{{ include.content }}"/>
2020

21-
<link rel="canonical" href="https://secureblue-staging.github.io/{{ include.content }}"/>
21+
<link rel="canonical" href="https://secureblue.github.io/{{ include.content }}"/>
2222

2323
<link rel="icon" type="image/png" href="/assets/icons/favicon-96x96.png" sizes="96x96" />
2424
<link rel="icon" type="image/svg+xml" href="/assets/icons/favicon.svg" />

_layouts/page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% assign current_page = page.permalink | slice: 1, 100 %}
1+
{% assign current_page = page.permalink | remove_first: "/" %}
22

33
<!DOCTYPE html>
44
<html lang="en" prefix="og: https://ogp.me/ns#">
@@ -18,4 +18,4 @@
1818

1919
{% include footer.html %}
2020
</body>
21-
</html>
21+
</html>

0 commit comments

Comments
 (0)