gatsby-theme-modern-portfolio
v1.1.6
Published
Gatbsy theme to create a simple portfolio site
Downloads
23
Maintainers
Readme
Gatsby Modern Portfolio Theme
One file developer portfolios.
That's correct. Create your portfolio from just one markdown file.
Features
- Write a simple portfolio site from just one markdown file
- change the site's ui with simple theming.
- (coming soon): Deploy to netlify in one click.
Out of Scope
- Ability to blog - hopefully this can be composed with another theme later.
Installation
- On a new repo install gatsby and this theme
yarn add gatsby gatsby-theme-modern-portfolio -D
- Create a
gatsby-config.js
file in the root - Set the
gatsby-theme-modern-portfolio
in the__experimentalThemes
option inside yourgatsby-config.js
module.exports = {
__experimentalThemes: [ {
resolve: "gatsby-theme-modern-portfolio" ,
options: {
siteTitle: `Your site title`,
siteDescription: `Here is a site title`,
}
},]
}
- Create directory
src/pages/markdown
mkdir -p src/pages/markdown
- Create
index.md
insrc/pages/markdown
and add the following to it
---
title: "John Doe"
subtitle: "My Website"
email: "[email protected]"
linkedin: "https://www.linkedin.com/in/john_doe"
textColor: 'black'
backgroundColor: '#e5f1f6'
fontUrl: '"https://fonts.googleapis.com/css?family=Overlock&display=swap"'
fontFamily: 'Overlock, cursive;'
---
## Experience
- Building websites
Add
.cache
andpublic
to the repo's.gitignore
fileRun with
yarn gatsby develop
(coming soon): Deploy to netlify to see it live!
Selecting Fonts
- Select your chosen font from Google Fonts.
- Copy and paste the font url to
index.md
- Copy and paste the fontFamily to index.md. *Make sure to remove the quotation marks so that
font-family: 'Overlock', cursive;
becomesfontFamily: 'Overlock, cursive
TODO:
- Easily deploy to netlify.
- ability to add a favicon
- integrate with netlify-cms (this can come a bit later because the "cms" is very easy with one file!)