From b3cf5cb1b7d7701bd076ca87ab1298f0fbb87398 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 28 Aug 2022 23:54:19 +0300 Subject: [PATCH] My Theme --- config.toml | 2 +- themes/papercut/.editorconfig | 17 +++ themes/papercut/.gitignore | 2 + themes/papercut/archetypes/default.md | 2 + themes/papercut/layouts/404.html | 0 themes/papercut/layouts/_default/baseof.html | 11 ++ themes/papercut/layouts/_default/list.html | 14 ++ themes/papercut/layouts/_default/single.html | 34 +++++ themes/papercut/layouts/index.html | 151 +++++++++++++++++++ themes/papercut/layouts/partials/footer.html | 5 + themes/papercut/layouts/partials/head.html | 10 ++ themes/papercut/layouts/partials/header.html | 16 ++ themes/papercut/static/css/styles.css | 19 +++ themes/papercut/static/favicon.ico | Bin 0 -> 1150 bytes themes/papercut/theme.toml | 17 +++ 15 files changed, 299 insertions(+), 1 deletion(-) create mode 100644 themes/papercut/.editorconfig create mode 100644 themes/papercut/.gitignore create mode 100644 themes/papercut/archetypes/default.md create mode 100644 themes/papercut/layouts/404.html create mode 100644 themes/papercut/layouts/_default/baseof.html create mode 100644 themes/papercut/layouts/_default/list.html create mode 100644 themes/papercut/layouts/_default/single.html create mode 100644 themes/papercut/layouts/index.html create mode 100644 themes/papercut/layouts/partials/footer.html create mode 100644 themes/papercut/layouts/partials/head.html create mode 100644 themes/papercut/layouts/partials/header.html create mode 100644 themes/papercut/static/css/styles.css create mode 100644 themes/papercut/static/favicon.ico create mode 100644 themes/papercut/theme.toml diff --git a/config.toml b/config.toml index a0acd10..e56d6ff 100644 --- a/config.toml +++ b/config.toml @@ -2,7 +2,7 @@ baseURL = 'https://blog.iiiypuk.me/' defaultContentLanguage = 'ru' languageCode = 'ru' title = 'Alexander Popov' -theme = 'papermod' +theme = 'papercut' enableRobotsTXT = false buildDrafts = false diff --git a/themes/papercut/.editorconfig b/themes/papercut/.editorconfig new file mode 100644 index 0000000..2043e33 --- /dev/null +++ b/themes/papercut/.editorconfig @@ -0,0 +1,17 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[{*.html,*.css,*.json}] +indent_style = tab +indent_size = 4 + +[*.js] +indent_style = space +indent_size = 2 diff --git a/themes/papercut/.gitignore b/themes/papercut/.gitignore new file mode 100644 index 0000000..2a6f4a8 --- /dev/null +++ b/themes/papercut/.gitignore @@ -0,0 +1,2 @@ +static/css/bootstrap*.css +static/js/bootstrap*.js diff --git a/themes/papercut/archetypes/default.md b/themes/papercut/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/papercut/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/papercut/layouts/404.html b/themes/papercut/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/papercut/layouts/_default/baseof.html b/themes/papercut/layouts/_default/baseof.html new file mode 100644 index 0000000..0748e3d --- /dev/null +++ b/themes/papercut/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/papercut/layouts/_default/list.html b/themes/papercut/layouts/_default/list.html new file mode 100644 index 0000000..f7ecd5b --- /dev/null +++ b/themes/papercut/layouts/_default/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} +
+
+
+ {{ range .Pages.ByPublishDate.Reverse }} +

+ {{ .PublishDate.Format "2006-01-02" }} + {{ .Title }} +

+ {{ end }} +
+
+
+{{ end }} diff --git a/themes/papercut/layouts/_default/single.html b/themes/papercut/layouts/_default/single.html new file mode 100644 index 0000000..9db90df --- /dev/null +++ b/themes/papercut/layouts/_default/single.html @@ -0,0 +1,34 @@ +{{ define "main" }} +
+
+
+ +
+ +
+

{{ .Title }}

+ + Опубликовано: {{ time.Format "2 January 2006 г." .PublishDate }} + +
+ {{ with .Params.tags }} + {{ range . }} + {{ $href := print (absURL "tags/") (urlize .) }} + 🏷️ {{ . }} + {{ end }} + {{ end }} +
+
+ +
+ {{ .Content }} +
+
+
+{{ end }} diff --git a/themes/papercut/layouts/index.html b/themes/papercut/layouts/index.html new file mode 100644 index 0000000..b97a897 --- /dev/null +++ b/themes/papercut/layouts/index.html @@ -0,0 +1,151 @@ +{{ define "main" }} +
+
+
+

