Skip to content

Commit

Permalink
lil' refactor here 'n there
Browse files Browse the repository at this point in the history
  • Loading branch information
EsseLowNitro authored Dec 11, 2024
1 parent 6745103 commit ff1fc85
Show file tree
Hide file tree
Showing 26 changed files with 710 additions and 19 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build static files
run: ./build-website
- name: Build the site in the jekyll/builder container
run: |
docker run -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'website/'
path: 'website/_site/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions _config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
domain: esselownitro.github.io
url: https://esselownitro.github.io
baseurl: /esselownitro.github.io/website
7 changes: 0 additions & 7 deletions templates/header.html

This file was deleted.

5 changes: 5 additions & 0 deletions markdown/CODE_OF_CONDUCT.md → website/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "Code of Conduct | secureblue"
permalink: /code-of-conduct
---
# Contributor Covenant Code of Conduct

## Our Pledge
Expand Down
5 changes: 5 additions & 0 deletions markdown/CONTRIBUTING.md → website/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "Contributing | secureblue"
permalink: /contributing
---
# Welcome to secureblue

Thanks for taking the time to look into helping out!
Expand Down
5 changes: 5 additions & 0 deletions markdown/DONATE.md → website/DONATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "Donate to secureblue"
permalink: /donate
---
There are multiple options available for donation:

## Github Sponsors
Expand Down
5 changes: 5 additions & 0 deletions markdown/FAQ.md → website/FAQ.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "FAQ | secureblue"
permalink: /faq
---
# FAQ

#### Why is flatpak included? Should I use flatpak?
Expand Down
5 changes: 5 additions & 0 deletions markdown/IMAGES.md → website/IMAGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "Images | secureblue"
permalink: /images
---
# Images

> [!NOTE]
Expand Down
5 changes: 5 additions & 0 deletions markdown/README.md → website/INDEX.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: main-page
title: "secureblue: Hardened Fedora Atomic and Fedora CoreOS images"
permalink: /
---
<p align="center">
<a href="https://github.com/secureblue/secureblue">
<img src="https://github.com/secureblue/secureblue/assets/129108030/292e0ecc-50b8-4de5-a11a-bfe292489f6c" href="https://github.com/secureblue/secureblue" width=180 />
Expand Down
5 changes: 5 additions & 0 deletions markdown/KARGS.md → website/KARGS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "kargs | secureblue"
permalink: /kargs
---
## Included in set-kargs-hardening

**Zero newly allocated pages and heaps, mitigating use-after-free vulnerabilities**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "Post-install instructions | secureblue"
permalink: /post-install
---
# secureblue

After rebasing to secureblue, follow the following steps in order.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "Pre-install instructions | secureblue"
permalink: /pre-install
---
# secureblue

The recommended method to install secureblue is to rebase from an upstream silverblue/kinoite installation. Before rebasing and during the installation, the following checks are recommended.
Expand Down
5 changes: 5 additions & 0 deletions markdown/RECOMMENDED.md → website/RECOMMENDED.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "Recommended DEs | secureblue"
permalink: /recommended
---
> [!NOTE]
> This is a relative recommendation between the desktop environments available on secureblue. GNOME has some extra security niceties like the ones listed below. It however does not solve any of the fundamental issues with desktop linux security.
Expand Down
5 changes: 5 additions & 0 deletions markdown/SECURITY.md → website/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "Security policy | secureblue"
permalink: /security
---
# Security Policy

## Reporting a Vulnerability
Expand Down
5 changes: 5 additions & 0 deletions markdown/SUPPORT.md → website/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
---
layout: common-page
title: "Support | secureblue"
permalink: /support
---
Submit support requests via Github Issues or Discord: https://discord.gg/gNr3Kbks34
5 changes: 5 additions & 0 deletions markdown/USERNS.md → website/USERNS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: common-page
title: "userns advice | secureblue"
permalink: /userns
---
# User namespaces

