Search Engine Optimization(SEO) is a moving target which is often misunderstood. Rise of social media has changed the traditional SEO techniques. Changes in search algorithms has made several SEO techniques obsolete.
Elegant does its best to leverage all available search and social media tags to give your site higher ranking in search results and optimize it for sharing via social media.
Social Media Optimization (SMO)
Inspired by the post “What is the New SEO? Pubcon 2013 Takeaways”, I looked into the tags that social media sites use. They can be broadly divided into two categories, Open Graph protocol and Twitter Cards.
Open Graph protocol
Elegant uses following tags,
og:url
is set to article URLog:type
is set to “article”og:title
is set to article tile and optional subtitleog:site_name
is set toSITENAME
from your Pelican configurationog:description
is set to article summaryog:article:author
is set to article authorog:article:published_time
is set to article dateog:image
is an optional tag. It is set to value offeatured_image
featured_image
should be the complete URL of an image. This image is
displayed with the article link on most social sites.
Elegant looks for it first in the article metadata, here is metadata for an example reST formatted file.
:featured_image: http://oncrashreboot.com/images/article-1-image.jpg
Then it looks for FEATURED_IMAGE
in Pelican configuration. If it finds
neither, og:image
is not used.
If you want to use og:image
tag then make sure you define featured_image
in
your article metadata. You should also define FEATURED_IMAGE
in your
Pelican configuration to be used as a generic image in case an article does not
have featured_image
defined.
Twitter Cards
Elegant uses following tags,
twitter:card
is set to “summary”twitter:title
is set to article title and optional subtitletwitter:creator
is set toTWITTER_USERNAME
if defined in Pelican configurationtwitter:description
is set to article summarytwitter:image
is set tofeatured_image
. Thefeatured_image
discussion above is also applicable in this case
Please note you need to be approved by Twitter before you can start using Twitter Cards.
Search Engine Optimization (SEO)
Elegant puts tags and category of your article in keywords tag <meta name="keywords"
.
You can add your own keywords by defining keywords
in article metadata.
SITE_DESCRIPTION
and article summary
is used in description tag <meta name="description"
.
Your AUTHOR
name is used in copyright tag <meta name="copyright"
.