commit 9e34deb67a7669e289ff5bc4e9037e6e1d495e98
parent 6b5ddbe7f915700813b05f18b6eac3f7abaf9549
Author: Hugo Soucy <hugo@soucy.cc>
Date: Thu, 22 Apr 2021 16:05:46 -0400
Replace domainname by siteurl
Diffstat:
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/config.lua b/config.lua
@@ -3,7 +3,6 @@
--
return {
- domainname = "hugo.soucy.cc",
siteurl = "https://hugo.soucy.cc",
language = "fr",
diff --git a/templates/feed.xml.html b/templates/feed.xml.html
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="<%- language -%>">
- <title><%- domainname -%> ~ <%- title -%></title>
+ <title><%- siteurl:match('^%w+://([^/]+)') -%> ~ <%- title -%></title>
<% if description then %>
<subtitle><%- description -%></subtitle>
<% end %>
diff --git a/templates/head.html b/templates/head.html
@@ -1,7 +1,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <title><%= title -%> — <%= domainname -%></title>
+ <title><%= title -%> — <%= siteurl:match('^%w+://([^/]+)') -%></title>
<link
href="/css/index.min.css"
id="ui_css"