Git Product home page Git Product logo

phoenix_meta_tags's People

Contributors

hlongvu avatar kianmeng avatar klgt avatar redbrother avatar rsgrafx avatar samhamilton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

phoenix_meta_tags's Issues

Wrong twitter card meta tags

Twitter card requires different HTML markup for meta tags. Not content property sequence, but name content. Example:

<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@nickname">
<meta name="twitter:creator" content="@another_nickname">

I can send PR to fix that, if you don't mind.

Support for title templates

First of all, thanks for building this. I started using it for a new open-source project of mine, Gesttalt, and I came across the need for setting a title template that's used throughout all the routes where meta tags are set. Is this something you'd consider in the scope of the project? If so, is it ok if I go ahead with a code contribution in this PR? This is the API I was thinking about:

config :phoenix_meta_tags,
  titleTemplate: "%s - Gesttalt",
  description: "An open-source hub for social localization",
  url: "https://gesttalt.com",
  image: "https://gesttalt.com/images/squared-logo.jpg"

Where %s is replaced with the title of the route. I'm open to suggestions to make it more Elixirish.

How to use it in LiveView

Firstly, thanks for the useful library.
I am keen to know,

def controller do
  quote do
    ...
    use PhoenixMetaTags.TagController # Add this
  end
end

where to put these lines in case of a LiveView rendered page?

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.