ftsrg / ftsrg.github.io

🔴⚫⭕ New, modern website of ftsrg
https://ftsrg.mit.bme.hu/
GNU Affero General Public License v3.0
2 stars 1 forks source link
bootstrap4 gatsbyjs i18next react reactjs sass typescript

Website of the Critical Systems Research Group (ftsrg)

Base code copied from gatsby-starter-i18n-react-i18next, special thanks to Josh Habdas.

Table of contents:

Contributing

See CONTRIBUTING.md. It's written in Hungarian.

Tech Stack

Good to know

Browsers

By default Gatsby supports these browsers. This starter customizes the Gatsby defaults and uses the defaults provided by Browserslist instead. Remove .browsersrc if you wish to restore the default Gatsby settings. Note this will affect the size of your bundled JavaScipt files. See Performance for more information on bundle sizes.

Performance

Gatsby uses server-side rendering to generate static HTML files during its build process. In addition to HTML files Gatsby will also generate a number of JavaScript bundles loaded at runtime to perform Hijax. As more code is added to your site it may become bloated which can impede performance and damage search rankings. Here are some tips to help keep your site running fast:

Don't optimize too early or you may end up optimizing things you decide you don't need later on.

SEO

Unlike most starters a keywords field is provided in the siteMetadata.keywords object in config/gatsby-config.ts. While some search engines may not utilize this field to curb keyword stuffing it's metadata and you may find other uses for it. Keywords may be overridden on a page-by-page basis if desired. To do so pass the keywords prop to the SEO component in your TSX files like:

const PageSpecificKeywords = () => (
  <SEO keywords={['foo', 'bar', 'baz', 'bat']}>
)

To instruct search engines and other spiders not to crawl the website add noindex, nofollow to siteMetadata.robots in config/gatsby-config.ts. You may wish to do this if, for instance, you're testing your production deployment and do yet wish to appear in search engines. Like keywords this may be set on a page-by-page basis. Use it to prevent legal pages and other low-value pages from appearing in search engines.

Environment

An empty .env.example file has been left in this project. This is where environment variables keys and sample values can be documented and checked in along with the source code. Add actual key names used inside but either leave their values blank or use phony values those keys. Do not place actual key values in this file. Those should be kept outside of source control.

See Environment Variables in the Gatsby docs for more information.

License

Copyright © 2020 Josh Habdas jhabdas@protonmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

This work incorporates fonts covered under copyright by Adobe and Sebastian Kosch. See the fonts directory for copyright and permissions notices.