Skip to content
프로젝트

b2a3e8/jekyll-theme-console

GitHub에서 보기

b2a3e8/jekyll-theme-console has 820 GitHub stars and 438 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-24 10:06 UTC. Last push 2025-09-09.

이 수치를 측정하는 방법

What you can do

  • Four styles: dark (default), light, hacker, nord
  • Optional auto light/dark via prefers-color-scheme
  • Strict, extendable Content Security Policy
  • Optional Google Fonts (disable for full self‑hosting)

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

해커, 개발자, 스크립트 키디를 위한 Linux 콘솔에서 영감을 받은 Jekyll 테마입니다.

개발 도구

README.md

Original

jekyll-theme-console

A minimal, console‑inspired Jekyll theme for hackers, developers and other cool kids.

Gem Version License: MIT

jekyll-theme-console demo animation

Demo

Note: The theme also includes a Nord variant (style: nord).

Features

  • Four styles: dark (default), light, hacker, nord
  • Optional auto light/dark via prefers-color-scheme
  • Strict, extendable Content Security Policy
  • Optional Google Fonts (disable for full self‑hosting)
  • Generic analytics/tracker include (Matomo, Plausible, etc.)
  • Simple header navigation via header_pages
  • Works as a RubyGem theme or GitHub Pages remote theme

Quickstart

If you are new to Jekyll, skim the official docs: https://jekyllrb.com/docs/

GitHub Pages (remote_theme)

Add to your site's _config.yml:

remote_theme: b2a3e8/jekyll-theme-console
# Optional but recommended
plugins:
  - jekyll-seo-tag

Tip: For full local builds with a remote theme, you may need the jekyll-remote-theme plugin.

Gem-based installation

  1. Add to your Gemfile:
gem "jekyll-theme-console"
  1. Install and enable the theme:
bundle
# _config.yml
theme: jekyll-theme-console
plugins:
  - jekyll-seo-tag

To update later: bundle update.

Configuration

Add these to _config.yml as needed:

  • header_pages: list of page paths to show in the top menu
  • footer: HTML string rendered in the footer
  • style: dark (default), light, hacker, or nord
  • listen_for_clients_preferred_style: true to auto‑switch using the OS preference
  • disable_google_fonts: true to avoid requests to Google Fonts
  • tracking: generic tracker configuration (see Security & CSP below)
  • csp_extra: extra CSP directives to append to the built‑in policy

Example:

header_pages:
  - index.md
  - about.md

style: dark # dark (default), light, hacker, or nord
listen_for_clients_preferred_style: true # false (default) or true

footer: 'follow us on <a href="https://twitter.com/xxx">twitter</a>'
disable_google_fonts: false

# Generic tracking (optional; loads only in production)
# tracking:
#   script_src:
#     - https://cdn.example.com/tracker.js
#   async: true   # default true
#   defer: false  # default false
#   # Optional inline init snippet (requires CSP allowance if used)
#   # init: |
#   #   window.myTracker=window.myTracker||function(){(window.myTracker.q=window.myTracker.q||[]).push(arguments)};
#   #   myTracker('init', { siteId: '12345' });

Front matter

Additional page variables supported by the theme:

  • title: page title
  • lang: page language (defaults to en)
  • robots: value for the robots meta tag (e.g., NOINDEX)

Customization

Follow these steps to customize:

  1. Fork this repository (use as a theme or directly as your site)
  2. Edit templates in _layouts for HTML changes
  3. Edit styles in _sass and assets
    • Global variables (font size, container width) live in _sass/base.scss
    • Style‑specific variables are in _sass/_dark.scss, _sass/_light.scss, _sass/_hacker.scss, _sass/_nord.scss
    • Fonts are loaded with <link> tags; set disable_google_fonts: true to avoid external font requests

Optional tweaks:

  • Enable Sass compression in _config.yml:

    sass:
      style: compressed
    
  • Add jekyll-feed to generate an Atom/RSS feed.

Security & CSP

The theme ships with a strict, practical Content Security Policy. By default it allows:

  • self‑hosted content, plus images from https: and data: URIs
  • Google Fonts (unless disabled)

Extend the policy as needed via _config.yml:

csp_extra: "frame-src https:;"

Examples:

  • Matomo at https://analytics.example.com:

    tracking:
      script_src:
        - https://analytics.example.com/matomo.js
    # If you add an inline init snippet via `tracking.init`, also include 'unsafe-inline' in script-src.
    csp_extra: "script-src 'self' https://analytics.example.com 'unsafe-inline'; connect-src 'self' https://analytics.example.com; img-src 'self' https://analytics.example.com;"
    
  • Plausible at https://plausible.example.com:

    tracking:
      script_src:
        - https://plausible.example.com/js/plausible.js
    csp_extra: "script-src 'self' https://plausible.example.com; connect-src 'self' https://plausible.example.com;"
    

Tip: To remove the top border in the menu:

.menu { border-top: none; }

Development

This repository is a standard Jekyll site for local development of the theme.

Docker (recommended)

docker compose up --build

Open http://localhost:4000.

Local (Ruby/Bundler)

bundle install
bundle exec jekyll serve

Open http://localhost:4000.

When the theme is released, only files in _layouts, _includes, _sass, and assets tracked by Git are bundled. To include additional paths, edit the regexp in jekyll-theme-console.gemspec.

License

Open source under the MIT License.

관련 프로젝트 살펴보기

불러오는 중…