Complete website rewrite

This PR replaces the current CMS website with a static version of it built using Jekyll.

- Everything should be working 1 to 1 with the same permalinks except for the `/news` page (not articles) which was renamed as `/blog` (old links will redirect to new ones).
- The showcase entries on the home page now redirect to their showcase page in our site so that the user can choose which store front or page to visit next.
- I also changed the first link from the nav bar to go to the showcase page since the features one is still pretty outdated.

Co-authored-by: Yuri Sizov <yuris@humnom.net>
This commit is contained in:
Emilio Coppola
2022-12-31 15:07:48 +01:00
committed by Yuri Sizov
parent 2163d37b42
commit 2fa65521ee
2702 changed files with 57721 additions and 13016 deletions

112
_includes/footer.html Normal file
View File

@@ -0,0 +1,112 @@
</main>
<footer>
<div class="container flex">
<div id="copyright">
<p>
© 2007-{{ site.time | date: '%Y' }} Juan Linietsky, Ariel Manzur and <a
href="https://github.com/godotengine/godot/blob/master/AUTHORS.md" target="_blank"
rel="noopener">contributors</a><br>
Godot is a member of the <a href="https://sfconservancy.org/" target_="_blank" rel="noopener">Software Freedom
Conservancy</a>.<br>
Kindly hosted by <a href="https://tuxfamily.org" target="_blank" rel="noopener">TuxFamily.org</a>.<br>
<a href="https://github.com/godotengine/godot-website" target="_blank" rel="noopener">Website source code on
GitHub</a>.
</p>
</div>
<div id="sitemap">
<ul class="sitemap-group">
<li><strong>Get Godot</strong></li>
<li><a href="/download/windows" class="set-os-download-url">Download</a></li>
<li><a href="https://editor.godotengine.org/releases/latest/">Web Editor</a></li>
<li>&nbsp;</li>
<li><strong>Public Relations</strong></li>
<li><a href="/blog">Blog</a></li>
<li><a href="/community">Communities and Events</a></li>
<li><a href="/press">Press Kit</a></li>
</ul>
<ul class="sitemap-group">
<li><strong>About Godot</strong></li>
<li><a href="/features">Features</a></li>
<li><a href="/showcase">Showcase</a></li>
<li><a href="/education">Education</a></li>
<li><a href="/license">License</a></li>
<li><a href="/code-of-conduct">Code of Conduct</a></li>
<li><a href="/privacy-policy">Privacy Policy</a></li>
<li><a href="/donate">Donate</a></li>
</ul>
<ul class="sitemap-group">
<li><strong>Project Team</strong></li>
<li><a href="/governance">Governance</a></li>
<li><a href="/teams">Teams</a></li>
<li>&nbsp;</li>
<li><strong>Extra Resources</strong></li>
<li><a href="/asset-library/asset">Asset Library</a></li>
<li><a href="https://docs.godotengine.org">Documentation</a></li>
<li><a href="https://github.com/godotengine">Code Repository</a></li>
</ul>
</div>
<div id="social" class="dark-desaturate">
<h4 class="text-right"><a href="/contact">Contact us</a></h4>
<div class="flex justify-space-between">
<a href="https://github.com/godotengine" target="_blank" rel="noopener">
<img src="/assets/footer/github_logo.svg" width="32" height="32" alt="GitHub">
</a>
<a href="https://twitter.com/godotengine" target="_blank" rel="noopener">
<img src="/assets/footer/twitter_logo.svg" width="32" height="32" alt="Twitter">
</a>
<a href="https://www.facebook.com/groups/godotengine/" target="_blank" rel="noopener">
<img src="/assets/footer/facebook_logo.svg" width="32" height="32" alt="Facebook">
</a>
<a href="https://www.reddit.com/r/godot" target="_blank" rel="noopener">
<!-- Zero-width space in the `alt` text to prevent content blockers from blocking the icon -->
<img src="/assets/footer/reddit_logo.svg" width="32" height="32" alt="Reddit">
</a>
<a href="/rss.xml" target="_blank" rel="noopener">
<!-- Icon is called `feed` instead of `rss` to prevent content blockers from blocking the icon -->
<img src="/assets/footer/feed_logo.svg" width="32" height="32" alt="RSS feed">
</a>
</div>
</div>
</div>
</footer>
<script defer src="/assets/js/tobii.min.js"></script>
<script defer src="/assets/js/highlight.min.js?1"></script>
<script defer src="/assets/js/highlight.gdscript.min.js?1"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
// This needs to be done on page load but also after page changes,
// in case a code block appears in an article.
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightBlock(block);
});
document.querySelectorAll('.content-article img').forEach((articleImg) => {
// Add lightbox elements in blog articles for Tobii.
const lightbox = document.createElement('a');
lightbox.href = articleImg.src;
lightbox.classList.add('lightbox');
lightbox.dataset.group = 'article';
articleImg.parentNode.appendChild(lightbox);
lightbox.appendChild(articleImg);
});
// Initialize lightbox.
new Tobii({
zoom: false,
});
});
// Update any download link to point to identified user's OS.
const links = document.querySelectorAll('.set-os-download-url');
for (let i = 0; i < links.length; i++) {
const link = links[i];
link.href = "/download/windows";
if (navigator.platform.indexOf('Mac') !== -1) {
link.href = "/download/macos";
} else if (navigator.platform.indexOf('Linux') !== -1) {
link.href = "/download/linux";
}
}
</script>