Browse Source

change emails based on domain

master
hokkqi 2 weeks ago
parent
commit
81feed2e10
2 changed files with 4 additions and 7 deletions
  1. +3
    -0
      server.js
  2. +1
    -7
      views/index.hbs

+ 3
- 0
server.js View File

@@ -60,6 +60,7 @@ app.use(
module.exports = (client) => {
app.get("/", async (req, res) => {
let email = "hire@hkki.cc";
let code = [
{
name: "portfolio",
@@ -122,11 +123,13 @@ module.exports = (client) => {
!["p.hkki.cc", "p.hokkqido.download"].includes(req.hostname.toLowerCase())
) {
code.push(yiff);
email = "howl@werewolf.computer";
}
res.render("index", {
layout: "main",
name: `hokkqi/`,
host: req.hostname,
email,
portfolio: { code },
});
});


+ 1
- 7
views/index.hbs View File

@@ -18,14 +18,8 @@
<div>
<p class="contactme">hire me for a project?</p>
<a class="email" href="mailto:howl@werewolf.computer">howl@werewolf.computer</a>
<a class="email" href="mailto:{{email}}">{{email}}</a>
</div>
</section>
{{!-- <section id="Twitter">
<h1>
<a class="art" href="https://twitter.com/floofydev" target="_blank">@floofydev</a>
</h1>
</section> --}}
</body>

Loading…
Cancel
Save