Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Apr 29, 2021
0 parents commit f500536
Show file tree
Hide file tree
Showing 127 changed files with 4,856 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.jpg filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

# Local Netlify folder
.netlify
.idea/
resources/_gen/
*.DS_Store
public/
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[![Netlify Status](https://api.netlify.com/api/v1/badges/09472fc4-7020-49d7-92a6-5d4db1ee1db0/deploy-status)](https://app.netlify.com/sites/wonderful-noyce-fc1eb2/deploys)

# My Personal Website/Blog


6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

17 changes: 17 additions & 0 deletions archetypes/posts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: {{ now.Format "Jan"}}
date: {{ now.Format "2006-01-02" }}
slug: march_2021
draft: false
tags: ["journal","writing"]
---

...
### Reading

### Watching

### Listening

### Coffee

278 changes: 278 additions & 0 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
:root {
--foreground: #000;
--dark: #222;
--background: #fff;
--light: #555;
--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
--page-width: 680px;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground: #fafafa;
--dark: #ddd;
--background: #000;
--light: #aaa;
}
}

body {
font-family: var(--font-sans);
color: var(--foreground);
background-color: var(--background);
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
line-height: 1.5;
margin: 0;
}

::selection, ::-moz-selection {
background: var(--foreground);
color: var(--background);
}

* {
box-sizing: border-box;
}

a {
color: var(--foreground);
}

h1, h2, h3, h4, h5 {
font-weight: 800;
letter-spacing: -0.0425rem;
}

h1 {
font-size: 1.875rem;
}

.🏷 {
color: var(--light);
font-size: .9rem;
}

hr {
background: var(--foreground);
height: 1px;
border: 0;
}

p {
word-break: break-word;
}

pre {
overflow-x: auto;
padding: 1rem;
border-radius: .2rem;
}

footer {
a {
color: var(--light);

&:hover {
color: var(--foreground);
}
}
}

main {
margin-top: 2rem;
@media only screen and (max-width: 1080px) {
margin-top: 0;
}
}

.wrap {
padding: 0 20px;
display: grid;
grid-gap: 20px;
position: relative;
width: 100%;
margin: 0 auto;
max-width: var(--page-width);
grid-template-columns: 100%;
@media only screen and (min-width: 1080px) {
max-width: calc(2 * 220px + var(--page-width));
grid-template-columns: 1fr var(--page-width) 1fr;
}
}

ul {
padding-left: 1rem;
}

header {
margin-bottom: 2rem;
h1:first-of-type {
margin-top: 0;
}
}

nav {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
margin-top: 1rem;

a {
text-decoration: none;
}

li {
display: inline-block;
margin-right: .6rem;

a {
text-transform: uppercase;
font-size: .8rem;
letter-spacing: .1rem;

&.active {
font-weight: 700;
}
}
}

@media only screen and (min-width: 1080px) {
align-items: start;
flex-direction: column;
justify-content: flex-start;
margin-top: 2rem;
li {
display: block;
}
}
}

article {
header {
h1 {
font-size: 2.4rem;
line-height: 1.2;
}
a {
color: var(--light);
}
}

.tags:not(:last-of-type)::after {
content: "·";
}
}

blockquote {
box-sizing: border-box;
quotes: "" "" "" "";
color: var(--dark);
margin: 2rem;

img {
max-width: calc(100% + 4rem + 40px);
margin: 0 calc(-2rem - 20px) .4rem;
display: block;
}

&::before {
content: open-quote;
}

&::after {
content: close-quote;
}

&.noQuotes::before, &.noQuotes::after{
content: initial;
}

p {
display: inline;
}
}

cite {
float: right;

&::before {
content: "";
}
}

figure {
margin: 1rem 0;
overflow: visible;
}

figcaption {
font-size: .9rem;
padding: .2rem 0 .4rem;
color: var(--light);
}

img {
margin: 0 -20px;
max-width: calc(100% + 40px);
}

.📅 {
display: block;
font-weight: 300;
}

.etc li {
color: var(--dark);
}

.listing {
display: grid;
grid-template-columns: 1fr auto;
line-height: 1.4;
grid-gap: .6rem;
align-items: center;

a {
letter-spacing: -.014rem;
text-decoration: none;
font-weight: 600;

&:visited {
color: var(--dark);
}

&:hover {
text-decoration: underline;
}
}

span {
font-weight: 200;
}

@media only screen and (max-width: 600px) {
grid-template-columns: 1fr;
grid-gap: .2rem;
.📅 {
margin-bottom: .5rem;
}
}
}

abbr {
font-variant-caps: all-small-caps;
font-variant-numeric: oldstyle-nums;
font-style: normal;
}

sup a {
margin-left: .25em;
}

.footnotes p {
margin: 0;
}

50 changes: 50 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
baseURL: "https://dzx.cz/"
languageCode: "en-us"
title: "Matouš Dzivjak"
author: "Matouš Dzivjak"
enableGitInfo: true
enableInlineShortcodes: true
copyright: "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
permalinks:
posts: /:year/:month/:day/:slug
books: /:year/:month/:day/:slug

menu:
main:
- identifier: home
name: Home
title: Home
url: /
weight: 1
- identifier: writing
name: Writing
title: Writing
url: /posts/
weight: 2
- identifier: reading
name: Reading
title: Reading
url: /books/
weight: 3
- identifier: about
name: About
title: About
url: /about/
weight: 4
- identifier: etc
name: Etc.
title: Etc.
url: /etc/
weight: 5
- identifier: wiki
name: Wiki 🧠
url: https://wiki.dzx.cz
weight: 6

params:
author: "Matouš Dzivjak"
description: "Personal website with articles, projects and other work of Matous Dzivjak"
images:
- images/og-featured.png # relative path to "static" directory
dateFormat: "2006-01-02"
mainSections: ["books", "posts"]
4 changes: 4 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
description: "Personal website with articles, projects and other work of Matous Dzivjak"
---

1 change: 1 addition & 0 deletions content/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /404.html 404
Loading

0 comments on commit f500536

Please sign in to comment.