Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ for more details.
The SEO Metatag Info plugin for FlatPress makes it easy to add metadata to blog posts (entries) using the HTML meta tag, however the static and blog pages do not seem to have the same functionality out of the box. Looking at the code reveals that these pages can also have metadata stored and added to when they are displayed. Adding this is a more manual task compared to blog posts, but it is possible.

The first thing to do is to create the statics directory in the seometa directory under the FlatPress content location.
 fp-content/content/seometa
> cd fp-content/content/seometa
> mkdir statics
> cd statics


Next is to create a file that contains the metadata to be displayed. For the blog home page, it needs to have the prefix 'blog', for a static page, the prefix is the name of the static page.

For example, the blog home page metadata file will be called blog_metatags.ini and will have the following content:
 fp-content/content/seometa/statics/blog_metatags.ini
[meta]
description=Description of the blog goes here.
keywords=blog, keyword, tag, etc
noindex=0
nofollow=0
noarchive=0
nosnippet=0




-i

Skip down to comments...
Hope you found this post useful...

...so please read on! I love writing articles that provide beneficial information, tips and examples to my readers. All information on my blog is provided free of charge and I encourage you to share it as you wish. There is a small favour I ask in return however - engage in comments below, provide feedback, and if you see mistakes let me know.

If you want to show additional support and help me pay for web hosting and domain name registration, donations, no matter how small, are always welcome!

Use of any information contained in this blog post/article is subject to this disclaimer.
 
comments powered by Disqus
Other posts you may like...