Dynamic head content

73 views
Skip to first unread message

Devin Weaver

unread,
May 18, 2016, 10:43:28 PM5/18/16
to TiddlyWikiDev
When the favicon changes there is logic that will update the link tag in the document's head.

I'm curious, might there be a way to add/remove/update special meta tags on some events.

Specifically, I'd love to have the head update with a meta description so that when I out put my index.html from Node that it can fill this in from config tiddlers. This way if you paste a permalink to something like Slack when it pulls the index.html file it has something to put in the details section of the link.

I think many bots use <meta name="description"…> and  <meta property="og:description"…>

Any thoughts / ideas / debates?

BJ

unread,
May 19, 2016, 4:07:51 PM5/19/16
to TiddlyWikiDev
Hi Devin,
I think that bots will most likely just read the header info, in which case the 'meta' stuff can be added in a tiddler tagged "$:/core/wiki/rawmarkup"

The favicon stuff looks interesting as it can be updated by writing to a tiddler - maybe something interesting could be done with animations.
cheers
BJ
Reply all
Reply to author
Forward
0 new messages