Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SPA SEO

blue chen
February 27, 2014

SPA SEO

at Happy designer meetup 2014.02.27

blue chen

February 27, 2014

Transcript

40 slides
  1. ⽤用nginx 1. SEO基礎 本⽇日⼤大綱 2. How to make SPA app

    SEO friendly 3. 如何⾃自動化部屬SEO內容? 4. 溫馨⼩小提醒
  2. <html> <head> <title>這是title</title> </head> <body> <h1>Hello World!</h1> </body> </html> <html>

    <head> <title>{{ title }}</title> </head> <body> <script> //do some ajax awesome thing.. </script> </body> </html> 靜態網⾴頁(無ajax) 靜態網⾴頁(有ajax)
  3. <html> <head> <title><%= title %></title> </head> <body> <h1>Hello World!</h1> </body>

    </html> 當餵給crawler前,SEO Data 被先在server端印好輸出 Nodejs EJS <html> <head> <title>hello</title> </head> <body> <h1>Hello World!</h1> </body> </html> Nodejs 印出這些變數 crawler res.render({title:’hello’});

More Decks by blue chen

Other Decks in Technology