Add default site template with getting-started instructions.

This commit is contained in:
Nolan Darilek 2017-03-15 11:20:39 -05:00
parent 473cc84fe5
commit a349175359
8 changed files with 54 additions and 1 deletions

View File

@ -3,7 +3,7 @@ set -euo pipefail
if [ ! -e /var/git ]; then if [ ! -e /var/git ]; then
cd /var cd /var
hugo new site git cp -R /opt/app/template git
cd git cd git
git init git init
git add * git add *

View File

@ -68,6 +68,7 @@ opt/app/.git/refs
opt/app/.git/refs/heads/master opt/app/.git/refs/heads/master
opt/app/.sandstorm/launcher.sh opt/app/.sandstorm/launcher.sh
opt/app/Caddyfile opt/app/Caddyfile
opt/app/README.md
opt/app/app.js opt/app/app.js
opt/app/commit-on-save opt/app/commit-on-save
opt/app/node_modules/accepts/index.js opt/app/node_modules/accepts/index.js
@ -370,6 +371,20 @@ opt/app/package.json
opt/app/post-receive opt/app/post-receive
opt/app/public/stylesheets/style.css opt/app/public/stylesheets/style.css
opt/app/routes.js opt/app/routes.js
opt/app/template
opt/app/template/archetypes
opt/app/template/config.toml
opt/app/template/content
opt/app/template/content/_index.md
opt/app/template/data
opt/app/template/layouts
opt/app/template/layouts/_default
opt/app/template/layouts/_default/single.html
opt/app/template/layouts/index.html
opt/app/template/layouts/partials
opt/app/template/layouts/partials/footer.html
opt/app/template/layouts/partials/header.html
opt/app/template/static
opt/app/views/error.jade opt/app/views/error.jade
opt/app/views/index.jade opt/app/views/index.jade
opt/app/views/layout.jade opt/app/views/layout.jade

3
template/config.toml Normal file
View File

@ -0,0 +1,3 @@
baseurl = "http://replace-this-with-your-hugo-site.com/"
languageCode = "en-us"
title = "My New Hugo Site"

View File

@ -0,0 +1,17 @@
+++
date = "2017-03-15T10:44:56-05:00"
title = "Home"
+++
Welcome to your new Sandstorm-hosted Hugo site! Here are a few pointers to help you get started:
* Check out the Git repository associated with this site. Find instructions for doing so on the grain's launch screen.
* Choose a theme to make your site look nice. [Hugo's theme showcase](https://themes.gohugo.io) is a good place to start.
* Add the theme to your Git repository as a [subtree](https://medium.com/@v/git-subtrees-a-tutorial-6ff568381844#.5xxwesuj8) at `themes/themename`.
* Add `theme = "themename"` to *Config.toml*.
* Push the repository, and your new site will be immediately published.
* Use the administrative interface, linked from the grain's launch screen, to make simple changes without accessing the repository. Note that changes go live as soon as they are made.
* Read more about Hugo in its extensive [documentation](https://gohugo.io/overview/introduction/).
Enjoy!

View File

@ -0,0 +1,3 @@
{{partial "header.html" . }}
{{ .Content }}
{{ partial "footer.html" . }}

View File

@ -0,0 +1,3 @@
{{partial "header.html" . }}
{{ .Content }}
{{ partial "footer.html" . }}

View File

@ -0,0 +1,3 @@
</main>
</body>
</html>

View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ .Title }} - {{ .Site.Title }}</title>
</head>
<body>
<main>
<h1>{{ .Title }}</h1>