https://github.com/luiguild/gulp-fancy-meta
Gulp plugin to add and control easily all your HTML meta tag's in your static files, improve your SEO and save your dev time.
https://github.com/luiguild/gulp-fancy-meta
Last synced: about 1 year ago
JSON representation
Gulp plugin to add and control easily all your HTML meta tag's in your static files, improve your SEO and save your dev time.
- Host: GitHub
- URL: https://github.com/luiguild/gulp-fancy-meta
- Owner: luiguild
- Created: 2016-09-21T19:35:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-06-15T21:18:34.000Z (about 2 years ago)
- Last Synced: 2025-04-26T17:46:44.613Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 10
- Watchers: 0
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gulp Fancy Meta
An Gulp plugin to add and control easily all your HTML meta tag's in your static files, improve your SEO and save your dev time.
The plugin will generate all markup to optimize your social content.
You just need put the ```fancyfile.json``` on the root folder of your project and edit with your info.
The generator will put all markup to Twitter cards, Pinterest rich pins, Google's structured data and Facebook's Open Graph inside your HTML files.
Facy Meta will inject inside your `````` tag the code with the ```fancyfile.json``` content that you already provided. Between the code, the plugin will add twice "markers" like comments in your code to prevent your previous code be deleted.
These comments will be something like this:
```
```
## Install
```
npm install gulp-fancy-meta --save-dev
```
## In your GulpFile
```
var gulpFancyMeta = require('gulp-fancy-meta');
///////////
// TASK //
//////////
gulp.task('fancyMeta', function() {
return gulp.src('*.html')
.pipe(gulpFancyMeta())
.pipe(gulp.dest(''));
});
///////////
// BUILD //
///////////
gulp.task('default', ['fancyMeta']);
```
## Run
```
gulp
```
or
```
gulp fancyMeta
```
If you are a SEO-ninja, after Gulp run maybe some tags that you already put in your code will be duplicated. Verify your `````` and check if you not have some tag duplicated in your HTML files.
And voilà! It's simple. Enjoy! :)