diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..fe81001 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,8 @@ +{{ define "main" }} +
+

Oops!

+

We couldn't find the page you're looking for.

+
+ Take me back! +
+{{ end }} \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..f8995e4 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,12 @@ +{{ define "main" }} +

{{ .Title }}

+{{ range .Pages.ByPublishDate.Reverse }} +

+

{{ .Title }}

+ {{ partial "metadata.html" . }} + +

{{ .Summary }}

+
+

+{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..1c1d830 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,6 @@ +{{ define "main" }} +

{{ .Title }}

+{{ partial "metadata.html" . }} +

+{{ .Content }} +{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..0aaae5d --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,5 @@ +{{ define "main" }} +
+

{{ .Site.Title }}

+
+{{ end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..0376cd8 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1 @@ +

Copyright (c) {{ now.Format "2006"}} John Doe

\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..f1d9bc1 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,8 @@ + + + + + {{ $title := print .Site.Title " | " .Title }} + {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + {{ $title }} + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..98824ea --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,10 @@ +
+ +
\ No newline at end of file diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..dfdb77e --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,9 @@ +{{ $dateTime := .PublishDate.Format "2006-01-02" }} +{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }} + +{{ with .Params.tags }} +{{ range . }} +{{ $href := print (absURL "tags/") (urlize .) }} +{{ . }} +{{ end }} +{{ end }} \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..22b1503 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,26 @@ +body { + +} + +main { + +} + +img { + +} + +header h1 { + text-align: center; +} + +footer { + text-align: center; + clear: both; +} + +/* For meta.html */ +.meta { + text-align: center; + clear: both; +} \ No newline at end of file diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..c812a4d --- /dev/null +++ b/theme.toml @@ -0,0 +1,9 @@ +name = "Defiance" +license = "MIT" +licenselink = "https://github.com/insurgentuo/defiance/blob/no-masters/LICENSE" +description = "Hugo theme for The Student Insurgent" +homepage = "https://studentinsurgent.org" +languageCode = 'en-us' +tags = [] +features = [] +min_version = "0.41.0" \ No newline at end of file