mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 16:21:19 -04:00
add meta robots tag to deploy previews to make extra sure they aren't indexed
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html ⚡ lang="en">
|
<html ⚡ lang="en">
|
||||||
<head>
|
<head>
|
||||||
{{ partial "head/init" . }}
|
{{ partial "functions/init" . }}
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
{{ hugo.Generator }}
|
{{ hugo.Generator }}
|
||||||
|
{{ if ne hugo.Environment "production" }}<meta name="robots" content="noindex, nofollow">{{ end }}
|
||||||
<script async src="https://cdn.ampproject.org/v0.js"></script>
|
<script async src="https://cdn.ampproject.org/v0.js"></script>
|
||||||
<script async custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script>
|
<script async custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script>
|
||||||
{{ if .HasShortcode "video" }}<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>{{ end }}
|
{{ if .HasShortcode "video" }}<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>{{ end }}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{- $img := partial "head/init" . -}}
|
{{- $img := partial "functions/init" . -}}
|
||||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
<title>{{ .Site.Title }}</title>
|
<title>{{ .Site.Title }}</title>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{ partial "head/init" . -}}
|
{{ partial "functions/init" . -}}
|
||||||
{{ partial "head/meta" . -}}
|
{{ partial "head/meta" . -}}
|
||||||
{{ partial "head/open-graph" . -}}
|
{{ partial "head/open-graph" . -}}
|
||||||
{{ partialCached "head/mobile" . -}}
|
{{ partialCached "head/mobile" . -}}
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
{{ hugo.Generator }}
|
{{ hugo.Generator }}
|
||||||
|
{{ if ne hugo.Environment "production" }}<meta name="robots" content="noindex, nofollow">{{ end }}
|
||||||
<title>{{ .Scratch.Get "plainTitle" }}{{ if not .IsHome }} – {{ .Site.Title }}{{ end }}</title>
|
<title>{{ .Scratch.Get "plainTitle" }}{{ if not .IsHome }} – {{ .Site.Title }}{{ end }}</title>
|
||||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
||||||
{{ with .Site.Author.name }}<meta name="author" content="{{ . }}">{{ end }}
|
{{ with .Site.Author.name }}<meta name="author" content="{{ . }}">{{ end }}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{- $img := partial "head/init" . -}}
|
{{- $img := partial "functions/init" . -}}
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{ .Site.Title }}</title>
|
<title>{{ .Site.Title }}</title>
|
||||||
|
@@ -42,13 +42,13 @@
|
|||||||
"autoprefixer": "^10.0.1",
|
"autoprefixer": "^10.0.1",
|
||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
"eslint": "~7.11.0",
|
"eslint": "~7.11.0",
|
||||||
"eslint-config-prettier": "~6.12.0",
|
"eslint-config-prettier": "~6.13.0",
|
||||||
"eslint-plugin-compat": "~3.8.0",
|
"eslint-plugin-compat": "~3.8.0",
|
||||||
"eslint-plugin-prettier": "~3.1.4",
|
"eslint-plugin-prettier": "~3.1.4",
|
||||||
"html-minifier": "^4.0.0",
|
"html-minifier": "^4.0.0",
|
||||||
"hugo-extended": "0.75.1",
|
"hugo-extended": "0.75.1",
|
||||||
"husky": "^4.3.0",
|
"husky": "^4.3.0",
|
||||||
"lint-staged": "^10.4.0",
|
"lint-staged": "^10.4.2",
|
||||||
"markdownlint-cli": "~0.24.0",
|
"markdownlint-cli": "~0.24.0",
|
||||||
"netlify-lambda": "^2.0.1",
|
"netlify-lambda": "^2.0.1",
|
||||||
"netlify-plugin-cache": "*",
|
"netlify-plugin-cache": "*",
|
||||||
|
@@ -3,7 +3,7 @@ module.exports = {
|
|||||||
map: false,
|
map: false,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
require("postcss-import"),
|
require("postcss-import")(),
|
||||||
require("autoprefixer")(),
|
require("autoprefixer")(),
|
||||||
require("postcss-svgo")({
|
require("postcss-svgo")({
|
||||||
encode: true,
|
encode: true,
|
||||||
|
Reference in New Issue
Block a user