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

author_meta(assigns)

Avatar, location, website and socials for an author page.

Attributes

  • author (:map) (required)

listing_count(assigns)

"3 posts" or, on the search page, "3 results".

Attributes

  • posts (:list) (required)
  • search (:boolean) - Defaults to false.

member_page(assigns)

mode_toggle(assigns)

search_form(assigns)

Attributes

  • q (:string) (required)

site_credit(assigns)

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)

subscribe_page(assigns)