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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 254566b40472ac659a9cb242c455510f34a8c65c99d6b3ca0ac8d2a226096a82
4
- data.tar.gz: db6b1f754708d8a9859e55423abff3951eac3e6352641172a2c55fb41cc38574
3
+ metadata.gz: 9591ce0b0bbe7d3236a3581de7173de19775687d92e18bc0e9ea5ecf4bdbe1e0
4
+ data.tar.gz: 656424f45f6b9b6f5a830abda82774fc7295aa9a08b4aceb995aa386a8a7b9e6
5
5
  SHA512:
6
- metadata.gz: 58ee131f70c612d2e4cd54d229b496d39989416144dfe546eaddd8dd30d933d0ded65d3213e7eaf9770133c40def0d9040d3c1c313d125225cfc432d3029c2ce
7
- data.tar.gz: b853214814738cfb4a85cf203df62223c708af8b715975e0a1a7b51a115d95ee0ba7865b42f3961ad48f6693a5642036449161acc75bc18cbe18598e39fa70d7
6
+ metadata.gz: 82a1a507aaa46a05a312ccbf00abf55811beba30c844c1b835b7481aa53512ac2b4e79c3d798e8cbe4a80cd4b685868840a32b8a399aa8df863d537f1b47109d
7
+ data.tar.gz: f4f6cb55b484fbdc1787cffec6ba1d16d12708d1427933520f39897aede1d3bc315aa709e481712c2fe0d70a518243e8aabcc11a1b357e1d467b59ff74fd8126
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ permalink: 404.html
4
+ ---
5
+
6
+ <div class="content-container">
7
+ <h1>404</h1>
8
+
9
+ <p><strong>Page not found :(</strong></p>
10
+ <p>The requested page could not be found.</p>
11
+ </div>
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
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
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
- To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
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
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
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 at https://github.com/[USERNAME]/hello. 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.
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
 
@@ -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
- theme: minimal-categorized
28
+ remote_theme: ItsMeaga1n/minimal-categorized
29
29
  # Exclude these files from production site
30
30
  exclude:
31
31
  - CHANGELOG.md
@@ -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: False
6
- menu_logo: assets/img/logo.jpg
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-cogs
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: /about.html
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
@@ -1,4 +1,2 @@
1
1
  author: Site Author
2
- avatar_url:
3
- twitter_username:
4
- github_username:
2
+ avatar_url: assets/img/avatar.png
@@ -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>
@@ -1,11 +1,11 @@
1
1
  {% if site.data.menu.minimal_menu %}
2
- <aside class="menu minimal">
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
- <!-- <i class="fa-fw fas fa-home ml-xl-3 mr-xl-3 unloaded"> </i> -->
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
- <a href="{{ post.permalink }}">
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 }} &rarr;
37
+ {% else %}
38
+ Read more &rarr;
39
+ {% endif %}
40
+ </a>
41
+ </span>
25
42
  <hr>
26
43
  </article>
27
44
  {% endif %}
@@ -1,14 +1,14 @@
1
1
  <!doctype html>
2
2
  <html>
3
3
  <head>
4
- <meta charset="utf-8">
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
- {% include menu.html %}
10
+ {% endif %}
11
+ {% include menu.html %}
12
12
  <main class="content-layout">
13
13
  {{ content }}
14
14
  {% include footer.html %}
@@ -1,15 +1,16 @@
1
1
  <!doctype html>
2
2
  <html>
3
3
  <head>
4
- <meta charset="utf-8">
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>
@@ -1,7 +1,14 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <div class="content-container post {{ page.category }}">
5
- <h1>{{ page.title }}</h1>
6
- {{content}}
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
- .article-date {
13
- font-weight: 700;
14
- padding-left: 18px;
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
  }
@@ -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
- margin: 30px 0;
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.5em;
14
+ font-size: 1.4em;
15
+ line-height: 1.4em;
18
16
  color: $secondary;
19
17
  }
20
18
 
21
- html {
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: 'Roboto', sans-serif;
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
  }
@@ -53,4 +53,12 @@
53
53
  }
54
54
  }
55
55
  }
56
+
57
+ @include mobile {
58
+ flex-direction: column;
59
+ a {
60
+ height: 50%;
61
+ width: 100%;
62
+ }
63
+ }
56
64
  }
@@ -3,4 +3,5 @@
3
3
  @import './layout';
4
4
  @import './home';
5
5
  @import './category-aggregator';
6
- @import './profile';
6
+ @import './profile';
7
+ @import "./post";
@@ -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
  }
@@ -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
- :hover {
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
- :hover {
108
- color: $primary;
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
+ }
@@ -1,2 +1,3 @@
1
1
  @import './colors';
2
- @import './layout';
2
+ @import './layout';
3
+ @import './mixins';
@@ -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
@@ -1,9 +1,4 @@
1
1
  ---
2
2
  ---
3
- {% if site.data.menu.minimal_menu %}
4
- $menu-size: 50px;
5
- {% else %}
6
- $menu-size: 200px;
7
- {% endif %}
8
3
 
9
- @import "{{ site.theme }}";
4
+ @import "minimal-categorized";
@@ -1,17 +1,16 @@
1
1
  ---
2
2
  layout: post
3
3
  title: About
4
- permalink: /about.html
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="/about.html" alt="avatar">
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>
@@ -1,9 +1,8 @@
1
1
  ---
2
- layout: category-aggregator
3
2
  title: Category 1
4
- permalink: /category-1.html
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>.
@@ -1,9 +1,16 @@
1
1
  ---
2
- layout: category-aggregator
3
2
  title: Category 2
4
3
  layout: category-aggregator
5
- permalink: /category-2.html
4
+ permalink: category-2.html
6
5
  category: category-2
7
6
  ---
8
7
 
9
- This site is still under development. Please come back later!
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.2
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-09-12 00:00:00.000000000 Z
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: http://127.0.0.1:4000/about.html
68
+ homepage: https://github.com/ItsMeaga1n/minimal-categorized
62
69
  licenses:
63
70
  - MIT
64
71
  metadata: {}