diff --git a/src/bg.jpg b/old/bg.jpg similarity index 100% rename from src/bg.jpg rename to old/bg.jpg diff --git a/src/index.html b/old/index.html similarity index 100% rename from src/index.html rename to old/index.html diff --git a/src/style.css b/old/style.css similarity index 100% rename from src/style.css rename to old/style.css diff --git a/src/archetypes/default.md b/src/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/src/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/src/config.toml b/src/config.toml new file mode 100644 index 0000000..2ab522d --- /dev/null +++ b/src/config.toml @@ -0,0 +1,3 @@ +baseURL = "https://vikunja.io/" +languageCode = "en-us" +title = "Vikunja" diff --git a/src/themes/vikunja-web/archetypes/default.md b/src/themes/vikunja-web/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/src/themes/vikunja-web/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/src/themes/vikunja-web/layouts/404.html b/src/themes/vikunja-web/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/src/themes/vikunja-web/layouts/_default/baseof.html b/src/themes/vikunja-web/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/src/themes/vikunja-web/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/src/themes/vikunja-web/layouts/_default/list.html b/src/themes/vikunja-web/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 diff --git a/src/themes/vikunja-web/layouts/_default/single.html b/src/themes/vikunja-web/layouts/_default/single.html new file mode 100644 index 0000000..215de9a --- /dev/null +++ b/src/themes/vikunja-web/layouts/_default/single.html @@ -0,0 +1,12 @@ +{{ partial "header.html" . }} +{{ partial "navbar.html" . }} + +
+
+ {{ .Content }} + + {{ partial "disqus.html" . }} +
+
+ +{{ partial "footer.html" . }} diff --git a/src/themes/vikunja-web/layouts/index.html b/src/themes/vikunja-web/layouts/index.html new file mode 100644 index 0000000..e69de29 diff --git a/src/themes/vikunja-web/layouts/partials/disqus.html b/src/themes/vikunja-web/layouts/partials/disqus.html new file mode 100644 index 0000000..05ff76a --- /dev/null +++ b/src/themes/vikunja-web/layouts/partials/disqus.html @@ -0,0 +1,24 @@ +{{ if .Site.DisqusShortname }} +
+ + + + +{{end}} diff --git a/src/themes/vikunja-web/layouts/partials/footer.html b/src/themes/vikunja-web/layouts/partials/footer.html new file mode 100644 index 0000000..27ea690 --- /dev/null +++ b/src/themes/vikunja-web/layouts/partials/footer.html @@ -0,0 +1,49 @@ + + + + + + diff --git a/src/themes/vikunja-web/layouts/partials/head.html b/src/themes/vikunja-web/layouts/partials/head.html new file mode 100644 index 0000000..e69de29 diff --git a/src/themes/vikunja-web/layouts/partials/header.html b/src/themes/vikunja-web/layouts/partials/header.html new file mode 100644 index 0000000..cdbb11a --- /dev/null +++ b/src/themes/vikunja-web/layouts/partials/header.html @@ -0,0 +1,35 @@ + + + + + + + + + {{ if .IsPage }} + + {{ end }} + + + + {{ .Hugo.Generator }} + + {{ if and (not .IsHome) .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }} + + {{ with .Params.goimport }}{{ end }} + {{ with .Params.gosource }}{{ end }} + + {{ with .RSSLink }} + + + {{ end }} + + + + + + + + + + diff --git a/src/themes/vikunja-web/layouts/partials/menu.html b/src/themes/vikunja-web/layouts/partials/menu.html new file mode 100644 index 0000000..8598f4c --- /dev/null +++ b/src/themes/vikunja-web/layouts/partials/menu.html @@ -0,0 +1,2 @@ +{{ partial "pages.html" . }} +{{ partial "toc.html" . }} diff --git a/src/themes/vikunja-web/layouts/partials/navbar.html b/src/themes/vikunja-web/layouts/partials/navbar.html new file mode 100644 index 0000000..e020046 --- /dev/null +++ b/src/themes/vikunja-web/layouts/partials/navbar.html @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/src/themes/vikunja-web/layouts/partials/pages.html b/src/themes/vikunja-web/layouts/partials/pages.html new file mode 100644 index 0000000..ce399e6 --- /dev/null +++ b/src/themes/vikunja-web/layouts/partials/pages.html @@ -0,0 +1,28 @@ + diff --git a/src/themes/vikunja-web/layouts/partials/toc.html b/src/themes/vikunja-web/layouts/partials/toc.html new file mode 100644 index 0000000..8fba373 --- /dev/null +++ b/src/themes/vikunja-web/layouts/partials/toc.html @@ -0,0 +1,5 @@ +{{ if .Params.toc }} + +{{ end }} diff --git a/src/themes/vikunja-web/layouts/partials/toplinks.html b/src/themes/vikunja-web/layouts/partials/toplinks.html new file mode 100644 index 0000000..c4875db --- /dev/null +++ b/src/themes/vikunja-web/layouts/partials/toplinks.html @@ -0,0 +1,7 @@ + +{{ $currentNode := . }}{{ range .Site.Menus.page }} + +   + {{ .Name }} + +{{ end }} diff --git a/src/themes/vikunja-web/theme.toml b/src/themes/vikunja-web/theme.toml new file mode 100644 index 0000000..c321e4a --- /dev/null +++ b/src/themes/vikunja-web/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Vikunja Web" +license = "GPLv3" +licenselink = "http://code.vikunja.io/website/src/branch/master/LICENSE" +description = "" +homepage = "http://vikunja.io" +tags = [] +features = [] +min_version = "0.41" + +[author] + name = "kolaente" + homepage = "http://kolaente.de" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""