diff --git a/.gitignore b/.gitignore index 527b1c7..aaf9a95 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ target/ \#*# .\#* *~ -bootstrap/serene \ No newline at end of file +bootstrap/serene +site/public/ \ No newline at end of file diff --git a/site/archetypes/default.md b/site/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/site/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/site/config.toml b/site/config.toml new file mode 100644 index 0000000..b3940b3 --- /dev/null +++ b/site/config.toml @@ -0,0 +1,7 @@ +theme = "anybodyhome" +baseURL = "https://serene-lang.org/" +languageCode = "en-us" +title = "Serene" + +[params] + subtitle = "A Simple programming language" diff --git a/site/content/posts/my-first-post.md b/site/content/posts/my-first-post.md new file mode 100644 index 0000000..8936aaf --- /dev/null +++ b/site/content/posts/my-first-post.md @@ -0,0 +1,7 @@ +--- +title: "Welcome to Serene's website" +date: 2021-01-01T22:08:28Z +draft: false +--- + +We’ll have posts available here about important news and features. diff --git a/site/scripts/deploy.sh b/site/scripts/deploy.sh new file mode 100755 index 0000000..41e2b7d --- /dev/null +++ b/site/scripts/deploy.sh @@ -0,0 +1,9 @@ +#!/bin/sh +USER=www +HOST=core.lxsameer.com +DIR=/home/www/public/serene/ +SITEDIR=$(cd "$(dirname "$0")/.." >/dev/null 2>&1 ; pwd -P) + +hugo && rsync -avz --delete ${SITEDIR}/public/ ${USER}@${HOST}:${DIR} + +exit 0 diff --git a/site/themes/anybodyhome/LICENSE.md b/site/themes/anybodyhome/LICENSE.md new file mode 100644 index 0000000..e1265aa --- /dev/null +++ b/site/themes/anybodyhome/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2016 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/site/themes/anybodyhome/README.md b/site/themes/anybodyhome/README.md new file mode 100644 index 0000000..719016c --- /dev/null +++ b/site/themes/anybodyhome/README.md @@ -0,0 +1,36 @@ +# Anybody Home? + +![anybodyhome](https://github.com/lasseborly/anybodyhome/blob/master/images/screenshot.png "Anybody Home?") + +A simple theme for simple people with simple needs. + +## Features +* __Blog only__ - Only a list of the 10 most recent posts and added pagination. There is no other pages than the main page and the post page. +* [__Highlight.js__](https://highlightjs.org/) - For all of you code needs. + +## Getting Started +From the root of you Hugo site clone the theme into `themes/anybodyhome` by running: + +`git clone https://github.com/lasseborly/anybodyhome.git themes/anybodyhome` + +## Usage +To use Anybody Home? you must first, from the root of your Hugo site, run either: + +`hugo -t anybodyhome` + +or set in you `config.toml`. + +`theme = "anybodyhome"` + +## Configuration +You can set the normal Hugo site variables in your `config.toml` but there is also some custom Anybody Home? variables you can set. This is an example of a full `config.toml`. + +```toml +theme = "anybodyhome" +baseurl = "https://hugosite.com" +languageCode = "en-us" +title = "Anybody Home?" + +[params] + subtitle = "A Simple Theme" +``` diff --git a/site/themes/anybodyhome/archetypes/default.md b/site/themes/anybodyhome/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/site/themes/anybodyhome/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/site/themes/anybodyhome/layouts/404.html b/site/themes/anybodyhome/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/site/themes/anybodyhome/layouts/_default/paginator.html b/site/themes/anybodyhome/layouts/_default/paginator.html new file mode 100644 index 0000000..b0483b7 --- /dev/null +++ b/site/themes/anybodyhome/layouts/_default/paginator.html @@ -0,0 +1,10 @@ +{{ if .Paginator.HasPrev }} + + Previous Page + +{{ end }} +{{ if .Paginator.HasNext }} + + Next Page + +{{ end }} diff --git a/site/themes/anybodyhome/layouts/_default/single.html b/site/themes/anybodyhome/layouts/_default/single.html new file mode 100644 index 0000000..af39af1 --- /dev/null +++ b/site/themes/anybodyhome/layouts/_default/single.html @@ -0,0 +1,15 @@ +{{ partial "head.html" . }} +{{ partial "header.html" . }} +{{ $baseurl := .Site.BaseURL }} +
{{ .Summary }}
+