minimal-categorized 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/404.html +11 -0
- data/README.md +34 -7
- data/_config.yml +2 -2
- data/_data/menu.yml +9 -6
- data/_data/metaData.yml +1 -3
- data/_includes/common-head.html +5 -0
- data/_includes/menu.html +9 -8
- data/_layouts/category-aggregator.html +19 -2
- data/_layouts/default.html +6 -6
- data/_layouts/home.html +7 -6
- data/_layouts/post.html +10 -3
- data/_sass/styles/_category-aggregator.scss +22 -3
- data/_sass/styles/_defaults.scss +32 -9
- data/_sass/styles/_home.scss +8 -0
- data/_sass/styles/_index.scss +2 -1
- data/_sass/styles/_layout.scss +12 -1
- data/_sass/styles/_menu.scss +51 -16
- data/_sass/styles/_post.scss +41 -0
- data/_sass/variables/_index.scss +2 -1
- data/_sass/variables/_layout.scss +6 -1
- data/_sass/variables/_mixins.scss +34 -0
- data/assets/img/avatar.png +0 -0
- data/assets/img/category-1.jpg +0 -0
- data/assets/img/category-2.jpg +0 -0
- data/assets/styles/styles.scss +1 -6
- data/pages/about.html +2 -3
- data/pages/category-1.html +3 -4
- data/pages/category-2.html +10 -3
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9591ce0b0bbe7d3236a3581de7173de19775687d92e18bc0e9ea5ecf4bdbe1e0
|
4
|
+
data.tar.gz: 656424f45f6b9b6f5a830abda82774fc7295aa9a08b4aceb995aa386a8a7b9e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82a1a507aaa46a05a312ccbf00abf55811beba30c844c1b835b7481aa53512ac2b4e79c3d798e8cbe4a80cd4b685868840a32b8a399aa8df863d537f1b47109d
|
7
|
+
data.tar.gz: f4f6cb55b484fbdc1787cffec6ba1d16d12708d1427933520f39897aede1d3bc315aa709e481712c2fe0d70a518243e8aabcc11a1b357e1d467b59ff74fd8126
|
data/404.html
ADDED
data/README.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
# minimal-categorized
|
1
|
+
# [minimal-categorized Jekyll theme](https://github.com/ItsMeaga1n/minimal-categorized/)
|
2
2
|
|
3
|
-
|
3
|
+
[![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/mmistakes/minimal-mistakes/master/LICENSE)
|
4
|
+
[![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.9-blue.svg)](https://jekyllrb.com/)
|
5
|
+
[![Ruby gem](https://img.shields.io/gem/v/minimal-mistakes-jekyll.svg)](https://rubygems.org/gems/minimal-mistakes-jekyll)
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
-
TODO: Delete this and the text above, and describe your gem
|
7
|
+
minimal-categorized is a flexible Jekyll theme, designed for sites with content easily aggregated into categories. Demo is available [here](https://itsmeaga1n.github.io/minimal-categorized/).
|
8
8
|
|
9
|
+
![layout examples](screenshot.png)
|
9
10
|
|
10
11
|
## Installation
|
11
12
|
|
@@ -31,11 +32,37 @@ Or install it yourself as:
|
|
31
32
|
|
32
33
|
## Usage
|
33
34
|
|
34
|
-
|
35
|
+
This theme is based on separating content into categories, which is later shown on separated sites designated to the specific content type.
|
36
|
+
|
37
|
+
As for now, theme allows to use two main categories that will be displayed on home screen and more categories displayed only in menu to further separate content. Those are defined in `_data/menu.yml`.
|
38
|
+
|
39
|
+
Structure of `_data/menu.yml`:
|
40
|
+
* menu_title: Displayed on menu (only for normal menu)
|
41
|
+
* menu_headline: Displayed in menu (only for normal menu) and in about page
|
42
|
+
* menu_intro: Displayed in menu (only for normal menu) and in about page
|
43
|
+
* show_menu_on_category_select: Boolean value determining if menu should be visible on category selection page
|
44
|
+
* minimal_menu: Boolean value determining the style of menu bar
|
45
|
+
* menu_logo: Path to logo displayed on menu (only for normal menu)
|
46
|
+
* menu_pages: a list of items in menu. Each item contains information:
|
47
|
+
* title: Menu position title
|
48
|
+
* url: URL for href
|
49
|
+
* show_on_home: Boolean value to determine if this position is a category to be shown on category picker
|
50
|
+
* image_url: image URL for category picker
|
51
|
+
* icon_name: FavIcon to be displayed in menu
|
52
|
+
* category: unique identifier of category. Used to determine which menu item is selected
|
53
|
+
* tooltip: Tooltip for menu item
|
54
|
+
* menu_contacts: a list of items to be displayed for a contact section in menu
|
55
|
+
* faicon: FavIcon to be displayed in menu
|
56
|
+
* url: URL for href
|
57
|
+
* target: target value of \<a> tag
|
58
|
+
|
59
|
+
Structure of `_data/metaData.yml`:
|
60
|
+
author: Site Author name
|
61
|
+
avatar_url: URL for avatar (for about page)
|
35
62
|
|
36
63
|
## Contributing
|
37
64
|
|
38
|
-
Bug reports and pull requests are welcome on GitHub
|
65
|
+
Bug reports and pull requests are welcome on [GitHub](https://github.com/ItsMeaga1n/minimal-categorized). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
39
66
|
|
40
67
|
## Development
|
41
68
|
|
data/_config.yml
CHANGED
@@ -19,13 +19,13 @@ description: >- # this means to ignore newlines until "baseurl:"
|
|
19
19
|
Write an awesome description for your new site here. You can edit this
|
20
20
|
line in _config.yml. It will appear in your document head meta (for
|
21
21
|
Google search results) and in your feed.xml site description.
|
22
|
-
baseurl: "" # the subpath of your site, e.g. /blog
|
22
|
+
baseurl: "/minimal-categorized" # the subpath of your site, e.g. /blog
|
23
23
|
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
24
24
|
|
25
25
|
|
26
26
|
# Build settings
|
27
27
|
markdown: kramdown
|
28
|
-
|
28
|
+
remote_theme: ItsMeaga1n/minimal-categorized
|
29
29
|
# Exclude these files from production site
|
30
30
|
exclude:
|
31
31
|
- CHANGELOG.md
|
data/_data/menu.yml
CHANGED
@@ -2,29 +2,32 @@ menu_title: Example menu title
|
|
2
2
|
menu_headline: example menu headline
|
3
3
|
menu_intro: Hi! This is an example of intro that you could write for your jekyll minimal-categorized theme!
|
4
4
|
show_menu_on_category_select: False
|
5
|
-
minimal_menu:
|
6
|
-
menu_logo: assets/img/
|
5
|
+
minimal_menu: True
|
6
|
+
menu_logo: assets/img/avatar.png
|
7
7
|
|
8
8
|
menu_pages:
|
9
9
|
- title: Category 1
|
10
10
|
url: /category-1.html
|
11
11
|
show_on_home: True
|
12
|
-
image_url:
|
13
|
-
icon_name: fas fa-
|
12
|
+
image_url: assets/img/category-1.jpg
|
13
|
+
icon_name: fas fa-dice
|
14
14
|
category: category-1
|
15
|
+
tooltip: This is category 1
|
15
16
|
|
16
17
|
- title: Category 2
|
17
18
|
url: /category-2.html
|
18
19
|
show_on_home: True
|
19
|
-
image_url:
|
20
|
+
image_url: assets/img/category-2.jpg
|
20
21
|
icon_name: fas fa-cogs
|
21
22
|
category: category-2
|
23
|
+
tooltip: This is category 2
|
22
24
|
|
23
25
|
- title: ABOUT
|
24
|
-
url:
|
26
|
+
url: about.html
|
25
27
|
show_on_home: False
|
26
28
|
icon_name: fas fa-address-card
|
27
29
|
category: about
|
30
|
+
tooltip: This is about
|
28
31
|
|
29
32
|
menu_contacts:
|
30
33
|
- faicon: fab fa-github-alt
|
data/_data/metaData.yml
CHANGED
@@ -0,0 +1,5 @@
|
|
1
|
+
<meta charset="utf-8">
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
3
|
+
<title>{{ page.title }}</title>
|
4
|
+
<link rel="stylesheet" href="{{ '/assets/styles/styles.css' | relative_url }}">
|
5
|
+
<script src="https://kit.fontawesome.com/79c31398dc.js" crossorigin="anonymous"></script>
|
data/_includes/menu.html
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{% if site.data.menu.minimal_menu %}
|
2
|
-
<aside class="menu
|
2
|
+
<aside class="menu">
|
3
3
|
<div class="menu-top">
|
4
4
|
|
5
5
|
<ul class="navigation">
|
6
6
|
{% for menu_item in site.data.menu.menu_pages %}
|
7
7
|
<li>
|
8
|
-
<a href="{{ menu_item.url }}" category="{{ menu_item.category }}">
|
8
|
+
<a href="{{ menu_item.url | relative_url }}" category="{{ menu_item.category }}" title="{{ menu_item.tooltip }}">
|
9
9
|
<i class="{{ menu_item.icon_name }}"> </i>
|
10
10
|
</a>
|
11
11
|
</li>
|
@@ -15,20 +15,21 @@
|
|
15
15
|
<div class="menu-contact">
|
16
16
|
{% for contact in site.data.menu.menu_contacts %}
|
17
17
|
|
18
|
-
<a href="{{ contact.url }}" target="{{ contact.target }}">
|
18
|
+
<a href="{{ contact.url | relative_url }}" target="{{ contact.target }}">
|
19
19
|
<i class="{{ contact.faicon }}"></i>
|
20
20
|
</a>
|
21
21
|
{% endfor %}
|
22
22
|
</div>
|
23
23
|
</aside>
|
24
|
+
|
24
25
|
{% else %}
|
25
26
|
|
26
27
|
<aside class="menu">
|
27
28
|
<div class="menu-top">
|
28
29
|
<div class="profile">
|
29
30
|
<div class="avatar">
|
30
|
-
<a href="/about.html" alt="avatar">
|
31
|
-
<img src="{{ site.data.menu.menu_logo }}" alt="avatar" onerror="this.style.display='none'">
|
31
|
+
<a href="{{ '/about.html' | relative_url }}" alt="avatar">
|
32
|
+
<img src="{{ site.data.menu.menu_logo | relative_url }}" alt="avatar" onerror="this.style.display='none'">
|
32
33
|
</a>
|
33
34
|
</div>
|
34
35
|
<h1>{{ site.data.menu.menu_title }}</h1>
|
@@ -39,8 +40,8 @@
|
|
39
40
|
<ul class="navigation">
|
40
41
|
{% for menu_item in site.data.menu.menu_pages %}
|
41
42
|
<li>
|
42
|
-
<a href="{{ menu_item.url }}">
|
43
|
-
|
43
|
+
<a href="{{ menu_item.url | relative_url }}" category="{{ menu_item.category }}" title="{{ menu_item.tooltip }}">
|
44
|
+
<i class="{{ menu_item.icon_name }}"> </i>
|
44
45
|
<span>{{ menu_item.title }}</span>
|
45
46
|
</a>
|
46
47
|
</li>
|
@@ -50,7 +51,7 @@
|
|
50
51
|
<div class="menu-contact">
|
51
52
|
{% for contact in site.data.menu.menu_contacts %}
|
52
53
|
|
53
|
-
<a href="{{ contact.url }}" target="{{ contact.target }}">
|
54
|
+
<a href="{{ contact.url | relative_url }}" target="{{ contact.target }}">
|
54
55
|
<i class="{{ contact.faicon }}"></i>
|
55
56
|
</a>
|
56
57
|
{% endfor %}
|
@@ -3,14 +3,19 @@ layout: default
|
|
3
3
|
---
|
4
4
|
<div class="content-container category-aggregator {{ page.category }}">
|
5
5
|
<h1>{{ page.title }}</h1>
|
6
|
+
<p>{{ page.summary }}</p>
|
6
7
|
{{content}}
|
7
|
-
<hr>
|
8
|
+
<hr class="content-separator">
|
8
9
|
{% for post in site.posts %}
|
9
10
|
{% if post.category == page.category %}
|
10
11
|
<article>
|
11
12
|
<header>
|
12
13
|
<h2>
|
13
|
-
|
14
|
+
{% if post.external_url %}
|
15
|
+
<a href="{{ post.external_url | relative_url }}" target="_blank">
|
16
|
+
{% else %}
|
17
|
+
<a href="{{ post.url | relative_url }}">
|
18
|
+
{% endif %}
|
14
19
|
<i class="fas fa-angle-right"></i>
|
15
20
|
{{ post.title }}
|
16
21
|
</a>
|
@@ -22,6 +27,18 @@ layout: default
|
|
22
27
|
{{ post.summary }}
|
23
28
|
</p>
|
24
29
|
</section>
|
30
|
+
<span class="article-read">
|
31
|
+
{% if post.external_url %}
|
32
|
+
<a href="{{ post.external_url | relative_url }}" target="_blank">
|
33
|
+
{% else %}
|
34
|
+
<a href="{{ post.url | relative_url }}">
|
35
|
+
{% endif %} {% if post.external_name %}
|
36
|
+
Read more on {{ post.external_name }} →
|
37
|
+
{% else %}
|
38
|
+
Read more →
|
39
|
+
{% endif %}
|
40
|
+
</a>
|
41
|
+
</span>
|
25
42
|
<hr>
|
26
43
|
</article>
|
27
44
|
{% endif %}
|
data/_layouts/default.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
<!doctype html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
|
5
|
-
<title>{{ page.title }}</title>
|
6
|
-
<link rel="stylesheet" href="/assets/styles/styles.css">
|
7
|
-
<script src="https://kit.fontawesome.com/79c31398dc.js" crossorigin="anonymous"></script>
|
8
|
-
<script src="/assets/scripts/main.js" crossorigin="anonymous"></script>
|
4
|
+
{% include common-head.html %}
|
9
5
|
</head>
|
6
|
+
{% if site.data.menu.minimal_menu %}
|
7
|
+
<body class="is-minimal-menu" >
|
8
|
+
{% else %}
|
10
9
|
<body>
|
11
|
-
|
10
|
+
{% endif %}
|
11
|
+
{% include menu.html %}
|
12
12
|
<main class="content-layout">
|
13
13
|
{{ content }}
|
14
14
|
{% include footer.html %}
|
data/_layouts/home.html
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
<!doctype html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
|
5
|
-
<title>{{ page.title }}</title>
|
6
|
-
<link rel="stylesheet" href="/assets/styles/styles.css">
|
7
|
-
<script src="https://kit.fontawesome.com/79c31398dc.js" crossorigin="anonymous"></script>
|
4
|
+
{% include common-head.html %}
|
8
5
|
<script>
|
9
6
|
{% include home.js %}
|
10
7
|
</script>
|
11
8
|
</head>
|
9
|
+
{% if site.data.menu.minimal_menu and site.data.menu.show_menu_on_category_select %}
|
10
|
+
<body class="is-minimal-menu" >
|
11
|
+
{% else %}
|
12
12
|
<body>
|
13
|
+
{% endif %}
|
13
14
|
{% if site.data.menu.show_menu_on_category_select %}
|
14
15
|
{% include menu.html %}
|
15
16
|
<main class="content-layout">
|
@@ -19,8 +20,8 @@
|
|
19
20
|
<div class="home">
|
20
21
|
{% for menu_item in site.data.menu.menu_pages %}
|
21
22
|
{% if menu_item.show_on_home %}
|
22
|
-
<a href="{{ menu_item.url }}" class="category-container">
|
23
|
-
<div class="category" style="background-image: url('{{ menu_item.image_url }}')"></div>
|
23
|
+
<a href="{{ menu_item.url | relative_url }}" class="category-container">
|
24
|
+
<div class="category" style="background-image: url('{{ menu_item.image_url | relative_url}}')"></div>
|
24
25
|
<p>
|
25
26
|
{{ menu_item.title }}
|
26
27
|
</p>
|
data/_layouts/post.html
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
<div class="
|
5
|
-
|
6
|
-
|
4
|
+
<div class="post">
|
5
|
+
{% if page.image %}
|
6
|
+
<figure>
|
7
|
+
<img src="{{ page.image | relative_url }}"/>
|
8
|
+
</figure>
|
9
|
+
{% endif %}
|
10
|
+
<div class="content-container {{ page.category }}">
|
11
|
+
<h1>{{ page.title }}</h1>
|
12
|
+
{{content}}
|
13
|
+
</div>
|
7
14
|
</div>
|
@@ -2,19 +2,38 @@
|
|
2
2
|
color: $p_dark;
|
3
3
|
a {
|
4
4
|
color: $secondary;
|
5
|
+
&:hover {
|
6
|
+
color: darken($secondary, 10%);
|
7
|
+
}
|
5
8
|
}
|
6
9
|
hr {
|
7
10
|
border: 0;
|
8
11
|
height: 0;
|
9
12
|
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
10
13
|
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
|
14
|
+
margin: $gap auto $gap * 0.5 auto;
|
11
15
|
}
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
article {
|
17
|
+
position: relative;
|
18
|
+
.article-date {
|
19
|
+
font-weight: 700;
|
20
|
+
padding-left: 18px;
|
21
|
+
font-style: italic;
|
22
|
+
margin-top: -0.6em;
|
23
|
+
color: rgba(0, 0, 0, 0.4);
|
24
|
+
font-size: 0.9em;
|
25
|
+
}
|
26
|
+
.article-read {
|
27
|
+
position: absolute;
|
28
|
+
right: 10px;
|
29
|
+
font-size: 0.8em;
|
30
|
+
bottom: 0;
|
31
|
+
}
|
15
32
|
}
|
16
33
|
section {
|
17
34
|
p {
|
35
|
+
width: 90%;
|
36
|
+
line-height: 1.7em;
|
18
37
|
padding-left: 18px;
|
19
38
|
}
|
20
39
|
}
|
data/_sass/styles/_defaults.scss
CHANGED
@@ -1,36 +1,59 @@
|
|
1
|
-
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
|
2
|
-
|
3
1
|
h1 {
|
4
2
|
text-transform: uppercase;
|
5
3
|
font-weight: 700;
|
6
4
|
text-rendering: optimizeLegibility;
|
7
|
-
line-height: 1.1;
|
8
5
|
color: inherit;
|
9
6
|
text-align: center;
|
10
|
-
|
11
|
-
font-size: 4em;
|
7
|
+
font-size: 2.5em;
|
12
8
|
letter-spacing: -1px;
|
9
|
+
margin: 1em 50px 1em;
|
13
10
|
}
|
14
11
|
|
15
|
-
h2 {
|
12
|
+
h2, h2 a {
|
16
13
|
font-weight: 700;
|
17
|
-
font-size: 1.
|
14
|
+
font-size: 1.4em;
|
15
|
+
line-height: 1.4em;
|
18
16
|
color: $secondary;
|
19
17
|
}
|
20
18
|
|
21
|
-
|
19
|
+
* {
|
20
|
+
padding: 0;
|
21
|
+
margin: 0;
|
22
|
+
box-sizing: border-box;
|
23
|
+
line-height: 1.7em;
|
24
|
+
}
|
25
|
+
body {
|
26
|
+
font-size: 16px;
|
22
27
|
color: $base-white;
|
23
|
-
font-family:
|
28
|
+
font-family: forma-djr-micro,Arial,sans-serif;
|
24
29
|
}
|
25
30
|
main {
|
26
31
|
.content-container {
|
27
32
|
margin: 0px auto;
|
28
33
|
max-width: 960px;
|
34
|
+
width: 90%;
|
29
35
|
padding: 0px 18px 24px;
|
30
36
|
flex-grow: 1;
|
37
|
+
|
38
|
+
.content-separator {
|
39
|
+
margin: $gap auto;
|
40
|
+
}
|
31
41
|
}
|
32
42
|
}
|
33
43
|
a {
|
34
44
|
text-decoration-line: none;
|
35
45
|
color: inherit;
|
46
|
+
}
|
47
|
+
|
48
|
+
a, p, li {
|
49
|
+
font-size: 1.1em;
|
50
|
+
}
|
51
|
+
|
52
|
+
@include mobile {
|
53
|
+
body {
|
54
|
+
font-size: 13px;
|
55
|
+
}
|
56
|
+
h1 {
|
57
|
+
font-size: 2em;
|
58
|
+
}
|
36
59
|
}
|
data/_sass/styles/_home.scss
CHANGED
data/_sass/styles/_index.scss
CHANGED
data/_sass/styles/_layout.scss
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
main {
|
3
2
|
background-color: $main-bg-color;
|
4
3
|
color: black;
|
@@ -34,4 +33,16 @@ footer {
|
|
34
33
|
p {
|
35
34
|
margin: 0;
|
36
35
|
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.is-minimal-menu {
|
39
|
+
main {
|
40
|
+
width: $content-width-desktop-minimal-menu;
|
41
|
+
left: $minimal-menu-size;
|
42
|
+
@include mobile {
|
43
|
+
top: $minimal-menu-size;
|
44
|
+
left: 0;
|
45
|
+
width: 100%;
|
46
|
+
}
|
47
|
+
}
|
37
48
|
}
|
data/_sass/styles/_menu.scss
CHANGED
@@ -33,7 +33,6 @@
|
|
33
33
|
padding: 3px 10px 3px 10px;
|
34
34
|
}
|
35
35
|
}
|
36
|
-
|
37
36
|
ul {
|
38
37
|
@include mobile {
|
39
38
|
display: flex;
|
@@ -54,27 +53,32 @@
|
|
54
53
|
justify-content: center;
|
55
54
|
letter-spacing: 1px;
|
56
55
|
line-height: 28px;
|
57
|
-
|
58
|
-
text-decoration: underline;
|
56
|
+
&:hover {
|
59
57
|
font-weight: 900;
|
60
58
|
color: $p_lighter;
|
61
59
|
|
62
60
|
}
|
63
61
|
&.selected {
|
64
62
|
color: $s_lighter;
|
65
|
-
:hover {
|
66
|
-
color: $primary;
|
67
|
-
}
|
68
63
|
}
|
69
64
|
@include mobile {
|
70
65
|
height: calc(#{$menu-size} - 10px);
|
71
66
|
width: $menu-size;
|
72
67
|
font-size: 30px;
|
73
68
|
}
|
69
|
+
|
70
|
+
i {
|
71
|
+
margin-right: 5px;
|
72
|
+
}
|
74
73
|
}
|
75
74
|
}
|
76
75
|
}
|
77
76
|
|
77
|
+
h1 {
|
78
|
+
font-size: 2em;
|
79
|
+
margin: 0.5em;
|
80
|
+
}
|
81
|
+
|
78
82
|
h2 {
|
79
83
|
color: darken($color: $s_text, $amount: 25);
|
80
84
|
font-weight: 400;
|
@@ -84,18 +88,26 @@
|
|
84
88
|
|
85
89
|
|
86
90
|
&-contact {
|
87
|
-
@include mobile{
|
88
|
-
a {
|
89
|
-
margin-top: 8px;
|
90
|
-
height: calc(#{$menu-size} - 10px);
|
91
|
-
width: calc(#{$menu-size} - 10px);
|
92
|
-
font-size: 30px;
|
93
|
-
}
|
94
|
-
}
|
95
91
|
display:flex;
|
96
92
|
justify-content:center;
|
97
93
|
margin-bottom: 20px;
|
98
94
|
flex-wrap: wrap;
|
95
|
+
@include mobile{
|
96
|
+
font-size: 16px;
|
97
|
+
max-height: $menu-size;
|
98
|
+
margin-bottom: 0;
|
99
|
+
display: inline-grid;
|
100
|
+
grid-template-rows: 50% 50%;
|
101
|
+
a:nth-child(odd) {
|
102
|
+
grid-row-start: 1;
|
103
|
+
}
|
104
|
+
a:nth-child(even) {
|
105
|
+
grid-row-start: 2;
|
106
|
+
}
|
107
|
+
a:nth-child(odd):last-child {
|
108
|
+
margin-top: 13px;
|
109
|
+
}
|
110
|
+
}
|
99
111
|
a {
|
100
112
|
color: $p_lighter;
|
101
113
|
cursor:pointer;
|
@@ -104,8 +116,31 @@
|
|
104
116
|
user-select:none;
|
105
117
|
margin-left: 4px;
|
106
118
|
margin-right: 4px;
|
107
|
-
|
108
|
-
color: $
|
119
|
+
&:hover {
|
120
|
+
color: $p_lightest;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
.is-minimal-menu {
|
127
|
+
.menu {
|
128
|
+
width: $minimal-menu-size;
|
129
|
+
@include mobile {
|
130
|
+
height: $minimal-menu-size;
|
131
|
+
width: 100%;
|
132
|
+
}
|
133
|
+
ul {
|
134
|
+
li {
|
135
|
+
a {
|
136
|
+
i {
|
137
|
+
margin: 0;
|
138
|
+
}
|
139
|
+
@include mobile {
|
140
|
+
height: calc(#{$minimal-menu-size} - 10px);
|
141
|
+
width: $minimal-menu-size;
|
142
|
+
}
|
143
|
+
}
|
109
144
|
}
|
110
145
|
}
|
111
146
|
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
.post {
|
2
|
+
font-size: 1.2em;
|
3
|
+
a {
|
4
|
+
text-decoration-line: none;
|
5
|
+
color: $secondary;
|
6
|
+
&:hover {
|
7
|
+
text-decoration: underline;
|
8
|
+
font-weight: 500;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
.language-plaintext, .language-shell, .language-html {
|
12
|
+
border-radius: 3px;
|
13
|
+
padding: 1px 3px;
|
14
|
+
background-color:rgb(228, 230, 232);
|
15
|
+
}
|
16
|
+
figure {
|
17
|
+
margin: 0;
|
18
|
+
width: 100%;
|
19
|
+
img {
|
20
|
+
width: 100%;
|
21
|
+
background-repeat: no-repeat;
|
22
|
+
background-size: cover;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
p, ul {
|
26
|
+
margin-bottom: $gap * .5;
|
27
|
+
margin-top: $gap * .5;
|
28
|
+
}
|
29
|
+
ul {
|
30
|
+
display: block;
|
31
|
+
list-style-type: disc;
|
32
|
+
margin-block-start: 1em;
|
33
|
+
margin-block-end: 1em;
|
34
|
+
margin-inline-start: 0px;
|
35
|
+
margin-inline-end: 0px;
|
36
|
+
padding-inline-start: 40px;
|
37
|
+
}
|
38
|
+
li {
|
39
|
+
display: list-item;
|
40
|
+
}
|
41
|
+
}
|
data/_sass/variables/_index.scss
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
-
$content-width-desktop: calc(100% - #{$menu-size});
|
2
1
|
$tablet-width: 768px;
|
3
2
|
$desktop-width: 1024px;
|
3
|
+
$menu-size: 200px;
|
4
|
+
$minimal-menu-size: 50px;
|
5
|
+
$gap: 30px;
|
6
|
+
|
7
|
+
$content-width-desktop: calc(100% - #{$menu-size});
|
8
|
+
$content-width-desktop-minimal-menu: calc(100% - #{$minimal-menu-size});
|
4
9
|
@mixin tablet {
|
5
10
|
@media only screen and (min-width: #{$tablet-width}) and (max-width: #{$desktop-width - 1px}) {
|
6
11
|
@content;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
@mixin tooltip {
|
2
|
+
position: relative;
|
3
|
+
&:hover .tooltip {
|
4
|
+
visibility: visible;
|
5
|
+
opacity: 1;
|
6
|
+
}
|
7
|
+
& .tooltip {
|
8
|
+
visibility: hidden;
|
9
|
+
width: 120px;
|
10
|
+
background-color: #555;
|
11
|
+
color: #fff;
|
12
|
+
text-align: center;
|
13
|
+
border-radius: 6px;
|
14
|
+
padding: 5px 0;
|
15
|
+
position: absolute;
|
16
|
+
z-index: 1;
|
17
|
+
bottom: 100%;
|
18
|
+
left: 50%;
|
19
|
+
margin-left: -60px;
|
20
|
+
opacity: 0;
|
21
|
+
transition: opacity 0.3s;
|
22
|
+
font-size: 14px;
|
23
|
+
&::after {
|
24
|
+
content: "";
|
25
|
+
position: absolute;
|
26
|
+
top: 100%;
|
27
|
+
left: 50%;
|
28
|
+
margin-left: -5px;
|
29
|
+
border-width: 5px;
|
30
|
+
border-style: solid;
|
31
|
+
border-color: #555 transparent transparent transparent;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
Binary file
|
Binary file
|
Binary file
|
data/assets/styles/styles.scss
CHANGED
data/pages/about.html
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
---
|
2
2
|
layout: post
|
3
3
|
title: About
|
4
|
-
permalink:
|
4
|
+
permalink: about.html
|
5
5
|
category: about
|
6
6
|
|
7
7
|
---
|
8
8
|
<div class="profile">
|
9
9
|
<div class="avatar">
|
10
|
-
<a href="
|
10
|
+
<a href="about.html" alt="avatar">
|
11
11
|
<img src="{{ site.data.metaData.avatar_url }}" alt="avatar" onerror="this.style.display='none'">
|
12
12
|
</a>
|
13
13
|
</div>
|
14
|
-
<h1>{{ site.data.menu.menu_title }}</h1>
|
15
14
|
<h2>{{ site.data.menu.menu_headline }}</h2>
|
16
15
|
<p>{{ site.data.menu.menu_intro }}</p>
|
17
16
|
</div>
|
data/pages/category-1.html
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
|
-
layout: category-aggregator
|
3
2
|
title: Category 1
|
4
|
-
|
3
|
+
layout: category-aggregator
|
4
|
+
permalink: category-1.html
|
5
5
|
category: category-1
|
6
|
+
summary: Summary of a category. It is just a special placeholder wrapped in a particular class, so it looks more interesting. You can always make your own layout for a category, or make a category.html look the way you want.
|
6
7
|
---
|
7
8
|
|
8
|
-
Here I'm posting about software engineering. You can find updates on projects I am working on as well as my writings devoted to the technical aspect.
|
9
|
-
All my open-source repositories are available on my <a href="https://github.com/ItsMeaga1n" target="_blank">GitHub account</a>.
|
data/pages/category-2.html
CHANGED
@@ -1,9 +1,16 @@
|
|
1
1
|
---
|
2
|
-
layout: category-aggregator
|
3
2
|
title: Category 2
|
4
3
|
layout: category-aggregator
|
5
|
-
permalink:
|
4
|
+
permalink: category-2.html
|
6
5
|
category: category-2
|
7
6
|
---
|
8
7
|
|
9
|
-
|
8
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse efficitur turpis nec tortor sagittis, in tincidunt lectus iaculis. Sed tempor ligula ac nulla dictum, quis luctus tortor pretium. Suspendisse vitae nibh id sapien tempus posuere eu id ante. Fusce nec neque nisl. Suspendisse velit elit, euismod et lacus a, commodo mollis ligula. Duis non nibh gravida, interdum tellus sed, aliquam libero. Ut et tempor velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
|
9
|
+
|
10
|
+
Maecenas egestas eu nulla sed facilisis. Phasellus suscipit varius nibh, nec pharetra velit dignissim vel. Proin eget sapien nec massa ornare ornare. Vestibulum mattis placerat sapien, vel cursus est pretium nec. Sed at est eget enim semper scelerisque. Proin massa massa, luctus vel ante nec, dignissim molestie leo. Nulla auctor et ligula nec mollis. Fusce lectus lorem, hendrerit et metus suscipit, molestie commodo eros.
|
11
|
+
|
12
|
+
Aliquam tempor porttitor mi. Aliquam et sapien faucibus, mattis purus sed, malesuada urna. Ut eget enim urna. Duis tempus est vel tincidunt luctus. Nunc commodo ante nec orci scelerisque, eu lobortis massa fermentum. Nunc sagittis eros at sapien volutpat aliquet. Donec posuere efficitur laoreet. Ut ornare tellus ut ipsum hendrerit, vitae varius ante pharetra. Suspendisse fringilla leo erat, dignissim auctor ex ultrices a. Sed ultrices blandit eros. Pellentesque volutpat ultrices sem, vel semper enim fermentum eu. Nulla eget eros ipsum. Sed hendrerit et arcu vitae pulvinar. Vivamus facilisis, eros eu gravida rhoncus, enim felis suscipit leo, vitae lacinia magna nisl hendrerit est. Cras eget blandit ante. Aenean tincidunt blandit lacus, vitae porta ipsum viverra et.
|
13
|
+
|
14
|
+
Proin urna lorem, pulvinar quis orci non, accumsan pharetra erat. Aliquam vulputate aliquam tellus, ac sollicitudin nibh fermentum in. Sed malesuada nisl mi, vitae lobortis massa pretium ut. Nunc risus diam, consectetur non congue sed, rutrum eu eros. Integer sed aliquet sapien, a porttitor ex. Nam sed auctor augue, vitae cursus arcu. Donec vehicula viverra scelerisque.
|
15
|
+
|
16
|
+
Duis quis mattis eros, gravida convallis dui. Nullam venenatis nisi mauris, eu consequat purus fermentum non. Suspendisse libero ipsum, tristique non efficitur ultrices, fringilla vulputate purus. Nullam laoreet lacus non sapien euismod, in viverra augue feugiat. Integer congue varius risus at cursus. Aenean tincidunt arcu vitae massa eleifend porta. Nullam facilisis eros rhoncus metus tincidunt tempus. Maecenas viverra urna mi, id rhoncus lectus aliquet maximus. Pellentesque vulputate turpis ut nulla lobortis, at ullamcorper sem sodales. Phasellus fringilla neque ut libero condimentum fermentum. Sed lobortis, felis mollis porta lacinia, nibh neque maximus ante, non eleifend dolor nunc dictum velit. Sed lacinia ut quam et dapibus.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimal-categorized
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patryk Bieszke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -31,11 +31,13 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- 404.html
|
34
35
|
- LICENSE.txt
|
35
36
|
- README.md
|
36
37
|
- _config.yml
|
37
38
|
- _data/menu.yml
|
38
39
|
- _data/metaData.yml
|
40
|
+
- _includes/common-head.html
|
39
41
|
- _includes/footer.html
|
40
42
|
- _includes/home.js
|
41
43
|
- _includes/menu.html
|
@@ -50,15 +52,20 @@ files:
|
|
50
52
|
- _sass/styles/_index.scss
|
51
53
|
- _sass/styles/_layout.scss
|
52
54
|
- _sass/styles/_menu.scss
|
55
|
+
- _sass/styles/_post.scss
|
53
56
|
- _sass/styles/_profile.scss
|
54
57
|
- _sass/variables/_colors.scss
|
55
58
|
- _sass/variables/_index.scss
|
56
59
|
- _sass/variables/_layout.scss
|
60
|
+
- _sass/variables/_mixins.scss
|
61
|
+
- assets/img/avatar.png
|
62
|
+
- assets/img/category-1.jpg
|
63
|
+
- assets/img/category-2.jpg
|
57
64
|
- assets/styles/styles.scss
|
58
65
|
- pages/about.html
|
59
66
|
- pages/category-1.html
|
60
67
|
- pages/category-2.html
|
61
|
-
homepage:
|
68
|
+
homepage: https://github.com/ItsMeaga1n/minimal-categorized
|
62
69
|
licenses:
|
63
70
|
- MIT
|
64
71
|
metadata: {}
|