ソースを参照

Revert "Change the og:description value to the intro_html instead of markdown source"

This reverts commit aac5466598741b9f3fa96645f9281daef928a326.
Markus Ochel 12 年 前
コミット
b598f6bc21
1 ファイル変更2 行追加2 行削除
  1. 2 2
      site/server/lists.coffee

+ 2 - 2
site/server/lists.coffee

@@ -136,7 +136,7 @@ exports.collection = (head, req) ->
       og:
         site_name: site.name
         title: collection.name
-        description: collection.intro_html
+        description: collection.intro
         type: 'website'
         url: "#{site.link}/collection/#{collection.slug}"
         image: "#{site.link}/file/#{collection._id}/#{collection.photo}" if collection.photo
@@ -305,7 +305,7 @@ exports.doc = (head, req) ->
       og:
         site_name: site.name
         title: doc.title
-        description: doc.intro_html
+        description: doc.intro
         type: 'article'
         url: "#{site.link}/#{doc.type}/#{doc.slug}"
         image: "#{site.link}/file/#{doc._id}/#{doc.photo}" if doc.photo