Add sitemap and robots.txt for SEO
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -1,4 +1,5 @@
|
||||
source 'http://rubygems.org'
|
||||
|
||||
gem "webrick"
|
||||
gem "jekyll-sitemap"
|
||||
gem 'github-pages', group: :jekyll_plugins
|
||||
|
||||
30
_config.yml
30
_config.yml
@@ -7,26 +7,26 @@ blog_url: https://www.hallada.net/blog
|
||||
assets: https://hallada.net/assets/
|
||||
logo: /img/profile_icon_128x128.jpg
|
||||
social:
|
||||
name: Tyler Hallada
|
||||
links:
|
||||
- https://twitter.com/tyhallada
|
||||
- https://www.facebook.com/tyhallada
|
||||
- https://www.linkedin.com/in/thallada/
|
||||
- https://github.com/thallada
|
||||
name: Tyler Hallada
|
||||
links:
|
||||
- https://twitter.com/tyhallada
|
||||
- https://www.facebook.com/tyhallada
|
||||
- https://www.linkedin.com/in/thallada/
|
||||
- https://github.com/thallada
|
||||
defaults:
|
||||
-
|
||||
scope:
|
||||
path: ""
|
||||
values:
|
||||
image: /img/profile_icon_300x200.jpg
|
||||
- scope:
|
||||
path: ""
|
||||
values:
|
||||
image: /img/profile_icon_300x200.jpg
|
||||
markdown: kramdown
|
||||
kramdown:
|
||||
syntax_highlighter: rouge
|
||||
syntax_highlighter: rouge
|
||||
excerpt_separator: "<!--excerpt-->"
|
||||
paginate: 10
|
||||
paginate_path: "blog/page:num"
|
||||
gems:
|
||||
- jekyll-redirect-from
|
||||
- jekyll-paginate
|
||||
- jekyll-seo-tag
|
||||
- jekyll-redirect-from
|
||||
- jekyll-paginate
|
||||
- jekyll-seo-tag
|
||||
- jekyll-sitemap
|
||||
include: [".well-known"]
|
||||
|
||||
@@ -1,40 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>{{ page.title }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, max-scale=1">
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, max-scale=1"
|
||||
/>
|
||||
|
||||
<!-- 3rd party CSS -->
|
||||
<link rel="stylesheet" href="/css/normalize.css">
|
||||
<link rel="stylesheet" href="/css/normalize.css" />
|
||||
<!-- Fix IE -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
|
||||
<![endif]-->
|
||||
<![endif]-->
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
<link rel="stylesheet" href="/css/syntax_dark.css" media="(prefers-color-scheme: dark)">
|
||||
<link rel="stylesheet" href="/css/syntax.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="/css/syntax_dark.css"
|
||||
media="(prefers-color-scheme: dark)"
|
||||
/>
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
<link rel="stylesheet" href="/css/main_dark.css" media="(prefers-color-scheme: dark)">
|
||||
<link rel="stylesheet" href="/css/main.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="/css/main_dark.css"
|
||||
media="(prefers-color-scheme: dark)"
|
||||
/>
|
||||
|
||||
<!-- Web Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700" rel="stylesheet" type="text/css">
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700"
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
/>
|
||||
|
||||
<!-- RSS Feed -->
|
||||
<link href="/feed.xml" rel="alternate" type="application/atom+xml">
|
||||
<link href="/feed.xml" rel="alternate" type="application/atom+xml" />
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="shortcut icon" href="/favicon.png">
|
||||
<link rel="shortcut icon" href="/favicon.png" />
|
||||
|
||||
<!-- Cloudflare Web Analytics -->
|
||||
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "54df1dc81a2d4cb7920b456212bbd437"}'></script>
|
||||
<script
|
||||
defer
|
||||
src="https://static.cloudflareinsights.com/beacon.min.js"
|
||||
data-cf-beacon='{"token": "54df1dc81a2d4cb7920b456212bbd437"}'
|
||||
></script>
|
||||
<!-- End Cloudflare Web Analytics -->
|
||||
|
||||
<!--- Sitemap -->
|
||||
<link
|
||||
rel="sitemap"
|
||||
type="application/xml"
|
||||
title="Sitemap"
|
||||
href="/sitemap.xml"
|
||||
/>
|
||||
|
||||
<script type="module" src="https://unpkg.com/dark-mode-toggle"></script>
|
||||
|
||||
{% seo %}
|
||||
@@ -48,7 +75,9 @@
|
||||
</div>
|
||||
{{ content }}
|
||||
<div class="row clearfix rss">
|
||||
<a class="rss" href="/feed.xml"><img src="/img/rss.png" alt="RSS" class="icon" /></a>
|
||||
<a class="rss" href="/feed.xml"
|
||||
><img src="/img/rss.png" alt="RSS" class="icon"
|
||||
/></a>
|
||||
</div>
|
||||
<div class="row clearfix footer">
|
||||
<div class="column full contact">
|
||||
|
||||
9
robots.txt
Normal file
9
robots.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
layout: null
|
||||
sitemap: false
|
||||
---
|
||||
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: {{ site.url }}{{ site.sitemap_path | default: '/sitemap.xml' }}
|
||||
Reference in New Issue
Block a user