[User namespaces](https://en.wikipedia.org/wiki/Linux_namespaces#User_ID_(user)) are a kernel feature introduced in kernel version 3.8. When an unprivileged user asks the kernel to create a namespace, the kernel needs to permit that user to do so. Whether this is permitted by the kernel is controlled via a sysctl flag.
Expand Down
20 changes: 20 additions & 0 deletions website/_includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<header>
<nav id="site-menu">
<ul>
<li {% if include.content == "/" %}aria-current="page"{% endif %}><a href="/"><img src="/assets/secureblue.svg" alt=""/>secureblue</a></li>
<li>{{ include.content }}</li>
<li {% if include.content == "code-of-conduct" %}aria-current="page"{% endif %}><a href="/code-of-conduct"></a>Code of conduct</li>
<li {% if include.content == "contributing" %}aria-current="page"{% endif %}><a href="/contributing"></a>Contributing</li>
<li {% if include.content == "donate" %}aria-current="page"{% endif %}><a href="/donate"></a>Donate</li>
<li {% if include.content == "faq" %}aria-current="page"{% endif %}><a href="/faq"></a>FAQ</li>
<li {% if include.content == "images" %}aria-current="page"{% endif %}><a href="/images"></a>Images</li>
<li {% if include.content == "kargs" %}aria-current="page"{% endif %}><a href="/kargs"></a>kargs</li>
<li {% if include.content == "postinstall-readme" %}aria-current="page"{% endif %}><a href="/postinstall-readme">Postinstall Readme</a></li>
<li {% if include.content == "preinstall-readme" %}aria-current="page"{% endif %}><a href="/preinstall-readme">Preinstall Readme</a></li>
<li {% if include.content == "recommended" %}aria-current="page"{% endif %}><a href="/recommended">Recommended</a></li>
<li {% if include.content == "security" %}aria-current="page"{% endif %}><a href="/security">Security</a></li>
<li {% if include.content == "support" %}aria-current="page"{% endif %}><a href="/support">Support</a></li>
<li {% if include.content == "userns" %}aria-current="page"{% endif %}><a href="/userns">userns</a></li>
</ul>
</nav>
</header>
41 changes: 41 additions & 0 deletions website/_layout/common-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
<meta charset="utf-8"/>
<title>common page title</title>

<meta name="description" content="smth"/>
<meta property="og:title" content="smth"/>
<meta property="og:description" content="smth"/>
<meta property="og:url" content="https://secureblue.io/smth"/>
<link rel="canonical" href="https://secureblue.io/smth"/>
<link rel="stylesheet" href="/assets/main.css"/>

<meta name="theme-color" content="#00293d"/>
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#00293d"/>
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#00293d"/>
<meta name="color-scheme" content="dark light"/>
<meta name="msapplication-TileColor" content="#00abff"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="https://secureblue.io/opengraph.png"/>
<meta property="og:image:width" content="512"/>
<meta property="og:image:height" content="512"/>
<meta property="og:image:alt" content="secureblue logo"/>
<meta property="og:site_name" content="secureblue"/>
<link rel="icon" href="/favicon.ico"/>
<link rel="icon" sizes="any" type="image/svg+xml" href="/assets/favicon.svg"/>
<link rel="mask-icon" href="/assets/secureblue.svg" color="#1a1a1a"/>
<link rel="apple-touch-icon" href="/assets/apple-touch-icon.png"/>
<!-- link rel="manifest" href="/manifest.webmanifest"/ -->
<!-- link rel="license" href="/LICENSE.txt"/ -->
</head>
<body>
{% include "header.html" content=page.name %}
<main class="normalize" id="smth">
<div class="content">
{{ content }}
</div>
</main>
</body>
</html>
56 changes: 56 additions & 0 deletions website/_layout/main-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
<meta charset="utf-8"/>
<title>secureblue: Hardened Fedora Atomic and Fedora CoreOS images</title>

<meta name="description" content="secureblue offers hardened Fedora Atomic and Fedora CoreOS operating system images."/>
<meta property="og:title" content="secureblue: Hardened Fedora Atomic and Fedora CoreOS images"/>
<meta property="og:description" content="secureblue offers hardened Fedora Atomic and Fedora CoreOS operating system images."/>
<meta property="og:url" content="https://secureblue.io/"/>
<link rel="canonical" href="https://secureblue.io/"/>
<link rel="stylesheet" href="/assets/main.css"/>

<meta name="theme-color" content="#00293d"/>
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#00293d"/>
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#00293d"/>
<meta name="color-scheme" content="dark light"/>
<meta name="msapplication-TileColor" content="#00abff"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="https://secureblue.io/opengraph.png"/>
<meta property="og:image:width" content="512"/>
<meta property="og:image:height" content="512"/>
<meta property="og:image:alt" content="secureblue logo"/>
<meta property="og:site_name" content="secureblue"/>
<link rel="icon" href="/favicon.ico"/>
<link rel="icon" sizes="any" type="image/svg+xml" href="/assets/favicon.svg"/>
<link rel="mask-icon" href="/assets/secureblue.svg" color="#1a1a1a"/>
<link rel="apple-touch-icon" href="/assets/apple-touch-icon.png"/>
<!-- link rel="manifest" href="/manifest.webmanifest"/ -->
<!-- link rel="license" href="/LICENSE.txt"/ -->
</head>
<body>
{% include "header.html" content="/" %}
<main class="normalize" id="secureblue">
<div class="content hero">

<div>
<h1><a href="#secureblue">secureblue</a></h1>
<p>[something goes here. idk.]</p>
<a class="button" href="/images">Image list</a>
</div>

<figure class="device-img">
<img class="laptop-img" width="288" height="171" src="/assets/some-random-laptop.svg" alt=""/>
<img class="laptop-logo-img" width="120" height="120" src="/assets/secureblue.svg" alt=""/>
</figure>

</div>

<div class="content">
{{ content }}
</div>
</main>
</body>
</html>
Binary file added website/assets/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/assets/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ff1fc85

Please sign in to comment.