Skip to content

Commit

Permalink
Add custom title and meta description
Browse files Browse the repository at this point in the history
  • Loading branch information
Travizzle committed Feb 27, 2024
1 parent efc7b82 commit e938916
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<head>
<title>Test Page: Don't Panic</title>
{% if page.title %}
<title>{{ page.title }} | Test Page</title>
{% else %}
<title>Test Page: Don't Panic</title>
{% endif %}
{% if page.description %}
<meta name="description" content="{{ page.description }}">
{% else %}
<meta name="description" content="This is a dangerous site.">
{% endif %}
<link href="/favicon.png" rel="icon">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down
2 changes: 2 additions & 0 deletions blog/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
layout: default
title: Dangerous Blog
description: A dangerous site deserves a dangerous blog.
---

<div class="page blog-index">
Expand Down

0 comments on commit e938916

Please sign in to comment.