Something went wrong. Try again.
Personal website
Something went wrong. Try again.
920 B · 31 lines
at master
12345678910111213141516171819202122232425262728293031@* This file is part of NKK.
NKK is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
NKK is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with NKK. If not, see <http://www.gnu.org/licenses/>.*@
@page "/random-splash"@layout EmptyLayout@using Microsoft.Extensions.Configuration@inject IConfiguration Config
<Markdown StripOuter="true"> @( Config .GetSection("Splashes") .Get<String[]>()? .AsEnumerable() .RandomElement() ?? "missingno" )</Markdown>