gulp-seo
Gulp plugin for adding social meta tags to your website
This Gulp plugin enables you to add meta tags to your website. Here is a simple example using gulp-seo
:
var gulpSeo = ; gulp;
API
gulpSeo([opts])
opts
(Object
): Options for adding Meta Tags.opts.list
(Array
): List of adding Meta Tags.-
- og : Open Graph Meta Tags
-
- se : Search Engine Meta Tags
-
- schema : Schema Meta Tags
-
- twitter : Twitter Meta Tags
opts.meta
(Object
): All desired Meta Tags
## Options opts.meta
title
Your website's title.
Type: string
Required: true
Example:
My Website
description
Your website's description.
Type: string
Required: true
Example:
site_name
If your object is part of a larger web site, the name which should be displayed for the overall site.
Type: string
Required: false
Example:
keywords
Your website's keywords.
Type: string
, array
Required: false
Example:
author
Your website's author.
Type: string
Required: false
Example:
robots
Type: object
Required: false
Example:
revisitAfter
Type: string
Required: false
Example:
image
Type: string
Required: false
Example:
url
Type: string
Required: false
Example:
type
Type: string
Required: false
Example:
contact
Type: string
Required: false
Example:
abstract
Type: string
Required: false
Example:
copyright
Type: string
Required: false
Example:
rating
Valid Values: general | mature | restricted | 14 years | safe for kids
Type: string
Required: false
Example:
webauthor
Type: string
Required: false
Example:
video
Type: string
Required: false
Example:
locale
Type: string
Required: false
Example:
audio
Type: string
Required: false
Example:
Also See
- Open Graph - http://ogp.me
- Search Engine - https://www.metatags.org
- Twitter - https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/markup
- Schema - http://schema.org/