utils: fix leaderboard path
This commit is contained in:
parent
3f48e97fb3
commit
87628df052
1 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,6 @@ use rand::seq::IteratorRandom;
|
|||
use serde_json::Map;
|
||||
use serde_json::Value;
|
||||
use std::collections::HashMap;
|
||||
use std::env;
|
||||
use std::fs;
|
||||
use std::fs::File;
|
||||
use std::fs::OpenOptions;
|
||||
|
@ -430,7 +429,7 @@ pub async fn leaderboard(ctx: &Context<'_>) -> Result<(), Error> {
|
|||
.create(true)
|
||||
.write(true)
|
||||
.truncate(true)
|
||||
.open(env::var("LEADERBOARD").unwrap())
|
||||
.open(format!("{}/layouts/shortcodes/leaderboard.html", ARGS.hugo))
|
||||
.unwrap();
|
||||
file.write_all(leaderboard_html.as_bytes())?;
|
||||
file.flush()?;
|
||||
|
|
Loading…
Add table
Reference in a new issue