如何讓 Blogger 自動變換 meta content 中的 Description 和 Keywords

SEO與 meta content 中的 Description 和 Keywords 息息相關
但又希望每一篇文的參數可以隨該文內容變換
其實有一個不錯的方法如下

只要到原始碼中,先找到
<b:skin><![CDATA
然後在此行前面加上下列程式碼
<meta expr:content='data:blog.pageName' name='Description'/>
<meta expr:content='data:blog.pageName' name='Keywords'/>
經過測試,每篇文章的標題自動成為 meta content 的 Description 和 Keywords

除了文章標題外 還可以設定其他的變數如
blog的名稱    data:blog.title
文章的標題   data:blog.pageName
網頁的標題   data:blog.pageTitle
網頁的網址   data:blog.url
網頁的類型   data:blog.pageType
若想設定不只一個變數的複合式設定,可以用+號做連接
<meta expr:content='data:blog.pageName + " " + data:blog.title' name='Description'/>
<meta expr:content='data:blog.pageName + " " + data:blog.title' name='Keywords'/>
順便再加上
<link expr:href='data:blog.url' rel='shortlink'/>
<meta content='all' name='Robots'/>
希望對您有幫助

COMMENTS

Name

BLOGGER,5,Business,1,featured,1,Google Drive,1,LYTONE,3,MAC,1,Slider,5,中國保健食品,4,中美晶,7,中菲,1,健康常識,5,其他類別,2,功能性原料,1,區塊鏈,1,哈爾濱,1,智慧城鄉計劃案,2,海南島,1,生技產業常識,1,產生器,1,私廚,1,筆記,5,線上應用,1,聚會推薦,1,藝術,1,讀書筆記,6,跨境電商,6,軟體相關職位,2,長照與科技,1,雲端運算,1,青田街,1,食品原料,1,食旅推薦,2,食記,1,養老產業,1,
ltr
item
阿淦正撰: 如何讓 Blogger 自動變換 meta content 中的 Description 和 Keywords
如何讓 Blogger 自動變換 meta content 中的 Description 和 Keywords
http://2.bp.blogspot.com/-PmKDBGrTdWo/VEfnYAdSFnI/AAAAAAAABvs/IbkHodbd8TA/s1600/01.jpg
http://2.bp.blogspot.com/-PmKDBGrTdWo/VEfnYAdSFnI/AAAAAAAABvs/IbkHodbd8TA/s72-c/01.jpg
阿淦正撰
https://www.popcapworld.tw/2014/10/blogger-meta-content-description.html
https://www.popcapworld.tw/
https://www.popcapworld.tw/
https://www.popcapworld.tw/2014/10/blogger-meta-content-description.html
true
4977809703546686141
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content