+ Hey, I'm Alexander Popov. + I'm Full Stack Developer +

+
+ +
+

🔌 What I use

+ +

📕 Languages & frameworks

+
+ Pure C + Python + Crystal + JavaScript + PHP + Bootstrap 5 + CSS 3 + HTML 5 +
+ +

📢 Services

+
+ FastMail + Last.fm +
+ +

🧰 Tools

+
+ Arch Linux + Windows 11 + Sublime Text 4 + Windows Terminal + EditorConfig + Git + Gitea + Tmux +
+
+ +
+

🗂️ My projects

+ +
+
+
+
+

⛏️ Minecraft JE Batch Launcher

+

Simple script for launch Minecraft without official launcher. Any OS

+ Get +
+
+
+
+
+
+

🔡 е с точками

+

Сайт для тех, что ценит красивое написание текста

+ Перейти +
+
+
+
+
+
+

🎞️ Get YouTube video cover

+

Service for download video cover from YouTube

+ Get +
+
+
+
+
+
+

⌨️ CHange Of LAyout

+

Меняем написанный текст буржуйской раскладки на нашинскую

+ Перейти +
+
+
+
+
+
+

🟢 vk0nline

+

systemd service and utility for set + online status on Vk.com

+ Get +
+
+
+
+
+ +
+

💼 My little projects

+ +

+ 🔗 + Git mirrors of some repos +

+ +

+ 🔗 + Script for build + Lua Player Plus + apps for PSVITA (PSP2) +

+ +

+ 🔗 + Script for download music scrobbles from Last.fm +

+ +

+ 🔗 + Инструкция по запуску Oblivion Lost Remake в Steam + (до ухода из GH было почти 1к скачиваний) +

+ +

+ 🔗 + Инструкция по запуску OGSR Mod в Steam +

+ +

+ 🔗 + Library parser from version.json on Minecraft JE +

+ +

+ 🔗 + Stuff + JoyeTech Cuboid TC 150W +

+
+ +
+

📫 How to reach me

+ +
+ Twitter + EMail +
+
+
+
+{{ end }} diff --git a/themes/papercut/layouts/partials/footer.html b/themes/papercut/layouts/partials/footer.html new file mode 100644 index 0000000..c1fd2bc --- /dev/null +++ b/themes/papercut/layouts/partials/footer.html @@ -0,0 +1,5 @@ + diff --git a/themes/papercut/layouts/partials/head.html b/themes/papercut/layouts/partials/head.html new file mode 100644 index 0000000..b81c0a4 --- /dev/null +++ b/themes/papercut/layouts/partials/head.html @@ -0,0 +1,10 @@ + + + + + + {{ $title := print .Site.Title " | " .Title }} + {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + {{ $title }} + + diff --git a/themes/papercut/layouts/partials/header.html b/themes/papercut/layouts/partials/header.html new file mode 100644 index 0000000..e107695 --- /dev/null +++ b/themes/papercut/layouts/partials/header.html @@ -0,0 +1,16 @@ +
+
+
+
+ 🏴‍☠️ +
+
+ Сашка ☕ +
+
+ Blog  + 💀 🔵 🔴 +
+
+
+
diff --git a/themes/papercut/static/css/styles.css b/themes/papercut/static/css/styles.css new file mode 100644 index 0000000..9980f51 --- /dev/null +++ b/themes/papercut/static/css/styles.css @@ -0,0 +1,19 @@ +img { + display: block; + border-radius: 8px; + margin: 3px auto; + max-width: 90%; +} + +/*pre { + background-color: #272822; + border-radius: 8px; + padding: 16px; +}*/ + +/*code { + background-color: #272822; + border-radius: 8px; + padding: 0 8px; +} +*/ diff --git a/themes/papercut/static/favicon.ico b/themes/papercut/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..a28eb96b636ee3dcc056127f4094db70a0291e57 GIT binary patch literal 1150 zcmbu7PiqrV6vbaqL|cX0g$oO55-Q2W)EGi$lw?9%t+gSFegP4SU^k`(E8YXpZQp~bP#|cValCViJnqs_F}dh94n>L;y`++p&@80Pa&@M8Wc zZcW~lUeeqz472QM@Z(rAhDgvOTsqYciON^tXHn90s!wJS!y_ztxz>S1G=S!9F4U^! zx|i1e-X3%(ZKtkP%EB;9#=rarjdu8bZu}?}^$ZVZAK-a@&Z&z_pJD9tg4y+c^FaN~ z`?-61hWGDY;!=%?Qjy+>>uO~xC@jZ?O@54lP zd}AYZdB#lU;vm?g{qDBCYgdMcaVax|NT-4G=gwg9L%}&`u~5Lkz*(9Fgt