feat: Initialize Jekyll site structure
This commit is contained in:
1 parent
3528a38c4f
commit
220d20bc93
6 files changed
+260
No files matched your search
@@ -0,0 +1,4 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
gem 'jekyll', '~> 4.2.2'
|
||||
gem 'jekyll-feed', '~> 0.12'
|
||||
@@ -0,0 +1,64 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
addressable (2.8.0)
|
||||
colorator (1.1.0)
|
||||
em-websocket (0.5.1)
|
||||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0.6.0)
|
||||
eventmachine (1.2.7-x86-mingw32)
|
||||
ffi (1.15.5-x86-mingw32)
|
||||
forwardable-extended (2.6.0)
|
||||
http_parser.rb (0.6.0)
|
||||
i18n (1.10.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
jekyll (4.2.2)
|
||||
addressable (~> 2.7)
|
||||
colorator (~> 1.1)
|
||||
em-websocket (>= 0.5.1)
|
||||
i18n (~> 1.8)
|
||||
jekyll-sass-converter (~> 2.0)
|
||||
jekyll-watch (~> 2.0)
|
||||
kramdown (>= 1.17, < 3.0)
|
||||
kramdown-parser-gfm (~> 1.0)
|
||||
liquid (~> 4.0)
|
||||
mercenary (~> 0.3.3)
|
||||
pathutil (~> 0.9)
|
||||
rouge (>= 3.0, < 4.0)
|
||||
safe_yaml (>= 1.0)
|
||||
terminal-table (~> 1.8)
|
||||
jekyll-feed (0.12.1)
|
||||
jekyll (>= 3.7, < 5.0)
|
||||
jekyll-sass-converter (2.1.0)
|
||||
sassc (>= 2.0, < 3.0)
|
||||
jekyll-watch (2.2.1)
|
||||
listen (~> 3.0)
|
||||
kramdown (2.3.2)
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
kramdown (~> 2.0)
|
||||
liquid (4.0.3)
|
||||
listen (3.7.1)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
mercenary (0.3.6)
|
||||
pathutil (0.9.0)
|
||||
rb-fsevent (0.10.4)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (>= 0.5.0)
|
||||
rouge (3.26.0)
|
||||
safe_yaml (1.0.5)
|
||||
sassc (2.4.0)
|
||||
ffi (~> 1.9)
|
||||
terminal-table (1.8.0)
|
||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||
unicode-display_width (1.7.0)
|
||||
|
||||
PLATFORMS
|
||||
x86-mingw32
|
||||
|
||||
DEPENDENCIES
|
||||
jekyll (~> 4.2.2)
|
||||
jekyll-feed (~> 0.12)
|
||||
|
||||
BUNDLED WITH
|
||||
2.3.26
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
# Site settings
|
||||
title: Behind the Desk
|
||||
email: your-email@example.com
|
||||
description: >- # this means to ignore newlines until "baseurl:"
|
||||
A community for sharing desk moments, finds, and frustrations.
|
||||
baseurl: "" # the subpath of your site, e.g. /blog
|
||||
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
||||
twitter_username: jekyllrb
|
||||
github_username: jekyll
|
||||
|
||||
# Build settings
|
||||
theme: minima
|
||||
plugins:
|
||||
- jekyll-feed
|
||||
|
||||
# Exclude from processing.
|
||||
# The following items will not be processed, by default.
|
||||
# Any item listed under the `exclude:` key here will be automatically added to
|
||||
# the internal "default list".
|
||||
#
|
||||
# Excluded items can be processed by explicitly listing the directories or
|
||||
# their entries' file path in the `include:` list.
|
||||
#
|
||||
# exclude:
|
||||
# - .sass-cache/
|
||||
# - .jekyll-cache/
|
||||
# - gemfiles/
|
||||
# - Gemfile
|
||||
# - Gemfile.lock
|
||||
# - node_modules/
|
||||
# - vendor/bundle/
|
||||
# - vendor/cache/
|
||||
# - vendor/gems/
|
||||
# - vendor/ruby/
|
||||
@@ -0,0 +1,139 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="bg-bg-light">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{{ page.title }}</title>
|
||||
<link href="/src/styles.css" rel="stylesheet">
|
||||
</head>
|
||||
<body class="font-sans text-text-default pt-navbar-height">
|
||||
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
||||
<div class="max-w-screen-lg mx-auto px-4">
|
||||
<div class="flex justify-between">
|
||||
<div class="flex">
|
||||
<a class="py-2 px-3 font-bold text-primary" href="/">
|
||||
Behind the Desk
|
||||
</a>
|
||||
<div class="hidden md:flex">
|
||||
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
|
||||
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
||||
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" id="nearby-link" href="#">nearby</a>
|
||||
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" id="past-link" href="#">past</a>
|
||||
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">ask</a>
|
||||
<span class="py-2 px-3 text-primary">|</span>
|
||||
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">rant</a>
|
||||
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">show</a>
|
||||
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">submit</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<div class="py-2 px-3">
|
||||
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Mobile menu button -->
|
||||
<div class="md:hidden flex items-center">
|
||||
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Mobile Menu -->
|
||||
<div id="mobileMenu" class="hidden md:hidden">
|
||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
|
||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" id="mobile-nearby-link" href="#">nearby</a>
|
||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" id="mobile-past-link" href="#">past</a>
|
||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">ask</a>
|
||||
<span class="block py-2 px-3 text-primary">|</span>
|
||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">rant</a>
|
||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">show</a>
|
||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">submit</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer">
|
||||
<div class="px-4 mt-4">
|
||||
{{ content }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="max-w-screen-lg mx-auto bg-bg-footer py-6 px-6 text-text-muted border-t border-navbar-border">
|
||||
<div class="text-center">
|
||||
<p>
|
||||
Seen something today? Don't let it go to waste. <a href="#" class="text-primary hover:underline">Submit it</a>.
|
||||
</p>
|
||||
<div class="mt-3 text-sm">
|
||||
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Guidelines</a> |
|
||||
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Tips</a> |
|
||||
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a> |
|
||||
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">DMCA</a>
|
||||
</div>
|
||||
<div class="mt-3 text-center">
|
||||
<input type="text" placeholder="Search..." class="px-3 py-2 border border-gray-300 rounded w-48 bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- Script to toggle mobile menu -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const menuButton = document.getElementById('menuButton');
|
||||
const mobileMenu = document.getElementById('mobileMenu');
|
||||
|
||||
if (menuButton && mobileMenu) {
|
||||
menuButton.addEventListener('click', () => {
|
||||
mobileMenu.classList.toggle('hidden');
|
||||
const expanded = menuButton.getAttribute('aria-expanded') === 'true';
|
||||
menuButton.setAttribute('aria-expanded', !expanded);
|
||||
});
|
||||
}
|
||||
|
||||
const nearbyLink = document.getElementById('nearby-link');
|
||||
const pastLink = document.getElementById('past-link');
|
||||
const mobileNearbyLink = document.getElementById('mobile-nearby-link');
|
||||
const mobilePastLink = document.getElementById('mobile-past-link');
|
||||
const filterContainer = document.getElementById('filter-container');
|
||||
const dateDisplay = document.getElementById('date-display');
|
||||
const filterSection = document.getElementById('filter-section');
|
||||
const filterText = document.getElementById('filter-text');
|
||||
|
||||
const showFilter = (type) => {
|
||||
filterContainer.classList.remove('hidden');
|
||||
if (type === 'nearby') {
|
||||
dateDisplay.classList.add('hidden');
|
||||
filterSection.classList.remove('hidden');
|
||||
filterText.innerHTML = 'Filter by distance: <a href="#" class="text-primary hover:underline">1 mile</a>, <a href="#" class="text-primary hover:underline">3 miles</a>, <a href="#" class="text-primary hover:underline">10 miles</a>. Go forward a <a href="#" class="text-primary hover:underline">20 miles</a>.';
|
||||
} else if (type === 'past') {
|
||||
dateDisplay.classList.remove('hidden');
|
||||
filterSection.classList.remove('hidden');
|
||||
filterText.innerHTML = 'Go back a <a href="#" class="text-primary hover:underline">day</a>, <a href="#" class="text-primary hover:underline">month</a>, or <a href="#" class="text-primary hover:underline">year</a>. Go forward a <a href="#" class="text-primary hover:underline">day</a>.';
|
||||
}
|
||||
};
|
||||
|
||||
nearbyLink.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
showFilter('nearby');
|
||||
});
|
||||
|
||||
pastLink.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
showFilter('past');
|
||||
});
|
||||
|
||||
mobileNearbyLink.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
showFilter('nearby');
|
||||
});
|
||||
|
||||
mobilePastLink.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
showFilter('past');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
<p class="post-meta">{{ page.date | date: "%B %d, %Y" }}</p>
|
||||
</header>
|
||||
<div class="post-content">
|
||||
{{ content }}
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Welcome to Behind the Desk!"
|
||||
date: 2023-10-01 10:00:00 +0000
|
||||
categories: jekyll update
|
||||
---
|
||||
Welcome to Behind the Desk! This is your first post. You can edit this to start sharing your desk moments, finds, or frustrations. Upvote what resonates!
|
||||
Reference in new issue
Block a user