Skip to content

A lightweight Sites-aware interface for managing metatag/title information in templates.

License

Notifications You must be signed in to change notification settings

industrydive/django-site-metatags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This allows you to specify Titles and Meta tags to override the normal tags on given pages

Based on https://github.com/subsume/django-metatags 

The main difference is that this fork expects to be used with the Sites framework. There
are some additional minor bugfixes and cleanup in the admin.

INSTALL:

1) add metatags to INSTALLED_APPS, Syncdb or "migrate" using South.

2) Create some URLMetatags model instances via the admin

3) Load the "metatag_tags" templatetag in your base tag and call {% metatag_populate %}
   This will create a metatag dict in the current context that you can access like:
   <title>{{ metatag.title|default:"default page title"}}</title>

About

A lightweight Sites-aware interface for managing metatag/title information in templates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%