fix links
This commit is contained in:
parent
2c77a3c2d8
commit
22d8866c53
3
Makefile
3
Makefile
|
@ -5,7 +5,8 @@ watch:
|
|||
cargo run --release -- watch
|
||||
|
||||
serve:
|
||||
python -m http.server -d ./dist
|
||||
echo "http://[::1]:1234/"
|
||||
python -m http.server 1234 -b ::1 -d ./dist
|
||||
|
||||
deploy: build
|
||||
rsync -Pavzq ./dist/ kamoshi:/var/www/kamoshi.org --delete
|
||||
|
|
|
@ -70,7 +70,7 @@ struct LinkDate {
|
|||
fn main() {
|
||||
let args = Args::parse();
|
||||
|
||||
let website = Website::design()
|
||||
let website = Website::setup()
|
||||
.add_collections(vec![
|
||||
Collection::glob_with::<Post>(
|
||||
"content",
|
||||
|
@ -138,7 +138,7 @@ fn main() {
|
|||
.into_iter()
|
||||
.map(|(path, meta)| LinkDate {
|
||||
link: Link {
|
||||
path: Utf8Path::new("/").join(path),
|
||||
path: Utf8Path::new("/").join(path.parent().unwrap()),
|
||||
name: meta.title.clone(),
|
||||
desc: meta.desc.clone(),
|
||||
},
|
||||
|
@ -158,7 +158,7 @@ fn main() {
|
|||
.into_iter()
|
||||
.map(|(path, meta)| LinkDate {
|
||||
link: Link {
|
||||
path: Utf8Path::new("/").join(path),
|
||||
path: Utf8Path::new("/").join(path.parent().unwrap()),
|
||||
name: meta.title.clone(),
|
||||
desc: meta.desc.clone(),
|
||||
},
|
||||
|
@ -178,7 +178,7 @@ fn main() {
|
|||
.into_iter()
|
||||
.map(|(path, meta)| LinkDate {
|
||||
link: Link {
|
||||
path: Utf8Path::new("/").join(path),
|
||||
path: Utf8Path::new("/").join(path.parent().unwrap()),
|
||||
name: meta.title.clone(),
|
||||
desc: meta.desc.clone(),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue