WraithWeb. Themes. Shared
(Wraith v0.1.0)
View Source
Pages and pieces every layout shares: subscribe, the member account, the search box, the nav and mode toggles, the footer credit, social links.
Every reader-facing string here goes through gettext, so the public site
follows the site's lang setting (WraithWeb.Locale).
Summary
Functions
Avatar, location, website and socials for an author page.
"3 posts" or, on the search page, "3 results".
The hamburger that shows the site nav on small screens. Pure JS commands —
no hook — so it works the instant the dead render arrives. target is the
nav's DOM id.
The footer line every layout shares: the site's note and, if allowed, the Wraith credit.
Functions
Avatar, location, website and socials for an author page.
Attributes
author(:map) (required)
"3 posts" or, on the search page, "3 results".
Attributes
posts(:list) (required)search(:boolean) - Defaults tofalse.
Attributes
q(:string) (required)
The footer line every layout shares: the site's note and, if allowed, the Wraith credit.
Attributes
site(:map) (required)
social_links(assigns)
Attributes
site(:map) (required)