hlongvu / phoenix_meta_tags Goto Github PK
View Code? Open in Web Editor NEWPhoenix library helps generating meta tags for website.
License: MIT License
Phoenix library helps generating meta tags for website.
License: MIT License
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.
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.
See phoenix_html changelog for explanation of what has changed.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.