Skip to content
Permalink
Browse files

Add Zola Example (#502)

* add zola example

* add dev script
  • Loading branch information...
msweeneydev authored and timothyis committed Sep 30, 2019
1 parent 6a36e2b commit e27416679120b68696f0724d99956f6f067c0dbe
Showing with 92 additions and 0 deletions.
  1. +6 −0 manifest.json
  2. +23 −0 vuepress/.gitignore
  3. +1 −0 vuepress/.nowignore
  4. +5 −0 zola/.gitignore
  5. +2 −0 zola/.nowignore
  6. +27 −0 zola/README.md
  7. +15 −0 zola/config.toml
  8. +13 −0 zola/package.json
@@ -190,5 +190,11 @@
"path": "/eleventy",
"demo": "https://eleventy.now-examples.now.sh",
"description": "An Eleventy site, created with npm init."
},
{
"example": "Zola",
"path": "/zola",
"demo": "https://zola.now-examples.now.sh",
"description": "A Zola site, created with the Zola CLI."
}
]
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local
.env
.env.build

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
@@ -0,0 +1 @@
README.md
@@ -0,0 +1,5 @@
.DS_Store
node_modules
.env
.env.build
public
@@ -0,0 +1,2 @@
README.md
public
@@ -0,0 +1,27 @@
# Zola Example

This directory is a brief example of a [Zola](https://www.getzola.org/) site that can be deployed with ZEIT Now and zero configuration.

## Deploy Your Own

Deploy your own Zola project with ZEIT Now.

[![Deploy with ZEIT Now](https://zeit.co/button)](https://zeit.co/new/project?template=https://github.com/zeit/now-examples/tree/master/zola)

_Live Example: https://zola.now-examples.now.sh_

### How We Created This Example

To get started with Zola for deployment with ZEIT Now, you can use the [Zola CLI](https://www.getzola.org/documentation/getting-started/cli-usage/) to initialize the project:

```shell
$ zola init project-name
```

### Deploying From Your Terminal

You can deploy your new Zola project with a single command from your terminal using [Now CLI](/download):

```shell
$ now
```
@@ -0,0 +1,15 @@
# The URL the site will be built for
base_url = "https://zola.now-examples.now.sh"

# Whether to automatically compile all Sass files in the sass directory
compile_sass = false

# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = false

# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false

[extra]
# Put all your custom variables here
@@ -0,0 +1,13 @@
{
"name": "my_site",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "zola build",
"dev": "zola serve --port $PORT"
},
"keywords": [],
"author": "",
"license": "ISC"
}

0 comments on commit e274166

Please sign in to comment.
You can’t perform that action at this time.