From 99093749bc1f5dc2c6194d051ed1ff4d04fd8a25 Mon Sep 17 00:00:00 2001 From: Ben Ramey Date: Sat, 1 Apr 2023 17:28:12 -0500 Subject: [PATCH] Much progress on templates --- .gitignore | 1 + .../BenRameyTheme/Views/Blog-ListPart.liquid | 13 +++ .../Views/BlogPost-Category.liquid | 9 ++ ...ost-Tags-TaxonomyField-Tags.Display.liquid | 8 ++ .../BenRameyTheme/Views/Content-Blog.liquid | 3 + .../Views/Content-BlogPost.liquid | 20 +++++ .../BenRameyTheme/Views/DateTime.liquid | 1 + src/Themes/BenRameyTheme/Views/Layout.liquid | 88 ++++++++++--------- 8 files changed, 102 insertions(+), 41 deletions(-) create mode 100644 src/Themes/BenRameyTheme/Views/Blog-ListPart.liquid create mode 100644 src/Themes/BenRameyTheme/Views/BlogPost-Category.liquid create mode 100644 src/Themes/BenRameyTheme/Views/BlogPost-Tags-TaxonomyField-Tags.Display.liquid create mode 100644 src/Themes/BenRameyTheme/Views/Content-Blog.liquid create mode 100644 src/Themes/BenRameyTheme/Views/Content-BlogPost.liquid create mode 100644 src/Themes/BenRameyTheme/Views/DateTime.liquid diff --git a/.gitignore b/.gitignore index 70d16e6..b06d0f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ App_Data +is-cache ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. diff --git a/src/Themes/BenRameyTheme/Views/Blog-ListPart.liquid b/src/Themes/BenRameyTheme/Views/Blog-ListPart.liquid new file mode 100644 index 0000000..706852c --- /dev/null +++ b/src/Themes/BenRameyTheme/Views/Blog-ListPart.liquid @@ -0,0 +1,13 @@ +{% for item in Model.ContentItems %} +{{ item | shape_build_display: "Summary" | shape_render }} +{% endfor %} + +{% assign previousText = "← Newer Posts" | t %} +{% assign nextText = "Older Posts →" | t %} +{% assign previousClass = "previous" | t %} +{% assign nextClass = "next" | t %} + +{% shape_pager Model.Pager previous_text: previousText, next_text: nextText +, previous_class: previousClass, next_class: nextClass %} + +{{ Model.Pager | shape_render }} \ No newline at end of file diff --git a/src/Themes/BenRameyTheme/Views/BlogPost-Category.liquid b/src/Themes/BenRameyTheme/Views/BlogPost-Category.liquid new file mode 100644 index 0000000..8652dc4 --- /dev/null +++ b/src/Themes/BenRameyTheme/Views/BlogPost-Category.liquid @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/src/Themes/BenRameyTheme/Views/BlogPost-Tags-TaxonomyField-Tags.Display.liquid b/src/Themes/BenRameyTheme/Views/BlogPost-Tags-TaxonomyField-Tags.Display.liquid new file mode 100644 index 0000000..80c80e1 --- /dev/null +++ b/src/Themes/BenRameyTheme/Views/BlogPost-Tags-TaxonomyField-Tags.Display.liquid @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/src/Themes/BenRameyTheme/Views/Content-Blog.liquid b/src/Themes/BenRameyTheme/Views/Content-Blog.liquid new file mode 100644 index 0000000..dcb0b07 --- /dev/null +++ b/src/Themes/BenRameyTheme/Views/Content-Blog.liquid @@ -0,0 +1,3 @@ +
+ {{ Model.Content | shape_render }} +
\ No newline at end of file diff --git a/src/Themes/BenRameyTheme/Views/Content-BlogPost.liquid b/src/Themes/BenRameyTheme/Views/Content-BlogPost.liquid new file mode 100644 index 0000000..b2db148 --- /dev/null +++ b/src/Themes/BenRameyTheme/Views/Content-BlogPost.liquid @@ -0,0 +1,20 @@ +
+

{{ Model.ContentItem.DisplayText }}

+ + + +
+ {{ Model.Content.MarkdownBodyPart | shape_render }} +
+
+
+ +

Comments

+
+
\ No newline at end of file diff --git a/src/Themes/BenRameyTheme/Views/DateTime.liquid b/src/Themes/BenRameyTheme/Views/DateTime.liquid new file mode 100644 index 0000000..7f0df73 --- /dev/null +++ b/src/Themes/BenRameyTheme/Views/DateTime.liquid @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Themes/BenRameyTheme/Views/Layout.liquid b/src/Themes/BenRameyTheme/Views/Layout.liquid index 94c88af..6e6d3be 100644 --- a/src/Themes/BenRameyTheme/Views/Layout.liquid +++ b/src/Themes/BenRameyTheme/Views/Layout.liquid @@ -1,53 +1,59 @@ - - - - {% page_title Site.SiteName, position: "before", separator: " - " %} + + + - {% resources type: "Meta" %} + {% page_title Site.SiteName, position: "before", separator: " - " %} - {% link type: "image/x-icon", rel: "shortcut icon", href: "~/BenRameyTheme/assets/favicon.ico" %} + {% resources type: "Meta" %} - {% style name: "benrameytheme" %} + {% link type: "image/x-icon", rel: "shortcut icon", href: "~/BenRameyTheme/assets/favicon.ico" %} - {% resources type: "HeadLink" %} - {% resources type: "Stylesheet" %} - {% resources type: "HeadScript" %} - - -
-
-
- - Gravatar - {{ Site.SiteName }} - -
- {{ Site.Tagline }} -
-
+ {% style name: "benrameytheme" %} + + {% resources type: "HeadLink" %} + {% resources type: "Stylesheet" %} + {% resources type: "HeadScript" %} + + + +
+
+
+ + Gravatar + {{ Site.SiteName }} + +
+ {{ Site.Tagline }}
-
+
+ +
-
-
- {% render_body %} -
-
+
+
+ {% render_body %} +
+
- + + + {% resources type: "FootScript" %} + + - {% resources type: "FootScript" %} - \ No newline at end of file