diff --git a/assets/scss/style.scss b/assets/scss/style.scss index d5ade8a..e44c223 100755 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -261,7 +261,7 @@ figure { margin: auto; } -.draft-warning { +.warning { @include bordered-block; padding: 0.5rem; background-color: #ffee99; diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..06de036 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,52 @@ +[home] + other = "Home" + +[about] + other = "About" + +[resume] + other = "Resume" + +[tags] + other = "Tags" + +[favorites] + other = "Favorites" + +[search] + other = "Search" + +[allPosts] + other = "All Posts" + +[nWords] + one = "one word" + other = "{{ .Count }} words" + +[nMinutesToRead] + one = "about one minute to read" + other = "about {{ .Count }} minutes to read" + +[recentPosts] + other = "Recent posts" + +[tagged] + other = "Tagged \"{{ . }}\"" + +[postedOn] + other = "Posted on {{ . }}" + +[tableOfContents] + other = "Table of Contents" + +[warning] + other = "Warning!" + +[postDraft] + other = "This post is a draft. At best, it may contain grammar mistakes; at worst, it can include significant errors and bugs. Please use your best judgement!" + +[contactFooter] + other = "Liked this article? Have any questions or comments? Please don't hesitate to reach out to me at danila.fedorin@gmail.com! I love receiving emails from readers, and I'm always happy to provide any additional clarification or assistance." + +[note] + other = "note" diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 3295155..0ec4e06 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -6,25 +6,21 @@ {{ . }} {{ end }}
-Posted on {{ .Date.Format "January 2, 2006" }}.
+{{ i18n "postedOn" (.Date.Format "January 2, 2006") }}.