From 1ac073cc30a23b68371e819c77422b4906dd4f20 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 20 Dec 2022 20:33:57 +0100 Subject: Move to bare theme. --- themes/bare/LICENSE | 20 ++ themes/bare/archetypes/default.md | 2 + themes/bare/layouts/404.html | 0 themes/bare/layouts/_default/baseof.html | 14 ++ themes/bare/layouts/_default/list.html | 21 +++ themes/bare/layouts/_default/rss.xml | 27 +++ themes/bare/layouts/_default/single.html | 20 ++ themes/bare/layouts/partials/comments.html | 21 +++ themes/bare/layouts/partials/footer.html | 54 ++++++ themes/bare/layouts/partials/head.html | 31 ++++ themes/bare/layouts/partials/navigation.html | 16 ++ themes/bare/layouts/partials/openring.html | 64 +++++++ themes/bare/layouts/partials/read-more.html | 16 ++ themes/bare/layouts/partials/side-projects.html | 10 + themes/bare/openring/openring.html | 19 ++ themes/bare/static/css/.gitkeep | 0 themes/bare/static/css/tailwind.css | 235 ++++++++++++++++++++++++ themes/bare/static/js/.gitkeep | 0 themes/bare/theme.toml | 16 ++ 19 files changed, 586 insertions(+) create mode 100755 themes/bare/LICENSE create mode 100755 themes/bare/archetypes/default.md create mode 100755 themes/bare/layouts/404.html create mode 100755 themes/bare/layouts/_default/baseof.html create mode 100755 themes/bare/layouts/_default/list.html create mode 100755 themes/bare/layouts/_default/rss.xml create mode 100755 themes/bare/layouts/_default/single.html create mode 100755 themes/bare/layouts/partials/comments.html create mode 100755 themes/bare/layouts/partials/footer.html create mode 100755 themes/bare/layouts/partials/head.html create mode 100755 themes/bare/layouts/partials/navigation.html create mode 100755 themes/bare/layouts/partials/openring.html create mode 100644 themes/bare/layouts/partials/read-more.html create mode 100644 themes/bare/layouts/partials/side-projects.html create mode 100755 themes/bare/openring/openring.html create mode 100755 themes/bare/static/css/.gitkeep create mode 100644 themes/bare/static/css/tailwind.css create mode 100755 themes/bare/static/js/.gitkeep create mode 100755 themes/bare/theme.toml (limited to 'themes') diff --git a/themes/bare/LICENSE b/themes/bare/LICENSE new file mode 100755 index 0000000..90c27d7 --- /dev/null +++ b/themes/bare/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2022 Mitja Felicijan + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/bare/archetypes/default.md b/themes/bare/archetypes/default.md new file mode 100755 index 0000000..ac36e06 --- /dev/null +++ b/themes/bare/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/bare/layouts/404.html b/themes/bare/layouts/404.html new file mode 100755 index 0000000..e69de29 diff --git a/themes/bare/layouts/_default/baseof.html b/themes/bare/layouts/_default/baseof.html new file mode 100755 index 0000000..79c7684 --- /dev/null +++ b/themes/bare/layouts/_default/baseof.html @@ -0,0 +1,14 @@ + + + +{{ partial "head.html" . }} + + + {{ partial "navigation.html" . }} +
+ {{ block "main" . }}{{ end }} +
+ {{ partial "footer.html" . }} + + + \ No newline at end of file diff --git a/themes/bare/layouts/_default/list.html b/themes/bare/layouts/_default/list.html new file mode 100755 index 0000000..73952eb --- /dev/null +++ b/themes/bare/layouts/_default/list.html @@ -0,0 +1,21 @@ +{{ define "main" }} +
+ + + + +
+{{ end }} diff --git a/themes/bare/layouts/_default/rss.xml b/themes/bare/layouts/_default/rss.xml new file mode 100755 index 0000000..6a35b96 --- /dev/null +++ b/themes/bare/layouts/_default/rss.xml @@ -0,0 +1,27 @@ + + + + + {{ .Site.Author.name }} + {{ .Permalink }} + {{ .Site.Params.description }} + en-us + + {{ range (where .Site.RegularPages "Section" "posts") }} + + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + + {{ " + {{ " + + + {{end}} + + + + diff --git a/themes/bare/layouts/_default/single.html b/themes/bare/layouts/_default/single.html new file mode 100755 index 0000000..23a60a9 --- /dev/null +++ b/themes/bare/layouts/_default/single.html @@ -0,0 +1,20 @@ +{{ define "main" }} +
+ + +
+
+

{{ .Title }}

+ + {{ if in .Type "posts" }} + + {{ end }} +
+ +
+ {{.Content}} +
+
+ +
+{{ end }} diff --git a/themes/bare/layouts/partials/comments.html b/themes/bare/layouts/partials/comments.html new file mode 100755 index 0000000..b905967 --- /dev/null +++ b/themes/bare/layouts/partials/comments.html @@ -0,0 +1,21 @@ +
+

Leave a comment

+

You can write me an email at m@mitjafelicijan.com or comment bellow.

+
+ + + + +
diff --git a/themes/bare/layouts/partials/footer.html b/themes/bare/layouts/partials/footer.html new file mode 100755 index 0000000..ced622d --- /dev/null +++ b/themes/bare/layouts/partials/footer.html @@ -0,0 +1,54 @@ + + + + + +{{ if ne .IsHome true }} + + + + +{{ end }} + +{{ if ne .IsHome true }} + + +{{ end }} diff --git a/themes/bare/layouts/partials/head.html b/themes/bare/layouts/partials/head.html new file mode 100755 index 0000000..14ec02e --- /dev/null +++ b/themes/bare/layouts/partials/head.html @@ -0,0 +1,31 @@ + + + + + + + + + + +{{ .Title }} + + + + + + + diff --git a/themes/bare/layouts/partials/navigation.html b/themes/bare/layouts/partials/navigation.html new file mode 100755 index 0000000..5797b78 --- /dev/null +++ b/themes/bare/layouts/partials/navigation.html @@ -0,0 +1,16 @@ +
+
+
+ +
+ + +
+
diff --git a/themes/bare/layouts/partials/openring.html b/themes/bare/layouts/partials/openring.html new file mode 100755 index 0000000..0407b34 --- /dev/null +++ b/themes/bare/layouts/partials/openring.html @@ -0,0 +1,64 @@ +
+

Articles from blogs I follow around the net

+ +
+ +
+ Haskell in Production: e-bot7 +

In this edition of our Haskell in Production series, we feature e-bot7 – a low-code conversational AI platform designed for customer service and support. Read the i…

+
+ Via Serokell Blog on December 12, 2022 +
+
+ + + + + +
+ I shall toil at a reduced volume +

Over the last nine years I have written 300,000 words for this blog on the +topics which are important to me. I am not certain that I have much left to say. +I can keep…

+
+ Via Drew DeVault's blog on December 1, 2022 +
+
+ + + +
+ DKGs in Groups +

This is a short post on distributed key generation (DKG) +in the context of cryptographic groups, such as elliptic curves.

+
+ Via Posts on Cronokirby's Blog on October 9, 2022 +
+
+ +
+ +

+ Generated with openring. +

+
diff --git a/themes/bare/layouts/partials/read-more.html b/themes/bare/layouts/partials/read-more.html new file mode 100644 index 0000000..d604bfc --- /dev/null +++ b/themes/bare/layouts/partials/read-more.html @@ -0,0 +1,16 @@ +
+

Read more from this site

+ +
diff --git a/themes/bare/layouts/partials/side-projects.html b/themes/bare/layouts/partials/side-projects.html new file mode 100644 index 0000000..5cca9b6 --- /dev/null +++ b/themes/bare/layouts/partials/side-projects.html @@ -0,0 +1,10 @@ +
+

Side projects I worked on

+ +
diff --git a/themes/bare/openring/openring.html b/themes/bare/openring/openring.html new file mode 100755 index 0000000..bd9ac55 --- /dev/null +++ b/themes/bare/openring/openring.html @@ -0,0 +1,19 @@ +
+

Articles from blogs I follow around the net

+ +
+ {{ range .Articles }} + + {{ end }} +
+ +

+ Generated with openring. +

+
diff --git a/themes/bare/static/css/.gitkeep b/themes/bare/static/css/.gitkeep new file mode 100755 index 0000000..e69de29 diff --git a/themes/bare/static/css/tailwind.css b/themes/bare/static/css/tailwind.css new file mode 100644 index 0000000..edbb0ab --- /dev/null +++ b/themes/bare/static/css/tailwind.css @@ -0,0 +1,235 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +* { cursor: url(/general/9front-cursor.png), auto; } + +/* Container */ +.container-blog { + max-width: 700px; +} + +/* User text selection */ +::selection { + @apply bg-yellow-100 text-black; +} + +::-moz-selection { + @apply bg-yellow-100 text-black; +} + +/* Headings */ +article.single h2 { + @apply text-2xl font-bold mb-4 mt-8; +} + +article.single h3 { + @apply text-xl font-bold mb-4 mt-8; +} + +article.single h4 { + @apply text-lg font-bold mb-4 mt-8; +} + +/* Paragraph */ +article.single p { + @apply mb-5; +} + +/* Links */ +article.single a { + @apply underline hover:bg-yellow-100; +} + +/* Blockquote */ +article.single blockquote { + background-image: url('/general/alert-light.svg'); + background-size: 30px 30px; + background-repeat: no-repeat; + background-position: 0 5px; + @apply pl-12 my-8; +} + +/* Media: Images, audio, video */ +article.single img { + @apply rounded w-full !bg-gray-50 my-8; +} + +article.single video { + @apply rounded w-full !bg-gray-50; +} + +article.single audio { + @apply w-full mb-6; +} + +/* Code */ +article.single code { + @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium; +} + +article.single pre { + @apply !bg-gray-50 rounded text-xs p-4 mb-6 overflow-x-auto; +} + +article.single pre code { + background: unset; + padding: unset; + @apply leading-relaxed; +} + +/* Tables */ +article.single table { + @apply w-full border border-black border-collapse mb-4; +} + +article.single table tr, +article.single table td, +article.single table th { + @apply px-4 py-2 border text-left; +} + +/* Unordered list */ +article.single ul { + @apply list-disc pl-6 md:pl-10 mb-6; +} + +/* Ordered list */ +article.single ol { + @apply list-decimal pl-8 md:pl-10; +} + +/* Katex */ +article.single .katex-display { + @apply my-10; +} + +/* Lazy loading of iframes */ +article.single .ll-iframe { + @apply bg-gray-100 rounded; +} + +article.single .ll-iframe::before { + @apply h-full flex border-2 border-gray-300 rounded justify-center items-center font-medium text-sm cursor-pointer animate-pulse; + content: 'Click here to load resource…'; +} + +article.single .ll-iframe.empty::before { + content: none; +} + +/* Cactus Comments */ +.comments img { + max-width: auto !important; + max-width: unset !important; + max-width: inherit !important; +} + +.cactus-container .cactus-editor-textarea { + @apply border w-full h-32 px-3 py-2 outline-none rounded mb-2; +} + +.cactus-container .cactus-editor-name input { + @apply border w-full px-3 py-2 mb-2 outline-none rounded; +} + +.cactus-container .cactus-editor-name { + @apply mb-1; +} + +/* Cactus: Buttons */ +.cactus-editor-buttons { + @apply flex gap-2; +} + +.cactus-container .cactus-button { + @apply text-base bg-gray-200 hover:bg-gray-300 font-medium px-6 py-2 rounded; +} + +.cactus-container .cactus-editor { + @apply mb-10; +} + +/* Cactus: Comment List */ +.cactus-container .cactus-comments-list { + @apply flex flex-col gap-8; +} + +.cactus-container .cactus-comment { + @apply flex gap-4; +} + +.cactus-container .cactus-comment .cactus-comment-avatar img { + @apply w-8 h-8 rounded-full; +} + +.cactus-container .cactus-comment .cactus-comment-avatar-placeholder { + @apply w-8 h-8 rounded-full bg-gray-300; +} + +.cactus-container .cactus-comment .cactus-comment-header { + @apply flex gap-2 items-center; +} + +.cactus-container .cactus-comment .cactus-comment-header .cactus-comment-displayname { + @apply font-semibold; +} + +.cactus-container .cactus-comment .cactus-comment-header .cactus-comment-time { + @apply text-gray-400 text-sm; +} + +.cactus-container .cactus-comment .cactus-message-text code { + @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium; +} + +/* Unordered list */ +.cactus-container .cactus-comment .cactus-message-text ul { + @apply list-disc pl-2 md:pl-6; +} + +/* Ordered list */ +.cactus-container .cactus-comment .cactus-message-text ol { + @apply list-decimal pl-2 md:pl-6; +} + +/* Cactus: Login */ +.cactus-container .cactus-login-form-wrapper { + @apply border mb-6 p-3 relative rounded; +} + +.cactus-container .cactus-login-form .cactus-login-close { + @apply absolute right-3 top-3 w-4 h-4; +} + +.cactus-container .cactus-login-form .cactus-login-title { + @apply font-bold mb-4 mt-0 pt-0; +} + +/* Cactus: Login with a button */ +.cactus-container .cactus-login-form .cactus-login-client { + @apply mb-6; +} + +.cactus-container .cactus-login-form .cactus-login-client-title { + @apply font-semibold mb-2; +} + +/* Cactus: Login with credentials */ +.cactus-container .cactus-login-form .cactus-login-credentials {} + +.cactus-container .cactus-login-form .cactus-login-credentials-title { + @apply font-semibold mb-1; +} + +.cactus-container .cactus-login-form .cactus-login-field { + @apply flex gap-4 mb-2 items-center; +} + +.cactus-container .cactus-login-form .cactus-login-label { + @apply w-20; +} + +.cactus-container .cactus-login-form input { + @apply border px-2 py-1 rounded; +} diff --git a/themes/bare/static/js/.gitkeep b/themes/bare/static/js/.gitkeep new file mode 100755 index 0000000..e69de29 diff --git a/themes/bare/theme.toml b/themes/bare/theme.toml new file mode 100755 index 0000000..bf6fd7f --- /dev/null +++ b/themes/bare/theme.toml @@ -0,0 +1,16 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Simple" +license = "MIT" +licenselink = "https://github.com/mitjafelicijan/hugo-simple/blob/master/LICENSE" +description = "Simlistic theme" +homepage = "http://mitjafelicijan.com/" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "Mitja Felicijan" + homepage = "https://mitjafelicijan.com" + -- cgit v1.2.3