@@ -135,14 +135,16 @@ pub fn base(title: Option<&str>, styles: Option<&str>, content: Markup) -> Marku
135135 div. indeterminate style="background-color: #ff2e88;" { }
136136 }
137137
138+ input name="bustCache" value={ ( * CACHEBUSTER ) } type ="hidden" { }
139+
138140 body. snow. hack. dark-grey hx-ext="preload" hx-indicator=".progress" {
139141 . container {
140142 br;
141143
142144 header {
143145 nav {
144- div hx-boost="true" hx-push-url= "true" hx-swap= "innerHTML " hx-target= ".snowframe " {
145- a. logo href="/" { "> z9fr@blog:~$" }
146+ div hx-boost="true" hx-swap= "innerHTML" hx-target= ".snowframe " hx-include= "[name='bustCache'] " {
147+ a. logo href="/" hx-push-url= "/" { "> z9fr@blog:~$" }
146148 }
147149 }
148150 }
@@ -155,15 +157,15 @@ pub fn base(title: Option<&str>, styles: Option<&str>, content: Markup) -> Marku
155157 }
156158 hr;
157159 footer {
158- div hx-boost="true" hx-push-url= "true" hx-swap="innerHTML" hx-target=".snowframe" {
160+ div hx-boost="true" hx-include= "[name='bustCache']" hx-swap="innerHTML" hx-target=".snowframe" {
159161 nav {
160- a href="/" preload { "Home" }
162+ a href="/" hx-push-url= "/" { "Home" }
161163 " - "
162- a href="/blog" preload { "Blog" }
164+ a href="/blog" hx-push-url= "/blog" { "Blog" }
163165 " - "
164- a href="/contact" preload { "Contact" }
166+ a href="/contact" hx-push-url= "/contact" { "Contact" }
165167 " - "
166- a href="/stack" preload { "Uses" }
168+ a href="/stack" hx-push-url= "/stack" { "Uses" }
167169 }
168170 }
169171
@@ -179,6 +181,12 @@ pub fn base(title: Option<&str>, styles: Option<&str>, content: Markup) -> Marku
179181 }
180182}
181183
184+ pub fn email_address ( ) -> Markup {
185+ return html ! (
186+ a href={ "mailto:z9fr@protonmail.com" } { "z9fr@protonmail.com" }
187+ ) ;
188+ }
189+
182190pub fn contact ( links : & Vec < Link > , is_partial : bool ) -> Markup {
183191 let markup = html ! {
184192 h1 { "Contact Information" }
@@ -189,7 +197,11 @@ pub fn contact(links: &Vec<Link>, is_partial: bool) -> Markup {
189197 . grid {
190198 . cell. "-6of12" {
191199 h3 { "Email" }
192- a href={ "mailto:z9fr@protonmail.com" } { "z9fr@protonmail.com" }
200+
201+ button. "btn btn-default btn-ghost" hx-indicator="#spinner" hx-post="/email" hx-swap="outerHTML" {
202+ "View email address" span. loading id="spinner" style="display:none;" { }
203+ } ;
204+
193205 br;
194206 br;
195207
0 commit comments