fix domain in index

This commit is contained in:
jomo 2015-01-03 01:37:27 +01:00
parent f20633d980
commit 25cb3f3c35
2 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ var index = jade.compileFile(__dirname + "/../views/index.jade");
module.exports = function(req, res) {
var html = index({
title: "Crafatar",
domain: "https://" + "req.hostname",
domain: "https://" + req.headers.host,
config: config
});
res.writeHead(200, {

View File

@ -5,12 +5,12 @@ block content
.container
h1 Crafatar
p A blazing fast API for Minecraft faces!
img(alt="Jake0oo0's Avatar", height="64", width="64", src="#{domain}/avatars/2d5aa9cdaeb049189930461fc9b91cc5?size=64&helm")
img(alt="redstone_sheep's Avatar", height="64", width="64", src="#{domain}/avatars/ae795aa86327408e92ab25c8a59f3ba1?size=64&helm")
img(alt="sk89q's Avatar", height="64", width="64", src="#{domain}/avatars/0ea8eca3dbf647cc9d1ac64551ca975c?size=64&helm")
img(alt="md_5's Avatar", height="64", width="64", src="#{domain}/avatars/af74a02d19cb445bb07f6866a861f783?size=64&helm")
img(alt="Jeb's Avatar", height="64", width="64", src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&helm")
img(alt="Notch's Avatar", height="64", width="64", src="#{domain}/avatars/069a79f444e94726a5befca90e38aaf5?size=64")
img(alt="Jake0oo0's Avatar", height="64", width="64", src="/avatars/2d5aa9cdaeb049189930461fc9b91cc5?size=64&helm")
img(alt="redstone_sheep's Avatar", height="64", width="64", src="/avatars/ae795aa86327408e92ab25c8a59f3ba1?size=64&helm")
img(alt="sk89q's Avatar", height="64", width="64", src="/avatars/0ea8eca3dbf647cc9d1ac64551ca975c?size=64&helm")
img(alt="md_5's Avatar", height="64", width="64", src="/avatars/af74a02d19cb445bb07f6866a861f783?size=64&helm")
img(alt="Jeb's Avatar", height="64", width="64", src="/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&helm")
img(alt="Notch's Avatar", height="64", width="64", src="/avatars/069a79f444e94726a5befca90e38aaf5?size=64")
.container
section(id="documentation")
h2 Documentation