Add sitemap and robots.txt for SEO
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -1,4 +1,5 @@
|
|||||||
source 'http://rubygems.org'
|
source 'http://rubygems.org'
|
||||||
|
|
||||||
gem "webrick"
|
gem "webrick"
|
||||||
|
gem "jekyll-sitemap"
|
||||||
gem 'github-pages', group: :jekyll_plugins
|
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/
|
assets: https://hallada.net/assets/
|
||||||
logo: /img/profile_icon_128x128.jpg
|
logo: /img/profile_icon_128x128.jpg
|
||||||
social:
|
social:
|
||||||
name: Tyler Hallada
|
name: Tyler Hallada
|
||||||
links:
|
links:
|
||||||
- https://twitter.com/tyhallada
|
- https://twitter.com/tyhallada
|
||||||
- https://www.facebook.com/tyhallada
|
- https://www.facebook.com/tyhallada
|
||||||
- https://www.linkedin.com/in/thallada/
|
- https://www.linkedin.com/in/thallada/
|
||||||
- https://github.com/thallada
|
- https://github.com/thallada
|
||||||
defaults:
|
defaults:
|
||||||
-
|
- scope:
|
||||||
scope:
|
path: ""
|
||||||
path: ""
|
values:
|
||||||
values:
|
image: /img/profile_icon_300x200.jpg
|
||||||
image: /img/profile_icon_300x200.jpg
|
|
||||||
markdown: kramdown
|
markdown: kramdown
|
||||||
kramdown:
|
kramdown:
|
||||||
syntax_highlighter: rouge
|
syntax_highlighter: rouge
|
||||||
excerpt_separator: "<!--excerpt-->"
|
excerpt_separator: "<!--excerpt-->"
|
||||||
paginate: 10
|
paginate: 10
|
||||||
paginate_path: "blog/page:num"
|
paginate_path: "blog/page:num"
|
||||||
gems:
|
gems:
|
||||||
- jekyll-redirect-from
|
- jekyll-redirect-from
|
||||||
- jekyll-paginate
|
- jekyll-paginate
|
||||||
- jekyll-seo-tag
|
- jekyll-seo-tag
|
||||||
|
- jekyll-sitemap
|
||||||
include: [".well-known"]
|
include: [".well-known"]
|
||||||
|
|||||||
@@ -1,40 +1,67 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||||
<title>{{ page.title }}</title>
|
<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 -->
|
<!-- 3rd party CSS -->
|
||||||
<link rel="stylesheet" href="/css/normalize.css">
|
<link rel="stylesheet" href="/css/normalize.css" />
|
||||||
<!-- Fix IE -->
|
<!-- Fix IE -->
|
||||||
<!--[if lt IE 9]>
|
<!--[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/html5shiv/3.7/html5shiv.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<!-- syntax highlighting CSS -->
|
<!-- syntax highlighting CSS -->
|
||||||
<link rel="stylesheet" href="/css/syntax.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_dark.css"
|
||||||
|
media="(prefers-color-scheme: dark)"
|
||||||
|
/>
|
||||||
|
|
||||||
<!-- Custom CSS -->
|
<!-- Custom CSS -->
|
||||||
<link rel="stylesheet" href="/css/main.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_dark.css"
|
||||||
|
media="(prefers-color-scheme: dark)"
|
||||||
|
/>
|
||||||
|
|
||||||
<!-- Web Fonts -->
|
<!-- 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 -->
|
<!-- RSS Feed -->
|
||||||
<link href="/feed.xml" rel="alternate" type="application/atom+xml">
|
<link href="/feed.xml" rel="alternate" type="application/atom+xml" />
|
||||||
|
|
||||||
<!-- Favicon -->
|
<!-- Favicon -->
|
||||||
<link rel="shortcut icon" href="/favicon.png">
|
<link rel="shortcut icon" href="/favicon.png" />
|
||||||
|
|
||||||
<!-- Cloudflare Web Analytics -->
|
<!-- 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 -->
|
<!-- 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>
|
<script type="module" src="https://unpkg.com/dark-mode-toggle"></script>
|
||||||
|
|
||||||
{% seo %}
|
{% seo %}
|
||||||
@@ -48,7 +75,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
<div class="row clearfix rss">
|
<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>
|
||||||
<div class="row clearfix footer">
|
<div class="row clearfix footer">
|
||||||
<div class="column full contact">
|
<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