From 5c43711bf621781673a7203acdcd2f9283c5e633 Mon Sep 17 00:00:00 2001 From: vachan-maker Date: Sat, 4 May 2024 19:33:06 +0530 Subject: [PATCH] added schema --- config.toml | 1 + layouts/_default/single.html | 34 ++++++++++++------------ layouts/partials/head.html | 2 +- layouts/partials/header.html | 2 +- layouts/partials/schema.html | 51 ++++++++++++++++++++++++++++++++++++ 5 files changed, 71 insertions(+), 19 deletions(-) create mode 100644 layouts/partials/schema.html diff --git a/config.toml b/config.toml index 02d44b4..673fbcd 100644 --- a/config.toml +++ b/config.toml @@ -13,6 +13,7 @@ baseURL = 'https://vachan.me' [params] user = "vachan" images = ['/images/site-feature-image.png'] + copyright = "All work licensed under CC BY-SA 4.0 unless otherwise stated." description = "Hey there! I am Vachan and I love thinkering with computers. I am currently pursuing Computer Science and Engineering. You can read my posts, know more about me and get in touch with me" [params.author] name = "Vachan S Panicker" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b76ed7e..9a3d370 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,21 +1,21 @@ {{ define "title"}} -{{ .Title }} | {{ .Site.Params.author.name }} + {{ .Title }} | {{ .Site.Params.author.name }} {{ end }} {{ define "main" }} -{{ $date := .Date.Format "02.01.2006" }} -{{ $lastmod := .Lastmod.Format "02.01.2006" }} -
-

{{ .Title }}

- {{ if .Description }} -

{{ .Description }}

- {{ end }} - -
- {{ .Content }} - {{ if ne $lastmod $date }} - Last Updated On: {{ .Lastmod.Format "Mon Jan 2, 2006" }} - {{ end }} -
-

Comment via Email

-

RSS Feed

+ {{ $date := .Date.Format "02.01.2006" }} + {{ $lastmod := .Lastmod.Format "02.01.2006" }} +
+

{{ .Title }}

+ {{ if .Description }} +

{{ .Description }}

+ {{ end }} + +
+ {{ .Content }} + {{ if ne $lastmod $date }} + Last Updated On: {{ .Lastmod.Format "Mon Jan 2, 2006" }} + {{ end }} +
+

Comment via Email

+

RSS Feed

{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 18c4b9b..2929929 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -26,4 +26,4 @@ {{ $style := resources.Get "sass/main.scss" | toCSS $options | minify | fingerprint }} - +{{ partial "schema.html" . }} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3b983ed..e2c410b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,7 +12,7 @@

വചൻ

  • 🥳
  • + });">🥳 diff --git a/layouts/partials/schema.html b/layouts/partials/schema.html new file mode 100644 index 0000000..9227103 --- /dev/null +++ b/layouts/partials/schema.html @@ -0,0 +1,51 @@ +{{ if .IsHome -}} + +{{ else if .IsPage }} +{{ $author := or (.Params.author) (.Site.Author.name) }} +{{ $org_name := .Site.Title }} + +{{ end }} \ No newline at end of file