Module: HrefTag
- Defined in:
- href.rb
Overview
Generates an href. Note that the url should not be enclosed in quotes.
If the link starts with 'http' or match
is specified:
The link will open in a new tab or window
The link will include rel=nofollow
for SEO purposes.
To suppress the nofollow
attribute, preface the link with the word follow
.
To suppress the target
attribute, preface the link with the word notarget
.
The match
option looks through the pages collection for a URL with containing the provided substring.
Match implies follow and notarget.
If a section called plugin-vars exists then its name/value pairs are available for substitution. plugin-vars: django-github: 'https://github.com/django/django/blob/3.1.7' django-oscar-github: 'https://github.com/django-oscar/django-oscar/blob/3.0.2'
href {{django-github}/django/core/management/init.py#L398-L401
django.core.management.execute_from_command_line
%}
Defined Under Namespace
Classes: ExternalHref