Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make LINK REL stuff a separate template
- Loading branch information
Showing
5 changed files
with
41 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,37 @@ | |||
__section__ | |||
default | |||
__description__ | |||
Add LINK REL navigation stuff for header | |||
|
|||
No specially passed variables | |||
__title__ | |||
|
|||
__page__ | |||
misc | |||
__lang__ | |||
en_US | |||
__name__ | |||
linkrel | |||
__template__ | |||
[%# reserved for article.pl links only ... others possible. %] | |||
[%# journals, comments, admin story list? %] | |||
[% IF env.script_name.search('article\.pl') -%] | |||
[%- IF link.prev %] | |||
<LINK REL="prev" HREF="[% constants.rootdir %]/article.pl?sid=[% link.prev.sid %]" TITLE="[% link.prev.title | strip_attribute %]"> | |||
[%- END ; IF link.next %] | |||
<LINK REL="next" HREF="[% constants.rootdir %]/article.pl?sid=[% link.next.sid %]" TITLE="[% link.next.title | strip_attribute %]"> | |||
[%- END ; IF link.author # author is uid %] | |||
<LINK REL="author" HREF="[% constants.rootdir %]/search.pl?op=stories&author=[% link.author %]"> | |||
[%- END ; | |||
ELSE ; # default author link, where author is a nickname | |||
IF link.author %] | |||
<LINK REL="author" HREF="[% constants.rootdir %]/~[% link.author | fixparam %]/" TITLE="[% link.author | strip_attribute %]"> | |||
[%- END ; | |||
END ; IF link.section %] | |||
<LINK REL="parent" HREF="[% constants.rootdir %]/" TITLE="[% link.section | strip_attribute %]"> | |||
[%- END %] | |||
<LINK REL="top" HREF="[% constants.real_rootdir %]/" TITLE="[% constants.slogan | strip_attribute %]"> | |||
<LINK REL="search" HREF="[% constants.rootdir %]/search.pl" TITLE="Search [% constants.sitename | strip_attribute %]"> | |||
|
|||
__seclev__ | |||
10000 |