mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-03-30 12:11:58 +00:00
remove emabssy pro page and implement 404 page
This commit is contained in:
25
.eleventy.js
25
.eleventy.js
@@ -4,6 +4,10 @@ const pluginSEO = require("eleventy-plugin-seo");
|
|||||||
const tinysvg = require('@sardine/eleventy-plugin-tinysvg');
|
const tinysvg = require('@sardine/eleventy-plugin-tinysvg');
|
||||||
const slinkity = require('slinkity')
|
const slinkity = require('slinkity')
|
||||||
|
|
||||||
|
// for 404 callback
|
||||||
|
const fs = require("fs");
|
||||||
|
const NOT_FOUND_PATH = "_site/404.html";
|
||||||
|
|
||||||
module.exports = function (eleventyConfig) {
|
module.exports = function (eleventyConfig) {
|
||||||
eleventyConfig.addPassthroughCopy('./src/assets/images/');
|
eleventyConfig.addPassthroughCopy('./src/assets/images/');
|
||||||
eleventyConfig.addPassthroughCopy('./src/assets/videos/');
|
eleventyConfig.addPassthroughCopy('./src/assets/videos/');
|
||||||
@@ -22,6 +26,27 @@ module.exports = function (eleventyConfig) {
|
|||||||
return format(date, dateFormat)
|
return format(date, dateFormat)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 404 callback
|
||||||
|
eleventyConfig.setBrowserSyncConfig({
|
||||||
|
callbacks: {
|
||||||
|
ready: function(err, bs) {
|
||||||
|
|
||||||
|
bs.addMiddleware("*", (req, res) => {
|
||||||
|
if (!fs.existsSync(NOT_FOUND_PATH)) {
|
||||||
|
throw new Error(`Expected a \`${NOT_FOUND_PATH}\` file but could not find one. Did you create a 404.html template?`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const content_404 = fs.readFileSync(NOT_FOUND_PATH);
|
||||||
|
// Add 404 http status code in request header.
|
||||||
|
res.writeHead(404, { "Content-Type": "text/html; charset=UTF-8" });
|
||||||
|
// Provides the 404 content without redirect.
|
||||||
|
res.write(content_404);
|
||||||
|
res.end();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: { input: "src", output: "_site", data: "_data" },
|
dir: { input: "src", output: "_site", data: "_data" },
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question": "Will you add \"X\" service to the Marketplace?",
|
"question": "Will you add \"X\" service to the Marketplace?",
|
||||||
"answer": "The answer from Start9, the company, is \"probably not.\" Start9 is dedicated to building a powerful and reliable foundation for Sovereign Computing in the form of StartOS. Start9 will always maintain a small set of \"official\" services, which allow for a wide range of features that the average user would need. The bulk of the responsibility for StartOS service packaging therefore, will fall on community and upstream software developers. Check out <a href=\"https://blog.start9.com/start9-marketplace-strategy/\" target=\"_blank\" rel=\"noopener noreferrer\">this blog post</a> for more details on this strategy. If you'd like to show demand for a particular service, you can upvote it or add it to this <a href=\"https://embassyos.fans/\" target=\"_blank\" rel=\"noopener noreferrer\">unofficial feedback forum</a>.<br/><br/>We strive to make it as easy as possible to add a service to StartOS, and we do not want to limit this ability to those with extensive development skills. This will be a process that evolves a lot over the coming years. Please check out our <a href=\"https://docs.start9.com/latest/developer-docs\" target=\"_blank\" rel=\"noopener noreferrer\">Developer Docs</a> to learn more.",
|
"answer": "The answer from Start9, the company, is \"probably not.\" Start9 is dedicated to building a powerful and reliable foundation for Sovereign Computing in the form of StartOS. Start9 will always maintain a small set of \"official\" services, which allow for a wide range of features that the average user would need. The bulk of the responsibility for StartOS service packaging therefore, will fall on community and upstream software developers. Check out <a href=\"https://blog.start9.com/start9-marketplace-strategy/\" target=\"_blank\" rel=\"noopener noreferrer\">this blog post</a> for more details on this strategy. If you'd like to show demand for a particular service, you can upvote it or add it to this <a href=\"https://startos.fans/\" target=\"_blank\" rel=\"noopener noreferrer\">unofficial feedback forum</a>.<br/><br/>We strive to make it as easy as possible to add a service to StartOS, and we do not want to limit this ability to those with extensive development skills. This will be a process that evolves a lot over the coming years. Please check out our <a href=\"https://docs.start9.com/latest/developer-docs\" target=\"_blank\" rel=\"noopener noreferrer\">Developer Docs</a> to learn more.",
|
||||||
"bullets": [],
|
"bullets": [],
|
||||||
"additional": ""
|
"additional": ""
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -501,38 +501,6 @@ section#creators {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#pro-tagline {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
gap: 1rem;
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
text-align: center;
|
|
||||||
padding: 1rem 1.3rem;
|
|
||||||
color: var(--c-text-bright);
|
|
||||||
background-color: var(--c-accent);
|
|
||||||
border: 0;
|
|
||||||
font-family: var(--f-accent);
|
|
||||||
font-weight: 300;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
text-decoration: none;
|
|
||||||
box-shadow: 0 1rem 1rem -0.5rem var(--c-shadow-3);
|
|
||||||
border-radius: 34px;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
transform: scale(1.03);
|
|
||||||
filter: brightness(120%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
text-align: center;
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a.btn {
|
a.btn {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0.7rem 1.7rem;
|
padding: 0.7rem 1.7rem;
|
||||||
@@ -688,14 +656,4 @@ section#faq {
|
|||||||
top: -148%;
|
top: -148%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#pro-tagline {
|
|
||||||
.btn {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
font-size: 1.7rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
---
|
|
||||||
title: Embassy Pro
|
|
||||||
excerpt: Introducting our new flagship personal server product for sovereign computing
|
|
||||||
image: https://start9.com/thumbnail-pro.jpg
|
|
||||||
ogtype: summary
|
|
||||||
layout: layouts/peripheral.njk
|
|
||||||
---
|
|
||||||
|
|
||||||
<section id="hero">
|
|
||||||
<div id="hero-image" class="image-with-shadow">
|
|
||||||
<img src="/assets/images/news-hero.png" alt="news page hero: html tag emerging from a server" title="news page hero: tv emerging from a server"/>
|
|
||||||
<img class="img-shadow" src="/assets/images/news-hero.png" alt=""/>
|
|
||||||
</div>
|
|
||||||
<div id="logo">
|
|
||||||
<h1 class="text-center pb1">
|
|
||||||
<span>Embassy Pro</span>
|
|
||||||
</h1>
|
|
||||||
<div id="pro-tagline">
|
|
||||||
<p class="pb1">Introducting our new flagship product</p>
|
|
||||||
<a href="{{ site.products.pro }}" class="btn" rel="noopener noreferrer" target="_blank">Get yours</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="video-container">
|
|
||||||
<div class="video-wrapper">
|
|
||||||
<iframe src="/compressed.mp4" allowfullscreen></iframe>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
Reference in New Issue
Block a user