Closed GoogleCodeExporter closed 9 years ago
1) It definitely seems like a human-readable description would be superior to a
bunch of tags; I favor the first-N-characters idea.
2) There may be a better way to provide this data than using a description meta
tag that has redundant information in it from the same page. Google suggests
that by associating page elements with schema.org attributes, we can get it to
parse out the right text for the title and description. So this might work if
we just appropriately annotate the element containing the post text. See
https://developers.google.com/+/plugins/+1button/#plus-snippet for description
of Google's behavior.
Original comment by mquan...@gmail.com
on 12 Dec 2011 at 5:51
I don't think redundancy really matters - have you looked at the page source,
it's pretty grotesque already. The question is which would be *easier to
implement* for you. I would just like this done, I'm not going to bikeshed or
NIH over whether to use snippets or '<meta description=>'.
Attached is an example of Google+ using the first-N-characters heuristic for
Wikipedia, where it mostly works.
Original comment by gwe...@gmail.com
on 12 Dec 2011 at 6:17
Attachments:
I suspect the easiest would be the first-N-characters idea. It should be
straightforward to grab the article body, strip the html markup (see killhtml
in filters.py) and add another tag to the <head> section (see base.html).
Original comment by DRPow...@gmail.com
on 13 Dec 2011 at 4:18
[deleted comment]
I submitted a patch for this issue that implements the "name" and "description"
schema.org attributes; that seemed like both the easiest to implement and
likely the best way to do it.
https://github.com/tricycle/lesswrong/pull/13/
@DRPowell -- I didn't see your comment before making my change -- if you
believe that the meta tag approach has greater merit (I'm relatively clueless
about which is better) then I'll go back and do that instead.
Original comment by mquan...@gmail.com
on 13 Dec 2011 at 5:58
This looks fine. I'm not sure how well Google+ will pick this up, but it is
worth a try. I'll deploy it now.
@gwern - I don't use Google+, can you close this ticket once you confirm it
works satisfactorily.
Original comment by DRPow...@gmail.com
on 14 Dec 2011 at 2:07
Looks much better - now it actually gives some clue as to content.
Good work everyone.
Original comment by gwe...@gmail.com
on 14 Dec 2011 at 2:12
Attachments:
Original comment by wjmo...@gmail.com
on 20 Apr 2012 at 6:25
Original issue reported on code.google.com by
gwe...@gmail.com
on 12 Dec 2011 at 2:12Attachments: