Skip to content

Commit 58ef06b

Browse files
authored
Merge pull request #39 from tsugumi-sys/chore/fix-icon-path
chore: fix icon path
2 parents 06cb21e + 5e852af commit 58ef06b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mejiro-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mejiro-cli"
3-
version = "0.1.16"
3+
version = "0.1.17"
44
edition = "2024"
55
description = "A CLI tool for Mejiro"
66
license = "MIT OR Apache-2.0"

mejiro-cli/src/compile.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ pub fn compile(input_dir: &str, output_dir: &str, config_path: &str) {
8181
&posts,
8282
&config,
8383
&css_filename,
84+
icon_file_name,
8485
&footer,
8586
);
8687

@@ -183,16 +184,16 @@ fn build_index_page(
183184
posts: &[Post],
184185
config: &MejiroConfig,
185186
css_filename: &str,
187+
icon_filename: &str,
186188
footer: &str,
187189
) {
188-
let icon_file = &config.styles.icon;
189190
let aside = html::aside_html(
190191
&config.owner.name,
191192
&config.owner.github_link,
192193
&config.owner.linkedin_link,
193-
icon_file,
194+
icon_filename,
194195
);
195-
let icon = html::icon_html(icon_file);
196+
let icon = html::icon_html(icon_filename);
196197

197198
let index_html = html::index_html(
198199
&config.owner.name,

0 commit comments

Comments
 (0)