Skip to content

Commit 6c60549

Browse files
committed
fix verify
1 parent 272143f commit 6c60549

3 files changed

Lines changed: 1 addition & 35 deletions

File tree

src/meetups/website/md.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use maud::{Markup, html};
2-
1+
use maud::html;
32

43
pub fn single_markdown_to_html(markdown: String) -> maud::Markup {
54
let m_as_html = markdown::to_html_with_options(&markdown, &markdown::Options::gfm())

src/meetups/website/mod.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,10 @@
1-
use super::Address;
2-
use super::Sponsor;
3-
use std::process::exit;
41
use std::{fs, io::Write};
52

63
use maud::{Markup, html};
74
mod md;
85

96
use crate::remote;
107

11-
impl Address {
12-
pub fn html(&self) -> Markup {
13-
maud::html! {
14-
div {
15-
p { @if let Some(description) = &self.description {
16-
(description)
17-
} " | " (self.street) " | " (self.city) " | " (self.postal_code) }
18-
}
19-
}
20-
}
21-
}
22-
23-
impl Sponsor {
24-
pub fn html(&self) -> Markup {
25-
maud::html! {
26-
div {
27-
p { (self.name) }
28-
@if let Some(website) = &self.website {
29-
a href=(website) { (website) }
30-
}
31-
@if let Some(content) = &self.content {
32-
p { (content) }
33-
}
34-
}
35-
}
36-
}
37-
}
38-
398
pub fn build() {
409
let (css, markdown) = remote::get_files();
4110

src/remote.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ use std::{fs, io::Read};
22

33
use xshell::cmd;
44

5-
use crate::meetups::Meetups;
6-
75
pub fn get_config_dir() -> std::path::PathBuf {
86
dirs::config_dir().unwrap()
97
}

0 commit comments

Comments
 (0)