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

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.

Want more Flatpress hints? Check out this article - Make FlatPress generate meta tags without the use of the SEO Metatag Info plugin.

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

A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.