Skip to content

Commit 37fb39c

Browse files
authored
Merge pull request #32 from tsugumi-sys/fix/add-publishedat-for-search-result
fix: published_at meta for search result
2 parents 00d9ae9 + 9d15d02 commit 37fb39c

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
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.13"
3+
version = "0.1.14"
44
edition = "2024"
55
description = "A CLI tool for Mejiro"
66
license = "MIT OR Apache-2.0"

mejiro-cli/src/posts_json.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub fn generate_posts_json(posts: &[Post], output_dir: &str) {
1515
tags: post.meta.topics.clone(),
1616
tldr: post.meta.tldr.clone(),
1717
path: format!("posts/{}.html", post.name),
18+
published_at: post.meta.published_at.clone(),
1819
};
1920
let fields = vec![
2021
post.meta.title.clone(),

search/src/base_search.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ pub struct SearchPostMetaCompile {
1818
pub tags: Vec<String>,
1919
pub tldr: Option<String>,
2020
pub path: String,
21+
pub published_at: String,
2122
}

0 commit comments

Comments
 (0)