1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-30 02:05:57 -04:00

add meta robots tag to deploy previews to make extra sure they aren't indexed

This commit is contained in:
2020-10-18 10:50:43 -04:00
parent 82d8888a29
commit c8f5598452
9 changed files with 477 additions and 500 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
<!doctype html>
<html lang="en">
<head>
{{ partial "head/init" . }}
{{ partial "functions/init" . }}
<meta charset="utf-8">
{{ 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 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 }}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- $img := partial "head/init" . -}}
{{- $img := partial "functions/init" . -}}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ .Site.Title }}</title>
+1 -1
View File
@@ -1,4 +1,4 @@
{{ partial "head/init" . -}}
{{ partial "functions/init" . -}}
{{ partial "head/meta" . -}}
{{ partial "head/open-graph" . -}}
{{ partialCached "head/mobile" . -}}
+1
View File
@@ -1,5 +1,6 @@
<meta charset="utf-8">
{{ 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>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
{{ with .Site.Author.name }}<meta name="author" content="{{ . }}">{{ end }}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- $img := partial "head/init" . -}}
{{- $img := partial "functions/init" . -}}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Site.Title }}</title>