Gatsby page template for creating static & simple landing page.
- statically rendered page
- lightweight
- SEO-ready (Twitter and OpenGraph tags included)
Text data displayed on page and in meta tags in can be found and changed in config/site-metadata.js
.
Property | Description |
---|---|
pageTitle |
Page title displayed in browser tab. |
name |
Name used in About Me description and footer with copyrights |
pageSubtitle |
Text displayed under Name in About Me section |
seoTitle |
Page title used in social media where page is shared (e.g. on Twitter or Facebook) |
seoDescription |
Page description used in social media where page is shared (e.g. on Twitter or Facebook) |
siteUrl |
Page URL used in social media where page is shared (e.g. on Twitter or Facebook) |
backgroundColor |
Background color of page |
twitterHandle |
Your Twitter account; used in Twitter where page is shared |
personDescription |
Description displayed in About Me section. One line per each object with text property. |
socialMedia |
Array of objects with your social media accounts.url : URL of your social media accountdisplayName : display name of given accounticonName : name of icon for given account (find name icon here: Fork Awesome) |
projects |
Array of objects with your projects.url : URL of your projectdisplayName : display name of given projectlanguageIconName : name of icon for project's main language (find name icon here: Fork Awesome)sourceIconName : name of icon for given project's repository page, e.g. GitHub, GitLab, BitBucket (find name icon here: Fork Awesome) |
- Image used in About Me section can be replaced in
src/images/avatar.png
. Suggested image size is 240x240 px. If you want to rename file, please update filename insrc/pages/index.js
inquery
function:
imageSharp(fixed: {originalName: {eq: "<new filename>.[ext]"}}) {
- Image used for displaying in social media can be replaced in
src/images/social-media-cover.png
. Suggested image size is 1200x630 px. If you want to rename file, please update filename insrc/components/seo.js
inuseStaticQuery
function:
imageSharp(fixed: {originalName: {eq: "<new filename>.[ext]"}}) {
- Favicon can be replaced in
src/images/favicon.png
. If you want to rename file, please update filename insrc/components/seo.js
inuseStaticQuery
function:
favicon: imageSharp(fixed: {originalName: {eq: "<new filename>.[ext]"}}) {
- Install Gatsby CLI:
npm i -g gatsby-cli
- Initialize project:
gatsby new project-name https://github.com/wiewiordev/gatsby-landing-page
- Run dev environment:
cd project-name && npm start
- Change data in
config/site-metadata.js
- Deploy it!
Photo used for OpenGraph tag by Christopher Gower on Unsplash