Skip to content

Add Development Mode warning. #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
-u "$(id -u):$(id -g)" \
-v "$(pwd):/site" \
localhost:5000/kroxy-jekyll:latest \
bash -c 'eval "$(rbenv init -)" && cp -r /css/_sass/bootstrap /site/_sass/ && bundle exec jekyll build --config=_config.yml,_config-overrides.yml'
bash -c 'eval "$(rbenv init -)" && cp -r /css/_sass/bootstrap /site/_sass/ && JEKYLL_ENV=production bundle exec jekyll build --config=_config.yml,_config-overrides.yml'
env:
JEKYLL_ENV: production
- name: Upload artifact
Expand Down
9 changes: 8 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
{%- assign favicon = '/favicon.ico' -%}
{% if jekyll.environment == "development" %}
{%- assign favicon = '/snapshot-favicon.ico' -%}
{% endif %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }} | {{ site.description }}</title>
<link rel="icon" href="{{ '/favicon.ico' | absolute_url }}" type="image/x-icon" />
<link rel="icon" href="{{ favicon | absolute_url }}" type="image/x-icon" />
<link rel="stylesheet" href="{{ '/css/style.css' | absolute_url }}" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.1/font/bootstrap-icons.min.css" integrity="sha512-oAvZuuYVzkcTc2dH5z1ZJup5OmSQ000qlfRvuoTTiyTBjwX1faoyearj8KdMq0LgsBTHMrRuMek7s+CxF8yE+w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js" integrity="sha512-X/YkDZyjTf4wyc2Vy16YGCPHwAY8rZJY+POgokZjQB2mhIRFJCckEGc6YyX9eNsPfn0PzThEuNs+uaomE5CO6A==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
{% seo %}
</head>
<body class="d-flex flex-column min-vh-100" data-bs-theme="light">
{% if jekyll.environment == "development" %}
<div class="dev-watermark">Development Mode</div>
{% endif %}
{% include nav.html %}
<div class="container-fluid px-0 krx-content" data-bs-theme="light">
{{ content }}
Expand Down
16 changes: 16 additions & 0 deletions _sass/kroxylicious.scss
Original file line number Diff line number Diff line change
Expand Up @@ -290,3 +290,19 @@ b.conum * {
.conum:not([data-value]):empty {
display: none
}

.dev-watermark {
position: fixed;
top: 0;
right: 0;
z-index: 9999;

padding: 5px 10px;
background: rgba(255, 193, 7, 0.5);
color: #000;
font-family: $font-family-sans-serif;
font-size: 1.1em;
font-weight: bold;

pointer-events: none; /* Clicks will "pass through" the watermark */
}
Binary file added snapshot-favicon.ico
Binary file not shown.