GitXplorerGitXplorer
d

xity-starter

public
0 stars
14 forks
1 issues

Commits

List of commits on branch master.
Verified
eb795b0ecf383af02028f7871a7d34c19136c490

chore(deps): bump color-string from 1.5.4 to 1.5.5 (#43)

ddependabot[bot] committed 3 years ago
Verified
fa201f335601f467abd3ecae616c5b98f6341ec6

chore(deps-dev): bump postcss from 8.2.4 to 8.2.10 (#37)

ddependabot[bot] committed 3 years ago
Verified
1ebd66b9a43e11d4c6bbd335675b7773650d447f

Update simple-blog-post.md

eequinusocio committed 4 years ago
Verified
1beb3b7348947aacf14c068f3ed8c6fcc93e6ec2

Update index.md

eequinusocio committed 4 years ago
Verified
250c31c1a55d771f490c1ae9b02bdb7a74eebaf4

add missing dev deps (#42)

rrevelt committed 4 years ago
Verified
336c6143fe6f479eec479b3a8c941db3a24dc47d

chore(deps): bump glob-parent from 5.1.1 to 5.1.2 (#39)

ddependabot[bot] committed 4 years ago

README

The README file for this repository.

XITY Starter

A blog-ready 11ty starter based on PostCSS and Snowpack, with a RSS feed and Native Elements.

Key features

📰 Integrated RSS Feed.

💅 PostCSS with PostCSS Preset Env and cssnano to enhance and clean your css.

🏅 No CSS or JS frameworks to remove. Just add what you need.

📝 Basic blog structure.

📦 Basic building with Snowpack.

🎚 Configuration file to set meta data and global settings.

🎨 Code highlights which you can disable with a flag.

⚡️ Superpowered HTML elements with Native Elements.

⚠️ Custom 404 page layout

🤖 Custom blog posts parser to create <figure> and wrap iframes

⚙️ Service Worker generated by eleventy-plugin-pwa

Preconfigured tools


Prerequisites

Usage

You can download the scaffolding to create a new project structure with one command:

npx degit equinusocio/xity-starter#main

This command will download the project to your current working directory and remove the .github and .vscode folders. After the project structure has been downloaded, you should install the required dependencies:

yarn install

Running the local development mode

This command will run eleventy and the snowpack with auto reload.

yarn start

Building the production version

To generate your static site you can run the following command. It will build the project and run optimisations for a production release inside the /build folder.

yarn build

More commands

XITY provides also two more commands useful to update dependencies and the cssdb used by Browserslist and PostCSS:

# Update dependencies interactively
yarn update:deps

# Update the cssdb definitions. Run it every month.
yarn update:cssdb

# Run prettier against md, css, and js files
yarn lint

Configurations

You can easily configure your site by changing the settings inside the xity.config.js configuration file.

Here are the default settings you will get with this project structure:

{
  /**
   * Site data
   */
  name: 'XITY - Eleventy blog/site starter',
  shortDesc: "I'm Mattia Astorino, UX Engineer in Milan and member of Open Source Design.",
  url: 'https://xity-starter.netlify.app',
  lang: 'en',
  /**
   * Socials and monetisation
   */
  authorHandle: '@equinusocio',
  authorName: 'Mattia Astorino',
  paymentPointer: '$ilp.uphold.com/9ebKEYaNiGUf',
  /**
   * Content settings
   */
  syntaxTheme: 'prism-material-light.css',
  permalinkClass: ['permalink'],
  iframeClass: ['iframes-wrapper'],
  codeClass: ['code-wrapper'],
  figureClass: ['figure'],
  /**
   * Main navigation items.
   * Used by components/header.njk
   */
  navigation: [
    {
      text: 'Home',
      url: '/',
      external: false,
    },
    {
      text: 'Blog',
      url: '/blog/',
      external: false,
    },
    {
      text: 'Sample Page',
      url: '/sample-page/',
      external: false,
    },
    {
      text: 'GitHub',
      url: 'https://github.com/equinusocio/xity-starter',
      external: true,
    },
  ],
}