@pfaffman 我尝试了以下设置:
- 安装你的主题组件
- 将
home_url_override设置为 https://thx.zoethical.org/TransHack_·Xist·nce… - 添加一些 Nginx 配置以匹配该 HTML 文件:
location = /TransHack_·Xist·nce… {
default_type text/html;
alias /srv/www/zoethical.org/thx/home.html;
}
直接调用该文件可以正常工作,但访问 https://thx.zoethical.org 却失败。我注意到系统会检查固定链接,因此尝试为 / 添加一个固定链接,但仍未奏效。这是否可能是缓存问题?
供参考,这是 home.html 文件的内容:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> TransHack ·Xist·nce… </title>
<link rel="stylesheet" href="/thx.css">
</head>
<body class="thx home">
<header>
<h1>THX</h1>
</header>
<section id="agora">
<h2><a href="https://thx.zoethical.org/c/agora/1">Agora</a></h2>
<d-topics-list discourse-url="https://thx.zoethical.org" per-page="5" category="1"></d-topics-list>
</section>
<section id="fonderie-de-fiction">
<h2><a href="https://thx.zoethical.org/c/fonderie-de-fiction/7">Fonderie de fiction</a></h2>
<d-topics-list discourse-url="https://thx.zoethical.org" per-page="5" category="7"></d-topics-list>
</section>
<script src="https://thx.zoethical.org/javascripts/embed-topics.js"></script>
</body>
</html>
编辑:我猜这可能是由于该实例需要登录(SSO),在这种情况下出现了功能异常。我可能愿意进行更多测试,包括更开放地访问该实例。即使将站点渲染为公开,访问主页时仍然显示“哎呀!该页面不存在或是私有的”。有什么想法吗?