diff --git a/archetypes/articles.md b/archetypes/articles.md new file mode 100644 index 0000000..57e4385 --- /dev/null +++ b/archetypes/articles.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +type: "articles" +draft: true +--- diff --git a/archetypes/notes.md b/archetypes/notes.md new file mode 100644 index 0000000..3ce76d4 --- /dev/null +++ b/archetypes/notes.md @@ -0,0 +1,5 @@ +--- +title: "" +date: {{ .Date }} +type: "notes" +--- diff --git a/archetypes/photos.md b/archetypes/photos.md new file mode 100644 index 0000000..992baca --- /dev/null +++ b/archetypes/photos.md @@ -0,0 +1,6 @@ +--- +title: "" +date: {{ .Date }} +type: "photos" +image: "" # Add the path to your image here +--- diff --git a/exampleSite/TODO b/exampleSite/TODO new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 152fe70..3ab96cd 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,20 +1,14 @@ - - - {{ .Title }} - + {{ partial "head.html" . }} + {{ partial "meta.html" . }} - -
-

{{ .Site.Title }}

-
+ + {{ partial "header.html" . }}
{{ block "main" . }}{{ end }}
- + {{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 17c8770..dcbb321 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,12 +1,13 @@ {{ define "main" }} -
-

Posts

+
+

{{ .Title }}

-{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3bbd623..c89981c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,9 @@ {{ define "main" }} -
-

{{ .Title }}

-
{{ .Content }}
+
+

{{ .Title }}

+ +
+ {{ .Content }} +
{{ end }} diff --git a/layouts/articles/list.html b/layouts/articles/list.html new file mode 100644 index 0000000..9eaa569 --- /dev/null +++ b/layouts/articles/list.html @@ -0,0 +1,13 @@ +{{ define "main" }} +
+

Articles

+
    + {{ range .Pages }} +
  • + {{ .Title }} + +
  • + {{ end }} +
+
+{{ end }} diff --git a/layouts/articles/single.html b/layouts/articles/single.html new file mode 100644 index 0000000..c89981c --- /dev/null +++ b/layouts/articles/single.html @@ -0,0 +1,9 @@ +{{ define "main" }} +
+

{{ .Title }}

+ +
+ {{ .Content }} +
+
+{{ end }} diff --git a/layouts/notes/list.html b/layouts/notes/list.html new file mode 100644 index 0000000..19ccb33 --- /dev/null +++ b/layouts/notes/list.html @@ -0,0 +1,13 @@ +{{ define "main" }} +
+

Notes

+
    + {{ range .Pages }} +
  • + +
    {{ .Content }}
    +
  • + {{ end }} +
+
+{{ end }} diff --git a/layouts/notes/single.html b/layouts/notes/single.html new file mode 100644 index 0000000..ac6320c --- /dev/null +++ b/layouts/notes/single.html @@ -0,0 +1,8 @@ +{{ define "main" }} +
+ +
+ {{ .Content }} +
+
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..85321c6 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,7 @@ +
+

+ © {{ now.Year }} + {{ .Site.Params.author.name }} +

+

Powered by Hugo and the IndieWeb.

+
diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..9061f38 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,5 @@ + + +{{ .Title }} + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..bfbe049 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,8 @@ +
+ +
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..c46c93b --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,6 @@ + + + + + + diff --git a/layouts/photos/list.html b/layouts/photos/list.html new file mode 100644 index 0000000..e1ab45e --- /dev/null +++ b/layouts/photos/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} +
+

Photos

+
+ {{ range .Pages }} +
+ {{ .Title }} +
{{ .Title }}
+ +
+ {{ end }} +
+
+{{ end }} diff --git a/layouts/photos/single.html b/layouts/photos/single.html new file mode 100644 index 0000000..3114179 --- /dev/null +++ b/layouts/photos/single.html @@ -0,0 +1,10 @@ +{{ define "main" }} +
+

{{ .Title }}

+ + {{ .Title }} +
+ {{ .Content }} +
+
+{{ end }}