<%= link_to "All", root_path(filter: 'all'), class: "button #{@filter == 'all' ? 'active' : ''}" %>
<%= link_to "Dispatches", root_path(filter: 'posts'), class: "button #{@filter == 'posts' ? 'active' : ''}" %>
<%= link_to "Bookmarks", root_path(filter: 'bookmarks'), class: "button #{@filter == 'bookmarks' ? 'active' : ''}" %>
+ <%= link_to "Join mind reader", join_path, class: "button" %>
<% @pages.each do |pg| %>
<%= link_to "#{pg.title}", public_page_path(pg.slug), class: "button" %>
<% end %>
--- /dev/null
+<div class="container" id="top">
+ <%= link_to root_path do %>
+ <%= image_tag "icon-512.png", class: "logo" %>
+ <% end %>
+ <% content_for :title, "Join mind reader" %>
+ <h1>Join mind reader</h1>
+ <%= link_to "↼ Back home...", "#{root_path}" %>
+</div>
+
+<div class="post">
+ <div class="container">
+ <%= image_tag "growchart.svg", class: "porter" %>
+ <h3>Below you can join mind reader and receive new dispatches via email.</h3>
+ <p>Joining by email means you never have to visit this (admittedly beautiful) website ever again. You’ll receive new posts straight in your email inbox. Bookmarks, however, are sent in digest to subscribers only – so if you’d like to see those, come back or keep reading.</p>
+ <p>Optionally, once you’ve signed up and confirmed your email address you are able to subscribe to mind reader financially by entering any non $0 AUD amount you wish. You are under no obligation to do this! Paid subscribers receive a digest of bookmarks and a monthly update from me on the state of the world that regular subscribers miss out on.</p>
+ <p>If you’re looking to cancel an existing membership or subscription, please go to <a href="https://buttondown.com/acb">Buttondown</a>.</p>
+ <form action="https://buttondown.com/api/emails/embed-subscribe/acb" method="post" target="popupwindow" onsubmit="window.open('https://buttondown.com/acb', 'popupwindow')" class="embeddable-buttondown-form">
+ <label for="bd-email">Enter your email</label>
+ <input type="email" name="email" id="bd-email" />
+ <input type="submit" value="Subscribe" />
+ </form>
+ </div>
+</div>
\ No newline at end of file
resources :posts
get '/feed', to: 'pubview#rss', as: 'rss', defaults: { format: 'rss' }
get '/feed/dispatches', to: 'pubview#dispatches_rss', as: 'dispatches_rss', defaults: { format: 'rss' }
+ get '/join', to: "pubview#join"
get '/:slug', to: 'pubview#show_public', as: 'public_page'
get '/:year/:slug', to: 'pubview#post', as: 'public_post'