39 |
40 | {# include header #}
41 | {% include "components/header.njk" %}
42 |
43 | {# include content #}
44 | {{ content | safe }}
45 |
46 | {# include footer #}
47 | {% include "components/footer.njk" %}
48 |
49 |
50 |
51 | {# include mobile nav #}
52 | {% include "components/mobile-nav.njk" %}
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/site/includes/layouts/blog.njk:
--------------------------------------------------------------------------------
1 | ---
2 | layout: base
3 | pagination:
4 | data: collections.blog
5 | size: 3
6 | alias: blogs
7 | ---
8 |
9 |
6 |
7 |
18 |
19 |
20 |
21 | {{ content | safe }}
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/site/includes/layouts/page.njk:
--------------------------------------------------------------------------------
1 | ---
2 | layout: base
3 | ---
4 |
5 |
6 |
7 |
8 |
9 |
20 |
21 |
22 |
23 | {{ content | safe }}
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/site/includes/layouts/post.njk:
--------------------------------------------------------------------------------
1 | ---
2 | layout: base
3 | ---
4 |
5 |
6 |
7 |
8 |
9 |
51 |
52 | {# featured post image #}
53 | {% if post_image %}
54 |
55 |
56 |
57 |
58 |
59 | {% if image_alt %}
60 | {{ image_alt }}
61 | {% endif %}
62 |
63 |
64 |
65 | {% endif %}
66 |
67 |
68 |
69 | {{ content | safe }}
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 | {# schema #}
83 |
107 |
108 |
109 |
110 |
--------------------------------------------------------------------------------
/site/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: home
3 | meta_title: Home
4 | meta_description: Skeleventy gives you a rock solid foundation to build fast and accessible static websites.
5 | title: An Eleventy starter skeleton
6 | sub_heading: Skeleventy gives you a rock solid foundation to build fast and accessible static websites.
7 | eleventyNavigation:
8 | key: Home
9 | order: 1
10 | ---
11 |
12 | ## Features
13 |
14 | - Clean, understated design - a good starting point for a portfolio or blog
15 | - A minimal build pipeline with [Laravel Mix](https://laravel-mix.com/docs/5.0/basic-example)
16 | - [Gorko](https://github.com/hankchizljaw/gorko), a smart little Sass-powered utility class generator
17 | - [Purgecss](https://purgecss.com/) to remove unused CSS
18 | - HTML minifier
19 | - Supports ES2017 JavaScript, with Babel compilation
20 | - SEO friendly page meta, including Open Graph and Twitter
21 | - Image lazy loading
22 | - Responsive navigation
23 | - XML Sitemap
24 |
25 | ## Getting started
26 |
27 | ### Prerequisites
28 | Node `v10+`
29 |
30 | ### Installation
31 |
32 | 1. Clone the repo `git clone https://github.com/josephdyer/skeleventy.git`
33 | 2. `cd` into the project folder and run `npm install`
34 | 3. Start the local development server by running `npm run dev` **Tip:** _Eleventy has live reload baked in!_
35 |
36 | ## Ready to deploy?
37 |
38 | The ```npm run production``` command will remove any unused CSS with Purgecss and minify the CSS and JS files.
39 |
40 | I highly recommend using [Netlify](https://www.netlify.com) to host your site on, so I've included a ```netlify.toml``` configuration file for your convenience.
41 |
42 |
--------------------------------------------------------------------------------
/site/robots.njk:
--------------------------------------------------------------------------------
1 | ---
2 | permalink: robots.txt
3 | eleventyExcludeFromCollections: true
4 | hide_from_sitemap: true
5 | ---
6 |
7 | User-agent: *
8 | Disallow:
9 |
10 | Sitemap: {{ site.url }}/sitemap.xml
11 |
--------------------------------------------------------------------------------
/site/sitemap.njk:
--------------------------------------------------------------------------------
1 | ---
2 | permalink: sitemap.xml
3 | hide_from_sitemap: true
4 | eleventyExcludeFromCollections: true
5 | ---
6 |
7 |