Coder Social home page Coder Social logo

app-metadata's People

Contributors

binbalenci avatar captaincodeman 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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

app-metadata's Issues

Case studies and comparison with declarative meta-data in page

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.

Support Polymer 2.0

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

facebook graph

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>
` ` <script> Polymer({ is: 'my-details', ready: function() { },
  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>`

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.