Skip to content

pedrotypes/pedrogilcarvalho.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal website

Hello, future self.

I'm documenting how to update and deploy this website in case you haven't done it in a while and forgot how to do it.

Best,

-- Past self

Eleventy static-site generator

I'm using eleventy to generate a static site from markdown files. It's installed locally:

npm i --save-dev @11ty/eleventy

The eleventy command should always be invoked with npx like so:

npx @11ty/eleventy <command>

Content sources and layouts

Raw content sources live in markdown files under the ./content directory.

Layouts go in ./content/_includes and are written in nunjucks.

Building

To build the site, navigate to the root directory and use eleventy:

npx @11ty/eleventy --input=./content

Output will go in the ./_site directory.

You can preview locally with the --serve option:

npx @11ty/eleventy --input=./content --serve

As long as a layout with a <body> tag is used, there's live preview.

Hosting

I'm hosting this on netlify.

About

Just a simple personal web page like it's 1999

Resources

Stars

Watchers

Forks