Skip to content

Commit

Permalink
Update blank_template for Jekyll
Browse files Browse the repository at this point in the history
Updated config.yml, index.md, header.html, main.scss, and default.html to include additional site settings, improved ordering and variable names, and better styling.

- Updated the config.yml file to include additional site settings and build settings, as well as comments to explain each setting.
Added a basic description to the index.md file.
- Improved the header.html file to include a better ordering of the meta tags and added a default_page_title variable to the site settings.
- Improved the main.scss file to include more robust font fallbacks and better variable names.
- Updated the default.html file to include a more robust ordering of meta tags and improved styling links.
  • Loading branch information
danielhaim1 committed Apr 6, 2023
1 parent 7785ef6 commit b54b2e6
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 14 deletions.
35 changes: 34 additions & 1 deletion lib/blank_template/_config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# Site Information
title: "My Jekyll Site" # the name of your site, e.g. ACME Corp.
description: "This is a Jekyll site" # a brief description of your site

# Build Configuration
url: "" # the base hostname & protocol for your site, e.g. http://example.com
baseurl: "" # the subpath of your site, e.g. /blog
title: "" # the name of your site, e.g. ACME Corp.
source: "." # the source directory for your site
destination: "./_site" # the destination directory for your site
lang: "en-US" # the language code for your site, e.g. en-US

# Excluded Files
# Add any files or directories that should be excluded from the Jekyll build process here
exclude:
- Gemfile
- Gemfile.lock
- README.md
- LICENSE

# Jekyll Plugins
# Add your Jekyll plugins here to enable additional functionality for your site
plugins:

# Build settings
# Configure the build process for your site
encoding: "utf-8" # the character encoding for your site
markdown: kramdown
# collections:
# posts:
# output: true # whether to generate pages for posts
# permalink: /posts/:title/ # the permalink structure for posts
# layout: post # the default layout to use for posts
# pages:
# output: true # whether to generate pages for pages
# permalink: /:title/ # the permalink structure for pages
# layout: page # the default layout to use for pages
20 changes: 15 additions & 5 deletions lib/blank_template/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>{{ page.title }} - {{ site.title }}</title>
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
{% if page.title %}
{{ page.title }} -
{% else %}
{{ site.default_page_title }} -
{% endif %}
{{ site.title }}
</title>
<meta name="description" content="{{ page.description | default: site.description }}">
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" type="text/css">
</head>
<body>
{{ content }}
<main role="main">
{{ content }}
</main>
</body>
</html>
</html>
12 changes: 6 additions & 6 deletions lib/blank_template/_sass/base.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
$backgroundColor: #ffffff;
$bodyColor: #000000;
$bodyFont: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
$body-bg: #ffffff !default;
$body-color: #000000 !default;
$body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default;

body {
background: $backgroundColor;
color: $bodyColor;
font-family: $bodyFont;
background-color: $body-bg;
color: $body-color;
font-family: $body-font, sans-serif;
}
3 changes: 3 additions & 0 deletions lib/blank_template/assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---

# Leave to Compile

---

@import "base";
10 changes: 8 additions & 2 deletions lib/blank_template/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
---

layout: default

title: "Happy Jekylling!"
description: "This is a blank template to help you get started."

---

## You're ready to go!
# Welcome to your new Jekyll website!

This is a blank template to help you get started. Customize it as much as you like, add new pages, blog posts, and more.

Start developing your Jekyll website.
Happy Jekylling!

0 comments on commit b54b2e6

Please sign in to comment.