+
+
+ {{ .Content | markdownify }}
+
+
+
+{{- end -}}
diff --git a/themes/PaperMod/layouts/partials/index_profile.html b/themes/PaperMod/layouts/partials/index_profile.html
new file mode 100644
index 0000000..d9ddbda
--- /dev/null
+++ b/themes/PaperMod/layouts/partials/index_profile.html
@@ -0,0 +1,58 @@
+
+ {{- with site.Params.profileMode }}
+
+ {{- if .imageUrl -}}
+ {{- $img := "" }}
+ {{- if not (urls.Parse .imageUrl).IsAbs }}
+ {{- $img = resources.Get .imageUrl }}
+ {{- end }}
+ {{- if $img }}
+ {{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}}
+ {{- if hugo.IsExtended -}}
+ {{- $processableFormats = $processableFormats | append "webp" -}}
+ {{- end -}}
+ {{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }}
+ {{- if and (in $processableFormats $img.MediaType.SubType) (eq $prod true)}}
+ {{- if (not (and (not .imageHeight) (not .imageWidth))) }}
+ {{- $img = $img.Resize (printf "%dx%d" .imageWidth .imageHeight) }}
+ {{- else if .imageHeight }}
+ {{- $img = $img.Resize (printf "x%d" .imageHeight) }}
+ {{ else if .imageWidth }}
+ {{- $img = $img.Resize (printf "%dx" .imageWidth) }}
+ {{ else }}
+ {{- $img = $img.Resize "150x150" }}
+ {{- end }}
+ {{- end }}
+

+ {{- else }}
+

+ {{- end }}
+ {{- end }}
+
{{ .title | default site.Title | markdownify }}
+
{{ .subtitle | markdownify }}
+ {{- partial "social_icons.html" site.Params.socialIcons -}}
+
+ {{- with .buttons }}
+
+ {{- end }}
+
+ {{- end}}
+
diff --git a/themes/PaperMod/layouts/partials/post_canonical.html b/themes/PaperMod/layouts/partials/post_canonical.html
new file mode 100644
index 0000000..abfc1e3
--- /dev/null
+++ b/themes/PaperMod/layouts/partials/post_canonical.html
@@ -0,0 +1,9 @@
+{{ if and (.Params.canonicalURL) (.Params.ShowCanonicalLink ) -}}
+{{ $url := urls.Parse .Params.canonicalURL }}
+
+{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated (or .Params.editPost.URL site.Params.editPost.URL) }} | {{- end -}}
+
+ {{ if eq ($.Scratch.Get "md") false }}
+ {{ .Inner }}
+ {{ else }}
+ {{ .Inner | markdownify }}
+ {{ end }}
+
diff --git a/themes/PaperMod/layouts/shortcodes/rawhtml.html b/themes/PaperMod/layouts/shortcodes/rawhtml.html
new file mode 100644
index 0000000..9350c13
--- /dev/null
+++ b/themes/PaperMod/layouts/shortcodes/rawhtml.html
@@ -0,0 +1,2 @@
+
+{{- .Inner -}}
\ No newline at end of file
diff --git a/themes/PaperMod/layouts/shortcodes/rtl.html b/themes/PaperMod/layouts/shortcodes/rtl.html
new file mode 100644
index 0000000..a69b8ce
--- /dev/null
+++ b/themes/PaperMod/layouts/shortcodes/rtl.html
@@ -0,0 +1,15 @@
+{{ $.Scratch.Set "md" false }}
+
+{{ if .IsNamedParams }}
+{{ $.Scratch.Set "md" (.Get "md") }}
+{{ else }}
+{{ $.Scratch.Set "md" (.Get 0) }}
+{{ end }}
+
+
+ {{ if eq ($.Scratch.Get "md") false }}
+ {{ .Inner }}
+ {{ else }}
+ {{ .Inner | markdownify }}
+ {{ end }}
+
diff --git a/themes/PaperMod/theme.toml b/themes/PaperMod/theme.toml
new file mode 100644
index 0000000..b49887d
--- /dev/null
+++ b/themes/PaperMod/theme.toml
@@ -0,0 +1,51 @@
+# theme.toml template for a Hugo theme
+# See https://github.com/gohugoio/hugoThemes#themetoml for an example
+
+name = "PaperMod"
+license = "MIT"
+licenselink = "https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE"
+description = "A fast, clean, responsive Hugo theme"
+homepage = "https://adityatelange.github.io/hugo-PaperMod/"
+tags = [
+ "responsive",
+ "simple",
+ "clean",
+ "light",
+ "dark",
+ "blog",
+ "minimalist",
+ "highlight.js",
+ "search"
+]
+features = [
+ "responsive",
+ "single-column",
+ "blog",
+ "cover-image",
+ "table-of-contents",
+ "opengraph",
+ "highlight.js",
+ "favicon",
+ "archive",
+ "share-icons",
+ "cover",
+ "multilingual",
+ "social-icons",
+ "minified-assets",
+ "theme-toggle",
+ "menu-location-indicator",
+ "scroll-to-top",
+ "search"
+]
+min_version = "0.83.0"
+
+[author]
+ name = "Aditya Telange"
+ homepage = "https://github.com/adityatelange/"
+
+# If porting an existing theme
+[original]
+ name = "Paper"
+ author = "nanxiaobei"
+ homepage = "https://github.com/nanxiaobei"
+ repo = "https://github.com/nanxiaobei/hugo-paper/"