+ {{- range site.Params.socialIcons }}
+
{{ partial "svg.html" . }}
{{- end }}
diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html
index 89446be5..54e09c0e 100644
--- a/layouts/partials/svg.html
+++ b/layouts/partials/svg.html
@@ -14,6 +14,21 @@
+{{- else if (eq $icon_name "anilist") -}}
+
+
+
+{{- else if (eq $icon_name "applemusic") -}}
+
+
+
+{{- else if (eq $icon_name "applepodcasts") -}}
+
+
+
{{- else if (eq $icon_name "behance") -}}
@@ -21,6 +36,24 @@
style="font-variation-settings:normal"
d="M1.774 18.063V5.466h5.51c1.978 0 3.116 1.326 3.055 2.806-.043 1.049-.711 2.988-2.643 2.988h-5.93H7.73c1.224 0 3.532 1.13 3.532 3.532 0 2.4-1.873 3.27-3.318 3.27zm12.57-4.459h7.89s.012-4.18-4.167-4.18c-5.237 0-5.277 9.11-.3 9.11 3.06 0 3.935-1.806 3.935-1.806M15.526 5.823h4.987" />
+{{- else if (eq $icon_name "bilibili") -}}
+
+
+
+
+
+
+
+{{- else if (eq $icon_name "bitcoin") -}}
+
+
+
+{{- else if (eq $icon_name "bugcrowd") -}}
+
+
+
{{- else if (eq $icon_name "buymeacoffee") -}}
+{{- else if (eq $icon_name "codeberg") -}}
+
+
+
{{- else if (eq $icon_name "codepen") -}}
@@ -68,6 +105,11 @@
+{{- else if (eq $icon_name "codeforces") -}}
+
+
+
{{- else if (eq $icon_name "cryptohack") -}}
+{{- else if (eq $icon_name "deviantart") -}}
+
+
+
+{{- else if (eq $icon_name "deezer") -}}
+
+
+
{{- else if (eq $icon_name "discogs") -}}
{{- else if (eq $icon_name "discord") -}}
-
+
-
+ d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" />
+
+{{- else if (eq $icon_name "douban") -}}
+
+
+
+
{{- else if (eq $icon_name "dreamstime") -}}
+{{- else if (eq $icon_name "firefish") -}}
+
+
+
{{- else if (eq $icon_name "flickr") -}}
+{{- else if (eq $icon_name "googleplaystore") -}}
+
+
+
+{{- else if (eq $icon_name "googlepodcasts") -}}
+
+
+
{{- else if (eq $icon_name "googlescholar") -}}
-
+ d="M5.242 13.769L0.5 9.5 12 1l11.5 9-5.242 3.769C17.548 11.249 14.978 9.5 12 9.5c-2.977 0-5.548 1.748-6.758 4.269zM12 10a7 7 0 1 0 0 14 7 7 0 0 0 0-14z" />
+
+{{- else if (eq $icon_name "gurushots") -}}
+
+
+
+
+
+
+
+
+
+
+
{{- else if (eq $icon_name "hackerone") -}}
@@ -225,11 +310,20 @@
+{{- else if (eq $icon_name "intigriti") -}}
+
+
+
{{- else if (eq $icon_name "itchio") -}}
+{{- else if (eq $icon_name "kaggle") -}}
+
+
+
{{- else if (eq $icon_name "kakaotalk") -}}
@@ -254,11 +348,25 @@
+{{- else if (eq $icon_name "komoot") -}}
+
+
+
{{- else if (eq $icon_name "lastfm") -}}
+{{- else if (eq $icon_name "leetcode") -}}
+
+
+
+{{- else if (eq $icon_name "letterboxd") -}}
+
+
+
{{- else if (eq $icon_name "liberapay") -}}
@@ -268,6 +376,10 @@
d="m146.52 246.14c0 3.671-.604 7.03-1.811 10.07-1.207 3.043-2.879 5.669-5.01 7.881-2.138 2.213-4.702 3.935-7.693 5.167-2.992 1.231-6.248 1.848-9.767 1.848-1.71 0-3.42-.151-5.129-.453l-3.394 13.651h-11.162l12.52-52.19c2.01-.603 4.311-1.143 6.901-1.622 2.589-.477 5.393-.716 8.41-.716 2.815 0 5.242.428 7.278 1.282 2.037.855 3.708 2.024 5.02 3.507 1.307 1.484 2.274 3.219 2.904 5.205.627 1.987.942 4.11.942 6.373m-27.378 15.461c.854.202 1.91.302 3.167.302 1.961 0 3.746-.364 5.355-1.094 1.609-.728 2.979-1.747 4.111-3.055 1.131-1.307 2.01-2.877 2.64-4.714.628-1.835.943-3.858.943-6.071 0-2.161-.479-3.998-1.433-5.506-.956-1.508-2.615-2.263-4.978-2.263-1.61 0-3.118.151-4.525.453l-5.28 21.948" />
+{{- else if (eq $icon_name "lichess" ) -}}
+
+
+
{{- else if (eq $icon_name "linkedin") -}}
@@ -298,11 +410,31 @@
d="M0 380 l0 -380 380 0 380 0 0 380 0 380 -380 0 -380 0 0 -380z m334 85 c30 -63 57 -115 59 -115 2 0 16 30 31 68 15 37 37 88 49 115 l20 47 76 0 76 -1 -27 -20 -28 -21 0 -151 c0 -150 0 -151 27 -179 l27 -28 -109 0 -109 0 27 28 c26 27 27 32 26 143 0 131 3 134 -71 -58 -24 -62 -48 -113 -53 -113 -6 0 -17 16 -24 35 -7 19 -36 83 -64 142 l-52 108 -3 -98 c-3 -97 -2 -99 28 -133 16 -19 30 -39 30 -44 0 -6 -31 -10 -70 -10 -45 0 -70 4 -70 11 0 6 14 27 30 46 30 33 30 35 30 151 0 116 0 118 -31 155 l-30 37 75 0 76 0 54 -115z" />
+{{- else if (eq $icon_name "microblog") -}}
+
+
+
+
+
+
{{- else if (eq $icon_name "mixcloud") -}}
+{{- else if (eq $icon_name "monero") -}}
+
+
+
+{{- else if (eq $icon_name "neteasecloudmusic") -}}
+
+
+
{{- else if (eq $icon_name "nuget") -}}
@@ -315,6 +447,30 @@
+{{- else if (eq $icon_name "orcid") -}}
+
+
+
+{{- else if (eq $icon_name "osu!") -}}
+
+
+
+
+
+
+{{- else if (eq $icon_name "overcast") -}}
+
+
+
+{{- else if (eq $icon_name "patreon") -}}
+
+
+
{{- else if (eq $icon_name "paypal") -}}
@@ -322,18 +478,46 @@
d="M7.144 19.532l1.049-5.751c.11-.606.691-1.002 1.304-.948 2.155.192 6.877.1 8.818-4.002 2.554-5.397-.59-7.769-6.295-7.769H7.43a1.97 1.97 0 0 0-1.944 1.655L2.77 19.507a.857.857 0 0 0 .846.994h2.368a1.18 1.18 0 0 0 1.161-.969zM7.967 22.522a.74.74 0 0 0 .666.416h2.313c.492 0 .923-.351 1.003-.837l.759-4.601c.095-.523.597-.866 1.127-.819 1.86.166 5.567-.118 6.85-3.821.554-1.6.705-2.954.408-4.018"
style="font-variation-settings:normal" stroke="currentColor" stroke-linejoin="miter" />
+{{- else if (eq $icon_name "peertube") -}}
+
+
+
+{{- else if or (eq $icon_name "pgpkey") (eq $icon_name "key") -}}
+
+
+
+
{{- else if (eq $icon_name "phone") -}}
+{{- else if (eq $icon_name "pocketcasts") -}}
+
+
+
{{- else if (eq $icon_name "polywork") -}}
+{{- else if (eq $icon_name "printables") -}}
+
+
+
+{{- else if (eq $icon_name "pixelfed") -}}
+
+
+
+{{- else if (eq $icon_name "pleroma") -}}
+
+
+
{{- else if (eq $icon_name "qq") -}}
@@ -352,6 +536,12 @@
+{{- else if (eq $icon_name "rootme") -}}
+
+
+
+
{{- else if (eq $icon_name "rss") -}}
@@ -364,6 +554,12 @@
+{{- else if (eq $icon_name "sessionmessenger") -}}
+
+
+
+
{{- else if (eq $icon_name "soundcloud") -}}
+{{- else if (eq $icon_name "sketchfab") -}}
+
+
+
{{- else if (eq $icon_name "slack") -}}
@@ -390,30 +590,14 @@
-{{- else if (eq $icon_name "sourcerer") -}}
-
-
-
-
-
-
-
-
-
-
-
+{{- else if (eq $icon_name "sourcehut") -}}
+
+
+
{{- else if (eq $icon_name "spotify") -}}
-
+
@@ -426,7 +610,29 @@
{{- else if (eq $icon_name "steam") -}}
+ d="M-24.6 20.8c-1.4-.8-2.7-1.5-4.1-2.3-2.4-1.5-3.6-3.6-3.3-6.5.3-3 2.8-5.2 5.8-5.3h11c2.6 0 4.6 2.2 4.7 4.7 0 2.6-2 4.8-4.6 4.9h-2.8v.2c.2.2.5.3.7.5 1.2.7 2.4 1.3 3.6 2 2.5 1.5 3.7 4.5 2.9 7.2-.8 2.7-3.1 4.3-6.1 4.4h-10.6c-2.4 0-4.3-1.9-4.6-4.3-.3-2.3 1.2-4.5 3.5-5.1.6-.1 1.2-.1 1.7-.2h2.1c.1 0 .1-.1.1-.2zm4.3-3.8c-.1.3-.2.3-.2.4v3.9c0 1.1-.1 1.2-1.2 1.2h-5.1c-.4 0-.9 0-1.3.1-1.6.4-2.5 1.9-2.4 3.6.2 1.6 1.6 2.9 3.3 2.9h10.5c2.1 0 3.8-1.2 4.5-3.1.7-1.8.2-4.1-1.5-5.3-2.1-1.3-4.3-2.4-6.6-3.7zm-1.7 3.4v-4c0-1.4.1-1.5 1.4-1.5h5.3c1.5 0 2.7-1 3.1-2.4.6-2.2-1-4.2-3.4-4.3h-10.1c-2.4 0-4.3 1.3-4.9 3.4-.6 2.1.4 4.4 2.5 5.5 1.7 1 3.5 1.9 5.2 2.9.4.2.6.3.9.4z" />
+
+
+
+
+
+
+
+{{- else if (eq $icon_name "strava") -}}
+
+
+
+
+{{- else if (eq $icon_name "substack") -}}
+
+
{{- else if (eq $icon_name "telegram") -}}
+{{- else if (eq $icon_name "thingiverse") -}}
+
+
+
+{{- else if (eq $icon_name "threads") -}}
+
+
+
+{{- else if (eq $icon_name "threema") -}}
+
+
+
+{{- else if (eq $icon_name "tidal") -}}
+
+
+
+{{- else if (eq $icon_name "tiktok") -}}
+
+
+
+{{- else if (eq $icon_name "tryhackme") -}}
+
+
+
+{{- else if (eq $icon_name "tumblr") -}}
+
+
+
{{- else if (eq $icon_name "twitch") -}}
@@ -452,6 +689,31 @@
d="M37.892,13.5h-4.486 l-1.143-3.306C31.707,8.581,30.189,7.5,28.483,7.5h-9.045c-1.706,0-3.224,1.081-3.781,2.694L14.515,13.5H9.108 c-2.545,0-4.608,2.063-4.608,4.608v16.785c0,2.545,2.063,4.608,4.608,4.608h28.785c2.545,0,4.608-2.063,4.608-4.608V18.108 C42.5,15.563,40.437,13.5,37.892,13.5z" />
+{{- else if (eq $icon_name "vimeo") -}}
+
+
+
+{{- else if or (eq $icon_name "vk") (eq $icon_name "vkontakte") -}}
+
+
+
+{{- else if (eq $icon_name "wechat") -}}
+
+
+
+
+{{- else if (eq $icon_name "wordpress") -}}
+
+
+
+{{- else if (eq $icon_name "x") -}}
+
+
+
+
{{- else if (eq $icon_name "xda") -}}
+{{- else if (eq $icon_name "xmpp") -}}
+
+
+
+
{{- else if (eq $icon_name "ycombinator") -}}
+{{- else if (eq $icon_name "zhihu") -}}
+
+
+
{{- else if $icon_name -}}
diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html
index 9bbd90b8..38fbd246 100644
--- a/layouts/partials/templates/opengraph.html
+++ b/layouts/partials/templates/opengraph.html
@@ -1,5 +1,5 @@
-
+
{{- if .Params.cover.image -}}
@@ -19,7 +19,7 @@
{{- with $featured -}}
{{- else -}}
-{{- with $.Site.Params.images }} {{ end -}}
+{{- with site.Params.images }} {{ end -}}
{{- end -}}
{{- end -}}
{{- end }}
@@ -27,26 +27,41 @@
{{- if .IsPage }}
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
-{{ with .PublishDate }} {{ end }}
-{{ with .Lastmod }} {{ end }}
+{{ with .PublishDate }} {{ end }}
+{{ with .Lastmod }} {{ end }}
{{- end -}}
{{- with .Params.audio }} {{ end }}
{{- with .Params.locale }} {{ end }}
-{{- with .Site.Params.title }} {{ end }}
+{{- with site.Params.title }} {{ end }}
{{- with .Params.videos }}{{- range . }}
{{ end }}{{ end }}
{{- /* If it is part of a series, link to related articles */}}
{{- $permalink := .Permalink }}
-{{- $siteSeries := .Site.Taxonomies.series }}
+{{- $siteSeries := site.Taxonomies.series }}
+{{- if $siteSeries }}
{{ with .Params.series }}{{- range $name := . }}
{{- $series := index $siteSeries ($name | urlize) }}
{{- range $page := first 6 $series.Pages }}
{{- if ne $page.Permalink $permalink }} {{ end }}
{{- end }}
{{ end }}{{ end }}
+{{- end }}
+
+{{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}}
+{{- $facebookAdmin := "" }}
+{{- with site.Params.social }}
+ {{- if reflect.IsMap . }}
+ {{- $facebookAdmin = .facebook_admin }}
+ {{- end }}
+{{- else }}
+ {{- with site.Social.facebook_admin }}
+ {{- $facebookAdmin = . }}
+ {{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }}
+ {{- end }}
+{{- end }}
{{- /* Facebook Page Admin ID for Domain Insights */}}
-{{- with .Site.Social.facebook_admin }} {{ end }}
+{{ with $facebookAdmin }} {{ end }}
diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html
index 5cf3857e..435cba51 100644
--- a/layouts/partials/templates/schema_json.html
+++ b/layouts/partials/templates/schema_json.html
@@ -2,23 +2,23 @@
{{- else if (or .IsPage .IsSection) }}
{{/* BreadcrumbList */}}
-{{- $url := replace .Parent.Permalink ( printf "%s" .Site.BaseURL) "" }}
+{{- $url := replace .Parent.Permalink ( printf "%s" site.BaseURL) "" }}
{{- $lang_url := strings.TrimPrefix ( printf "%s/" .Lang) $url }}
{{- $bc_list := (split $lang_url "/")}}
@@ -31,7 +31,7 @@
{{- range $index, $element := $bc_list }}
{{- $scratch.Add "path" (printf "%s/" $element ) | safeJS }}
- {{- $bc_pg := $.Site.GetPage ($scratch.Get "path") -}}
+ {{- $bc_pg := site.GetPage ($scratch.Get "path") -}}
{{- if (and ($bc_pg) (gt (len . ) 0))}}
{{- if (and $index)}}, {{end }}
@@ -83,7 +83,7 @@
{{- end -}}
"datePublished": {{ .PublishDate }},
"dateModified": {{ .Lastmod }},
- {{- with (.Params.author | default .Site.Params.author) }}
+ {{- with (.Params.author | default site.Params.author) }}
"author":
{{- if (or (eq (printf "%T" .) "[]string") (eq (printf "%T" .) "[]interface {}")) -}}
[{{- range $i, $v := . -}}
@@ -105,11 +105,11 @@
"@id": {{ .Permalink | safeHTML }}
},
"publisher": {
- "@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | title -}}",
- "name": {{ .Site.Title }},
+ "@type": "{{- ( site.Params.schema.publisherType | default "Organization") | title -}}",
+ "name": {{ site.Title }},
"logo": {
"@type": "ImageObject",
- "url": {{ .Site.Params.assets.favicon | default "favicon.ico" | absURL }}
+ "url": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }}
}
}
}
diff --git a/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html
index 02270de5..0e7760aa 100644
--- a/layouts/partials/templates/twitter_cards.html
+++ b/layouts/partials/templates/twitter_cards.html
@@ -17,7 +17,7 @@
{{- else -}}
-{{- with $.Site.Params.images -}}
+{{- with site.Params.images -}}
{{ else -}}
@@ -27,7 +27,24 @@
{{- end }}
{{- end }}
-
-{{ with .Site.Social.twitter -}}
-
-{{ end -}}
+
+{{- /* Deprecate site.Social.twitter in favor of site.Params.social.twitter */}}
+{{- $twitterSite := "" }}
+{{- with site.Params.social }}
+ {{- if reflect.IsMap . }}
+ {{- $twitterSite = .twitter }}
+ {{- end }}
+{{- else }}
+ {{- with site.Social.twitter }}
+ {{- $twitterSite = . }}
+ {{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }}
+ {{- end }}
+{{- end }}
+
+{{- with $twitterSite }}
+ {{- $content := . }}
+ {{- if not (strings.HasPrefix . "@") }}
+ {{- $content = printf "@%v" $twitterSite }}
+ {{- end }}
+
+{{- end }}
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
index 7a4c0198..ef3daee5 100644
--- a/layouts/partials/toc.html
+++ b/layouts/partials/toc.html
@@ -1,13 +1,16 @@
{{- $headers := findRE "(.|\n])+? " .Content -}}
{{- $has_headers := ge (len $headers) 1 -}}
{{- if $has_headers -}}
-
-
+
+
{{- i18n "toc" | default "Table of Contents" }}
diff --git a/layouts/partials/translation_list.html b/layouts/partials/translation_list.html
index e1c34e19..00282519 100644
--- a/layouts/partials/translation_list.html
+++ b/layouts/partials/translation_list.html
@@ -1,13 +1,13 @@
{{- if .IsTranslated -}}
{{- if (ne .Layout "search") }}
-{{- if or .Params.author $.Site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}}
+{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}}
{{- end }}
+{{- i18n "translations" | default "Translations" }}:
- {{- i18n "translations" | default "Translations" }}:
{{- range .Translations }}
- {{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
+ {{- if (and site.Params.displayFullLangName (.Language.LanguageName)) }}
{{- .Language.LanguageName | emojify -}}
{{- else }}
{{- .Lang | title -}}
diff --git a/layouts/robots.txt b/layouts/robots.txt
index da3e7e0d..f26f508d 100644
--- a/layouts/robots.txt
+++ b/layouts/robots.txt
@@ -1,5 +1,5 @@
User-agent: *
-{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
+{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
Disallow:
{{- else }}
Disallow: /
diff --git a/layouts/shortcodes/blockquote.html b/layouts/shortcodes/blockquote.html
deleted file mode 100644
index 14bb107a..00000000
--- a/layouts/shortcodes/blockquote.html
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
-
-{{ $.Scratch.Set "bl_author" false }}
-{{ $.Scratch.Set "bl_source" false }}
-{{ $.Scratch.Set "bl_link" false }}
-{{ $.Scratch.Set "bl_title" false }}
-
-{{ if .IsNamedParams }}
- {{ $.Scratch.Set "bl_author" (.Get "author") }}
- {{ $.Scratch.Set "bl_source" (.Get "source") }}
- {{ $.Scratch.Set "bl_link" (.Get "link") }}
- {{ $.Scratch.Set "bl_title" (.Get "title") }}
-{{ else }}
-
-{{ end }}
-
-
-
-{{ with $.Scratch.Get "bl_title" }}
-
-{{ else }}
- {{ with $.Scratch.Get "bl_link" }}
- {{ range last 1 (split ($.Scratch.Get "bl_link" ) "://") }}
- {{ $.Scratch.Set "title_without_protocol" . }}
- {{ end }}
- {{ range last 1 (split ($.Scratch.Get "title_without_protocol" ) "www.") }}
- {{ $.Scratch.Set "title_without_protocol" . }}
- {{ end }}
- {{ $.Scratch.Set "bl_title" ($.Scratch.Get "title_without_protocol") }}
-
-
- {{ if (gt (len ($.Scratch.Get "title_without_protocol") ) 32) }}
- {{ $title := (slicestr ($.Scratch.Get "title_without_protocol") 0 32) }}
- {{ $split_by_fw_slash := split $title "/" }}
- {{ $count := (sub (len $split_by_fw_slash) 1) }}
-
- {{ $.Scratch.Set "tempstring" "" }}
- {{ range first $count $split_by_fw_slash }}
- {{ $.Scratch.Set "tempstring" ( . | printf "%s%s/" ($.Scratch.Get "tempstring") | printf "%s" ) }}
- {{ end }}
- {{ $.Scratch.Set "bl_title" ( printf "%s..." ($.Scratch.Get "tempstring") | printf "%s" ) }}
- {{ end }}
- {{ end }}
-{{ end }}
-
-
- {{ .Inner | markdownify }}
-
- {{ with $.Scratch.Get "bl_author" }}{{ . }}{{ end }}
- {{ with $.Scratch.Get "bl_source" }}
- {{ . }}
- {{ else }}
- {{ with $.Scratch.Get "bl_link" }}
-
- {{ $.Scratch.Get "bl_title" }}
-
- {{ else }}
- {{ with $.Scratch.Get "bl_title" }}
-
- {{ $.Scratch.Get "bl_title" }}
-
- {{ end }}
- {{ end }}
- {{ end }}
-
-
diff --git a/layouts/shortcodes/inTextImg.html b/layouts/shortcodes/inTextImg.html
new file mode 100644
index 00000000..0239fd68
--- /dev/null
+++ b/layouts/shortcodes/inTextImg.html
@@ -0,0 +1,5 @@
+{{- $Img := (.Get "url") }}
+{{- $height := (.Get "height") }}
+{{- $alt := (.Get "alt") }}
+
+
diff --git a/layouts/shortcodes/rawhtml.html b/layouts/shortcodes/rawhtml.html
index 520ec178..8addb568 100644
--- a/layouts/shortcodes/rawhtml.html
+++ b/layouts/shortcodes/rawhtml.html
@@ -1,2 +1,2 @@
-{{.Inner}}
\ No newline at end of file
+{{- .Inner -}}
diff --git a/layouts/shortcodes/youtube.html b/layouts/shortcodes/youtube.html
new file mode 100644
index 00000000..9bd35575
--- /dev/null
+++ b/layouts/shortcodes/youtube.html
@@ -0,0 +1,4 @@
+{{- $id := .Get "id" | default (.Get 0) -}}
+
+
+
\ No newline at end of file
diff --git a/theme.toml b/theme.toml
index b49887df..412509dc 100644
--- a/theme.toml
+++ b/theme.toml
@@ -1,11 +1,11 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
-name = "PaperMod"
+name = "WonderMod"
license = "MIT"
-licenselink = "https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE"
+licenselink = "https://github.com/Wonderfall/hugo-WonderMod/blob/master/LICENSE"
description = "A fast, clean, responsive Hugo theme"
-homepage = "https://adityatelange.github.io/hugo-PaperMod/"
+homepage = "https://github.com/Wonderfall/hugo-WonderMod"
tags = [
"responsive",
"simple",
@@ -37,15 +37,15 @@ features = [
"scroll-to-top",
"search"
]
-min_version = "0.83.0"
+min_version = "0.112.4"
[author]
- name = "Aditya Telange"
- homepage = "https://github.com/adityatelange/"
+ name = "Wonderfall"
+ homepage = "https://github.com/Wonderfall"
# If porting an existing theme
[original]
- name = "Paper"
- author = "nanxiaobei"
- homepage = "https://github.com/nanxiaobei"
- repo = "https://github.com/nanxiaobei/hugo-paper/"
+ name = "PaperMod"
+ author = "Aditya Telange"
+ homepage = "https://github.com/adityatelange"
+ repo = "https://github.com/adityatelange/hugo-PaperMod"