captaincodeman / app-metadata Goto Github PK
View Code? Open in Web Editor NEWManage page meta tags for SEO
Home Page: http://captaincodeman.github.io/app-metadata/
Manage page meta tags for SEO
Home Page: http://captaincodeman.github.io/app-metadata/
I don't quite understand the difference between using this element and declarative way of setting up those metadata on the page. It might be nice to include examples like case studies or issues that this element is trying to improve in terms of SEO. Looking forward to your response. Thank you.
Hi
The syntax used to declare the app-metadata
element is of Polymer 1.x. Do you plan to update the code to Polymer 2.0? If not, what is your opinion on the compatibility of this element with Polymer 2.x
I am able to add meta tags to the head of the index. They end up at the end of the head section. I've set up OG tags for data derived from each page. I have a page of posters and then a details page which I want show different titles for. Why do you think the Facebook crawler is not seeing the OG tags. Heres my details page:
`
<style include="shared-styles"> :host { display: block; }</style>
<app-route
route="{{route}}"
pattern="/:poster_id"
data="{{routeData}}"
tail="{{subroute}}">
</app-route>
<firebase-document
id="firebaseDoc"
path="/posters/[[routeData.poster_id]]"
data="{{poster}}">
</firebase-document>
<app-metadata></app-metadata>
<div class="poster_board">
<a href="./[[routeData.poster_id]]">
<plastr-poster id="poster"
name="[[poster.name]]"
location=[[poster.location]]
poster="[[poster.poster]]"
date="[[poster.date]]">
</plastr-poster>
</a>
</div>
attached: function() {
// this will create the singleton element if it has not been created yet
Polymer.AppMetadata.requestAvailability();
},
properties: {
prop1: {
type: String,
value: 'plastr-app',
},
},
observers: ['_fireMetadataEvent(poster, routeData)'],
_fireMetadataEvent: function(poster, routeData) {
if (poster) {
this.fire('app-metadata', {
"description": poster.name,
"keywords": 'events, posters, local, music, dance, art',
"og:title": "plastrr",
"og:description": poster.name,
"og:image":poster.poster,
"og:url": "https://plastrr-baa70.firebaseapp.com/details/" + routeData.poster_id,
"twitter:card":"",
});
}
}
});
</script>`
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.