Giter Club home page Giter Club logo

metatag-gen's Introduction

metatag-gen

CLI tool of meta tag generator.

Support Templates

  • HTML
  • Pug (Node.js)
  • HAML (Ruby)
  • Slim (Ruby)
  • JSX

Install

go get github.com/shinshin86/metatag-gen

If you want to use a single binary, please download from this Release page.

Usage

This tool can be used by giving the required information as parameters.

metatag-gen {parameters}

# If no parameter is specified, the output is empty. (Only template strings.)

Example

metatag-gen -u https://github.com/shinshin86/metatag-gen -t shinshin86/metatag-gen -d "CLI tool of meta tag generator." -k "meta tag, generator, cli" -i "/examples/images"

output(HTML)

<meta charset="utf-8">
<title>shinshin86/metatag-gen</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="title" content="shinshin86/metatag-gen">
<meta name="description" content="CLI tool of meta tag generator.">
<meta name="keywords" content="meta tag, generator, cli">

<!-- Open Graph Meta Tags -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://github.com/shinshin86/metatag-gen">
<meta property="og:title" content="shinshin86/metatag-gen">
<meta property="og:description" content="CLI tool of meta tag generator.">
<meta property="og:image" content="/examples/images">

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://github.com/shinshin86/metatag-gen">
<meta property="twitter:title" content="shinshin86/metatag-gen">
<meta property="twitter:description" content="CLI tool of meta tag generator.">
<meta property="twitter:image" content="/examples/images">

Example 2

metatag-gen -u https://github.com/shinshin86/metatag-gen -t shinshin86/metatag-gen -d "CLI tool of meta tag generator." -k "meta tag, generator, cli" -i "/examples/images" -tmpl="pug"

output(Pug)

meta(charset="utf-8")
meta(http-equiv="X-UA-Compatible" content="IE=edge")
title shinshin86/metatag-gen
meta(name="viewport" content="width=device-width,initial-scale=1")
meta(name="title" content="shinshin86/metatag-gen")
meta(name="description" content="CLI tool of meta tag generator.")
meta(name="keywords" content="meta tag, generator, cli")

// Open Graph Meta Tags
meta(property="og:type" content="website")
meta(property="og:url" content="https://github.com/shinshin86/metatag-gen")
meta(property="og:title" content="shinshin86/metatag-gen")
meta(property="og:description" content="CLI tool of meta tag generator.")
meta(property="og:image" content="/examples/images")

// Twitter
meta(property="twitter:card" content="summary_large_image")
meta(property="twitter:url" content="https://github.com/shinshin86/metatag-gen")
meta(property="twitter:title" content="shinshin86/metatag-gen")
meta(property="twitter:description" content="CLI tool of meta tag generator.")
meta(property="twitter:image" content="/examples/images")

parameters

Usage of metatag-gen
  -d string
    	Description
  -i string
    	OGP Image
  -k string
    	Keywords (If you want to specify more than one, please separate them with a comma.)
  -t string
    	Title
  -tmpl string
    	Use template (default "html")
  -u string
    	URL

You can also check with this command.

metatag-gen --help

Development

I use this package (shogo82148/assets-life) to be able to use it as a single binary.

To generate the package, I'm running this command first (You don't have to run this command, but I'm writing it for my own history.)

assets-life templates/ templates

To regenerate the package, run this command.

go generate  ./templates

Running this tool

go run main.go {parameters}

metatag-gen's People

Contributors

shinshin86 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.