mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
parent
a4bc0a1742
commit
f1918ea37f
|
@ -1,5 +1,6 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Fluid;
|
using Fluid;
|
||||||
|
@ -35,7 +36,7 @@ namespace BililiveRecorder.Web
|
||||||
|
|
||||||
var tc = new TemplateContext(options);
|
var tc = new TemplateContext(options);
|
||||||
tc.SetValue("path", (context.Request.PathBase + context.Request.Path).Value);
|
tc.SetValue("path", (context.Request.PathBase + context.Request.Path).Value);
|
||||||
tc.SetValue("files", contents);
|
tc.SetValue("files", contents.OrderBy(x => x.Name));
|
||||||
|
|
||||||
var result = template.Render(tc);
|
var result = template.Render(tc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user