From 9f5454bda6299db43a4e9de5b3716471388b81d9 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 27 Aug 2022 14:05:48 +0200 Subject: Move blog to Hugo --- template/_footer.html | 7 - template/_includes.html | 7 - template/_libraries.html | 11 -- template/_meta.html | 16 -- template/_navigation.html | 18 -- template/favicon.ico | Bin 4286 -> 0 bytes template/index.html | 62 ------- template/openring.tmpl | 34 ---- template/post.html | 76 -------- template/robots.txt | 2 - template/script.js | 11 -- template/style.css | 436 ---------------------------------------------- template/tag.html | 61 ------- 13 files changed, 741 deletions(-) delete mode 100755 template/_footer.html delete mode 100755 template/_includes.html delete mode 100644 template/_libraries.html delete mode 100755 template/_meta.html delete mode 100755 template/_navigation.html delete mode 100644 template/favicon.ico delete mode 100755 template/index.html delete mode 100644 template/openring.tmpl delete mode 100755 template/post.html delete mode 100644 template/robots.txt delete mode 100755 template/script.js delete mode 100755 template/style.css delete mode 100755 template/tag.html (limited to 'template') diff --git a/template/_footer.html b/template/_footer.html deleted file mode 100755 index 605c0a9..0000000 --- a/template/_footer.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/template/_includes.html b/template/_includes.html deleted file mode 100755 index 5151355..0000000 --- a/template/_includes.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/template/_libraries.html b/template/_libraries.html deleted file mode 100644 index 1a7b911..0000000 --- a/template/_libraries.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/template/_meta.html b/template/_meta.html deleted file mode 100755 index ff0dc0f..0000000 --- a/template/_meta.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/template/_navigation.html b/template/_navigation.html deleted file mode 100755 index 8fef331..0000000 --- a/template/_navigation.html +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/template/favicon.ico b/template/favicon.ico deleted file mode 100644 index d6be6ec..0000000 Binary files a/template/favicon.ico and /dev/null differ diff --git a/template/index.html b/template/index.html deleted file mode 100755 index 9196940..0000000 --- a/template/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - {{template "_meta.html"}} - - {{.Title}} - - - - - - - - {{template "_navigation.html"}} - -
-

Blog posts

- - -
- -
-

Side projects I work/worked on

- -
- -
- - {{template "openring-build.html"}} - -
- - {{template "_footer.html"}} - - {{template "_includes.html"}} - - - - \ No newline at end of file diff --git a/template/openring.tmpl b/template/openring.tmpl deleted file mode 100644 index 43ad6a2..0000000 --- a/template/openring.tmpl +++ /dev/null @@ -1,34 +0,0 @@ -
-

Articles from blogs I follow around the net

-
- {{range .Articles}} - - {{end}} -
-

- Generated by - openring -

-
- - diff --git a/template/post.html b/template/post.html deleted file mode 100755 index 3ce5ff0..0000000 --- a/template/post.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - {{template "_meta.html"}} - - {{.Title}} - - - - - - - - {{template "_navigation.html"}} - -
-
-
-

{{.Title}}

- {{if .Listing}} - - {{end}} -
-
- {{.Content}} -
-
- - {{if .Listing}} - -
- -

