From 1426ca4851ec67c3828a9da0ba020b33b308f8b4 Mon Sep 17 00:00:00 2001 From: Darshan Baral Date: Sat, 2 Mar 2019 20:03:14 -0800 Subject: Add files via upload --- LICENSE | 20 ++++++++++++++ archetypes/default.md | 2 ++ exampleSite/archetypes/default.md | 6 +++++ layouts/404.html | 8 ++++++ layouts/_default/baseof.html | 11 ++++++++ layouts/_default/list.html | 16 +++++++++++ layouts/_default/section.html | 28 +++++++++++++++++++ layouts/_default/single.html | 28 +++++++++++++++++++ layouts/_default/terms.html | 19 +++++++++++++ layouts/index.html | 6 +++++ layouts/partials/footer.html | 7 +++++ layouts/partials/head.html | 48 +++++++++++++++++++++++++++++++++ layouts/partials/intro.html | 33 +++++++++++++++++++++++ layouts/partials/navbar.html | 7 +++++ static/images/main.jpeg | Bin 0 -> 159283 bytes static/images/post1/post1_skyline.jpeg | Bin 0 -> 72931 bytes theme.toml | 15 +++++++++++ 17 files changed, 254 insertions(+) create mode 100644 LICENSE create mode 100644 archetypes/default.md create mode 100644 exampleSite/archetypes/default.md create mode 100644 layouts/404.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/section.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/_default/terms.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/intro.html create mode 100644 layouts/partials/navbar.html create mode 100644 static/images/main.jpeg create mode 100644 static/images/post1/post1_skyline.jpeg create mode 100644 theme.toml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e76ff08 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2019 Darshan Baral + +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/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c21f22f --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/exampleSite/archetypes/default.md b/exampleSite/archetypes/default.md new file mode 100644 index 0000000..22a7858 --- /dev/null +++ b/exampleSite/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..6cf7047 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,8 @@ +{{ define "main" }} +
+
+ Page not found. +
> +
+{{ partial "footer.html" . }} +{{ 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..a2c7c30 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + +{{ partial "head.html" . }} + + + {{ partial "navbar.html" . }} + {{ block "main" . }} + {{ end }} + + + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..6fc8cdf --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,16 @@ +{{ define "main" }} +
+

{{ .Title }}

+ + {{ range .Pages }} + + + + + {{ end }} +
{{ .Date.Format "2006-Jan-02" }} + {{.Title}}: {{ .Description }} +
+
+{{ partial "footer.html" . }} +{{ end }} \ No newline at end of file diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..31d49a0 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,28 @@ +{{ define "main" }} +
+
+ {{ $sectionName := .Title | lower }} + {{ range $key, $taxonomy := .Site.Taxonomies.categories.ByCount }} +
+

+ + {{ .Name }} + +

+
+ {{ range where $taxonomy.Pages.ByDate "Section" $sectionName }} +

+ + {{ .Title }} + +

+

{{ .Description }}

+ {{ end }} +
+
+ {{ end }} +
+
+ +{{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..c614728 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,28 @@ +{{ define "main" }} +
+

+ {{ .Title }} +

+ +
+
+ {{ .Content }} +
+
+
+{{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..37830a2 --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+

{{ .Title }}

+
+ {{ $data := .Data }} + {{ range $key, $value := .Data.Terms }} +
+

+ + {{ $key }} + +

+

{{ len $value }} posts.

+
+ {{ end }} +
+
+{{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..6840b00 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,6 @@ +{{ define "main" }} +
+ {{ partial "intro.html" . }} +
+{{ partial "footer.html" . }} +{{ 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..f3aa709 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,7 @@ +
+
+

+ {{ .Site.Params.footer.message | safeHTML }} | Mero theme by Darshan +

+
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..79f1607 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,48 @@ + + + {{ .Site.Title }} + + + + + + + + + + + + + + diff --git a/layouts/partials/intro.html b/layouts/partials/intro.html new file mode 100644 index 0000000..c7ad259 --- /dev/null +++ b/layouts/partials/intro.html @@ -0,0 +1,33 @@ +
+
+ +
+ {{ range.Site.Params.social.list }} + + + + + + {{ end }} +
+
+ +
+

I am {{ .Site.Params.author }}.

+ {{ .Site.Params.introduction.text | markdownify }} +
+

+ Recent Posts | + See All +

+ {{ range where .Pages "Section" "posts" | first 4}} + + {{ .Title }} + +

{{ .Description }}

+ {{ end }} +
+
+
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html new file mode 100644 index 0000000..27d3c83 --- /dev/null +++ b/layouts/partials/navbar.html @@ -0,0 +1,7 @@ +
+ {{ range.Site.Menus.main }} + {{ .Name }} + + {{ end }} +
diff --git a/static/images/main.jpeg b/static/images/main.jpeg new file mode 100644 index 0000000..204b1de Binary files /dev/null and b/static/images/main.jpeg differ diff --git a/static/images/post1/post1_skyline.jpeg b/static/images/post1/post1_skyline.jpeg new file mode 100644 index 0000000..767b6fe Binary files /dev/null and b/static/images/post1/post1_skyline.jpeg differ diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..45bb143 --- /dev/null +++ b/theme.toml @@ -0,0 +1,15 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Sanstha" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "Theme for personal blogs" +homepage = "http://example.org/" +tags = ["Personal", "Blog", "Dark"] +features = ["Responsive"] +min_version = "0.41" + +[author] + name = "Darshan Baral" + homepage = "https://www.darshanbaral.com/" \ No newline at end of file -- cgit v1.2.3