SEO meta tags on each page.

I am trying to extract excerpts to display in meta description on each page of elgg 1.8.8. Something like that.

<meta name="description" content="<?php echo $excepts; ?>" />

<meta name="keywords" content="<?php echo $tags; ?>" />

I found this article to this but it is for 1.7

I asked same question in community but nobody reply.

I really appriciate if you give me some right directions on this.

Below is a link to community discussion. I also mention some more code there.

Click here