Skip to content

Commit

Permalink
move site settings to data file, closes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
pglevy committed May 28, 2023
1 parent 7185acf commit 68797e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
9 changes: 0 additions & 9 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
# Set a plain language title for the site.
title: Plain Vanilla GitHub Pages

# Write a short description for the site. This is used for "meta description."
description: Free, easy, low-tech website template using GitHub Pages

# Set the language for the site. Used for "html lang." Default is English.
lang: en

# Avoid GitHub API authentication when building locally.
github: [metadata]
8 changes: 8 additions & 0 deletions _data/metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Set the language for the site. Used for "html lang." Default is English.
lang: en

# Set a plain language title for the site.
title: Plain Vanilla GitHub Pages

# Write a short description for the site. This is used for "meta description."
description: Free, easy, low-tech website template using GitHub Pages
6 changes: 3 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!doctype html>
<html lang="{{site.lang}}" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<html lang="{{ site.data.metadata.lang | default: 'en' }}" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">

<head>
<meta charset="utf-8">
<title>{{ site.title }}</title>
<meta name="description" content="{{ site.description }}">
<title>{{ site.data.metadata.title | default: 'Plain Vanilla GitHub Pages' }}</title>
<meta name="description" content="{{ site.data.metadata.description | default: 'Free, easy, low-tech website template using GitHub Pages' }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="icon" href="favicon.ico" sizes="any">
Expand Down

0 comments on commit 68797e0

Please sign in to comment.