- Comment, contact: The easiest way to contact me is by writing me a message on Telegram (https://t.me/mitjafelicijan). -

- -

You can also just write me an email at m@mitjafelicijan.com.

- -
- - {{if .Posts}} - - {{end}} - -
- - {{template "openring-build.html"}} - - {{end}} - -
- - {{template "_footer.html"}} - - {{template "_includes.html"}} - - {{template "_libraries.html"}} - - - - \ No newline at end of file diff --git a/template/robots.txt b/template/robots.txt deleted file mode 100644 index c2a49f4..0000000 --- a/template/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Allow: / diff --git a/template/script.js b/template/script.js deleted file mode 100755 index c03883f..0000000 --- a/template/script.js +++ /dev/null @@ -1,11 +0,0 @@ -window.addEventListener('load', async () => { - - // flip CV image on mouse over - const cvImage = document.querySelector('.cv-picture img'); - if (cvImage) { - setInterval(() => { - cvImage.style.transform = cvImage.style.transform === 'scaleX(1)' ? 'scaleX(-1)' : 'scaleX(1)'; - }, 1000); - } - -}); diff --git a/template/style.css b/template/style.css deleted file mode 100755 index 20ed862..0000000 --- a/template/style.css +++ /dev/null @@ -1,436 +0,0 @@ -/*@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');*/ - -:root { - --base-document-width: 640px; - --base-font-size: 16px; - --base-line-heigh: 1.6em; - --base-color: #111111; - - --link-color: #111111; - --link-color-hover: #111111; - - --label-color: #222222; - - --border-color: #eeeeee; - - --badge-background-color: #eeeeee; - --badge-label-color: #111111; - - --code-font-size: 13px; - - --comment-form-font: 16px 'Times New Roman', Times, serif; -} - -* { - box-sizing: border-box; -} - -body { - background: white; - /*font-family: 'Times New Roman', Times, serif;*/ - /*font-family: 'IBM Plex Sans', sans-serif;*/ - font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif; - color: var(--base-color); - font-size: var(--base-font-size); - line-height: var(--base-line-heigh); - padding: 0; - margin: 0; - padding-bottom: 100px; -} - -hr { - border: 0; - border-top: 5px solid #f7f7f7; -} - - -::selection { - background: rgb(255, 241, 177); - color: #000; -} - -::-moz-selection { - background: rgb(255, 241, 177); - color: #000; -} - -.cursor { - cursor: pointer; -} - -/* width of the page */ - -.wrapper { - max-width: var(--base-document-width); - margin: 0 auto; -} - -/* links */ - -a { - color: black; -} - -a:hover { - background: rgb(255, 241, 177); -} - - -/* headings */ - -h1 { - font-size: 220%; - line-height: 1.2em; -} - -h2 { - font-size: 180%; - line-height: 1.2em; -} - -h3 { - font-size: 160%; - line-height: 1.2em; -} - -h4 { - font-size: 140%; - line-height: 1.2em; -} - -h5 { - font-size: 120%; - line-height: 1.2em; -} - -h6 { - font-size: 100%; - line-height: 1.2em; -} - -h1[itemtype="headline"] { - padding-bottom: 0; - margin-bottom: 20px; - font-size: 230%; - line-height: 1.2em; - font-weight: 800; -} - -/* tables */ - -table { - width: 100%; -} - -table, -th, -td { - border: 1px solid black; - text-align: left; -} - -th, -td { - padding: 5px 10px; -} - - -/* quotes */ - -blockquote { - position: relative; - margin-block-start: 30px; - margin-block-end: 30px; - margin-right: 0; -} - -blockquote:before { - content: ' '; - background-image: url('/assets/general/alert-light.svg'); - background-size: 30px 30px; - height: 30px; - width: 30px; - position: absolute; - left: -40px; - top: 6px; -} - -blockquote p { - padding-left: 10px; -} - - -/* header navigation */ - -.navigation { - margin-block-start: 10px; - margin-block-end: 30px; -} - -.navigation header { - display: flex; - align-items: center; -} - -.navigation header a { - text-decoration: none; -} - -.navigation header a:hover { - text-decoration: underline; -} - -.navigation header .home { - font-size: 130%; - font-weight: 700; -} - -.navigation header .home a { - color: var(--base-color); -} - -.navigation header .home a:hover { - text-decoration: none; -} - -.navigation header nav { - flex-grow: 1; - text-align: right; -} - -.navigation header nav a { - padding: 0 10px; - font-size: 100%; - font-weight: 500; -} - -/* index post list */ - -.post-list { - list-style-type: none; - padding: 0; - margin: 0; -} - -.post-list li { - margin: 0 0 15px 0; -} - -.post-list li time { - display: block; - font-size: 80%; - font-weight: 500; - line-height: 1.2em; - color: #a7a7a7; -} - -.post-list li a { - display: inline-block; - text-decoration: none; -} - -.post-list li a:hover {} - -.post-list li a h2 { - font-weight: 400; - font-size: 100%; - margin: 0; -} - - -/* project list */ - -.project-list { - margin-top: 60px; -} - -.project-list a {} - -.project-list li { - list-style-type: disclosure-closed; - padding-left: 10px; -} - - -/* webring */ - -.webring a { - font-weight: 500; -} - - -/* tag badges */ - -.tags { - margin-top: 5px; -} - -.tags a { - font-size: 80%; - padding: 2px 10px; - border-radius: 20px; - - background: var(--badge-background-color); - color: var(--badge-label-color) !important; -} - -.tags a:hover { - filter: brightness(90%); -} - - -/* helpers */ - -.top-margin { - margin-top: 60px; -} - -.top-margin-huge { - margin-top: 100px; -} - -code { - font-family: monospace; - background: rgb(255, 241, 177); - border-radius: 5px; - padding: 2px 8px; - font-size: var(--code-font-size); - font-weight: 500; -} - -pre>code { - background: unset; - padding: unset; - - padding: 15px 20px !important; - border-radius: 5px !important; - font-weight: 400; -} - -pre { - font-size: var(--code-font-size); - line-height: 1.5em; - - margin-block-start: 40px; - margin-block-end: 40px; -} - -img, -video { - max-width: 100%; - margin: 30px auto; - display: block; - border-radius: 5px; -} - -video { - background: var(--badge-background-color); -} - -time { - color: var(--label-color); - font-size: 90%; -} - -/* article */ - -article a { - overflow-wrap: break-word; - word-wrap: break-word; - -webkit-hyphens: auto; - -ms-hyphens: auto; - -moz-hyphens: auto; - hyphens: auto; -} - -article img { - max-width: 120%; - width: 120%; - position: relative; - left: -10%; - margin: 40px auto; - /* border: 1px solid #eee; */ -} - -article strong { - font-weight: 600; -} - -article ol { - padding-inline-start: 30px; -} - -article .katex-display { - margin: 3em 0 !important; -} - -/* audio */ - -audio { - width: 100%; - outline: none; -} - - -/* footer */ - -.footer { - margin-top: 70px; - padding-top: 20px; - padding-bottom: 50px; - font-size: 90%; - color: #888; -} - -.footer a { - color: #666; -} - -/* responsive */ - -@media only screen and (max-width: 960px) { - main { - padding: 0 20px; - } - - footer { - padding: 0 20px; - } - - h1[itemtype="headline"] { - font-size: 220%; - } - - .navigation header { - padding: 0 20px; - } - - article img { - max-width: 100%; - position: initial; - margin: 20px auto; - } -} - -@media only screen and (max-width: 600px) { - .navigation header { - display: block; - } - - .navigation header h3 { - text-align: center; - margin-bottom: 10px; - } - - .navigation header nav { - text-align: center; - } - - .post-list li a h2 { - font-weight: 500; - } - - .search-trigger { - display: none; - } -} \ No newline at end of file diff --git a/template/tag.html b/template/tag.html deleted file mode 100755 index 42e42ea..0000000 --- a/template/tag.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - {{template "_meta.html"}} - - {{.Title}} - - - - - - {{template "_navigation.html"}} - -
-

Posts for `{{.Tag}}`

- - - - {{if .Tags}} - - {{end}} - -
- - {{template "_footer.html"}} - - {{template "_includes.html"}} - - - - -- cgit v1.2.3