mavilam-minimal 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a26d2e1604a5c7e78349b784b097d3f8dc3a49b1
4
- data.tar.gz: 4ed576589cf32ee4f3a656b8eca43739ff2c3b97
3
+ metadata.gz: 3b4eadc200f0a47f8485a9f73db5751ad1ba8e17
4
+ data.tar.gz: e566df0abe31ebb918d1ba83e2c7173499ad63d0
5
5
  SHA512:
6
- metadata.gz: 50fb77d5caedb5f545a520aa09d65dd096048c93f1a4d05beece4c09c64e641c1b6629e60f6246d367ea5982f01defe44db697c229fae6dd0c7095088306f5ce
7
- data.tar.gz: ea120b2e6371cb30b32948578c11f941fa127afc04484c7da1c29527f55ad95541b510d0fd79b73b651ea2882da5b984f564fbc69c2ad03996c48e12de411fd4
6
+ metadata.gz: 4d9a26b0916a9d82ad0a73c01e7890910e581ace219bd6657dc3fadc708dd41d1d20aba22e59b162f6286177ae8326ce9c444ae91ace29e17ee25cac9938adc6
7
+ data.tar.gz: a55b28d381902925b8b0d8792c21a0cb55e96e4ce26149bc281ac25976f68d4bde35a6bc2d92be582837bc484f2a9143444592ad53ca88ddc11130d7ba4590df
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Miguel Ávila Monroy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # mavilam-minimal
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/mavilam-minimal.svg)](https://badge.fury.io/rb/mavilam-minimal)
4
+
5
+ mavilam-minimal is a simple theme for people that only cares main things and don't want distracting things
6
+
7
+
8
+ ## Installation
9
+
10
+ Add this line to your Jekyll site's `Gemfile`:
11
+
12
+ ```ruby
13
+ gem "mavilam-minimal"
14
+ ```
15
+
16
+ And add this line to your Jekyll site's `_config.yml`:
17
+
18
+ ```yaml
19
+ theme: mavilam-minimal
20
+ ```
21
+
22
+ And then execute:
23
+
24
+ $ bundle
25
+
26
+ Or install it yourself as:
27
+
28
+ $ gem install mavilam-minimal
29
+
30
+ ## Usage
31
+
32
+ It is very clean theme. For the initial visualization of the home add a greeting text to _config.yml, it will add a title with this text to the home page. To complete the web you have to add your desired pages and customized it with the layouts availables.
33
+ There are layouts to basic page (layout: page), feed (layout: feedpage) and feedpost (layout: post)
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mavilam/mavilam-minimal. 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.
38
+
39
+ ## Development
40
+
41
+ To set up your environment to develop this theme, run `bundle install`.
42
+
43
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
44
+
45
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
46
+ To add a custom directory to your theme-gem, please edit the regexp in `mavilam-minimal.gemspec` accordingly.
47
+
48
+ ## License
49
+
50
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ <meta charset="UTF-8">
2
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
3
+ <meta name="robots" content="index,follow">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+ <link rel="stylesheet" href="{{ "/assets/css/base.css" | prepend: site.baseurl }}">
6
+ <title>{{ site.title }}</title>
@@ -0,0 +1,12 @@
1
+ <style>
2
+ body {
3
+ bottom: 10;
4
+ left: 10;
5
+ }
6
+ </style>
7
+
8
+ <header class="header">
9
+ <div>
10
+ <a href="{{ site.baseurl }}/">← main page</a>
11
+ </div>
12
+ </header>
@@ -0,0 +1,8 @@
1
+ <!-- Renders post date, title, and snippet of text. -->
2
+ <div>
3
+ <a title="{{ post.url | prepend: site.baseurl }}" href="{{ post.url | prepend: site.baseurl }}">{{ post.date | date: "%b %-d, %Y" }}</a>
4
+ <h2>
5
+ <a title="{{ post.url | prepend: site.baseurl }}" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
6
+ </h2>
7
+ <p>{{ post.content | strip_html | truncatewords:30 }}</p>
8
+ </div>
@@ -0,0 +1,21 @@
1
+ <!-- Use if you want to show previous and next for all posts. -->
2
+ {% assign user_url = site.url | append: site.baseurl %}
3
+ {% assign full_base_url = user_url | default: site.github.url %}
4
+ {% if page.previous.url %}
5
+ <div class="nextPrevDiv">
6
+ <a href="{{ page.previous.url | prepend: full_base_url }}">
7
+ <span class="nextPrev">Previous</span>
8
+ <p>{{ page.previous.title }}</p>
9
+ <p class="preview">{{ page.previous.content | strip_html | truncatewords:20 }}</p>
10
+ </a>
11
+ </div>
12
+ {% endif %}
13
+ {% if page.next.url %}
14
+ <div class="nextPrevDiv">
15
+ <a href="{{ page.next.url | prepend: full_base_url }}">
16
+ <span class="nextPrev">Next</span>
17
+ <p>{{ page.next.title }}</p>
18
+ <p class="preview">{{ page.next.content | strip_html | truncatewords:20 }}</p>
19
+ </a>
20
+ </div>
21
+ {% endif %}
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include header.html %}
9
+
10
+ <div>
11
+ {{ content }}
12
+ </div>
13
+
14
+ </body>
15
+
16
+ </html>
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: home
3
+ ---
4
+ <article>
5
+ <header id="title">
6
+ <h1>{{ page.title }}</h1>
7
+ </header>
8
+ <div>
9
+ </div>
10
+ <div>
11
+ {{ content }}
12
+ </div>
13
+
14
+ <div>
15
+ {% for post in site.posts %}
16
+ {% include post_block.html %}
17
+ {% endfor %}
18
+ </div>
19
+
20
+ </article>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ {% include head.html %}
5
+ </head>
6
+ <body>
7
+ {% if page.url == "/" %}
8
+ {% else %}
9
+ {% include header.html %}
10
+ {% endif %}
11
+
12
+ <div class="contentDiv">
13
+ <h1>{{site.greeting}}</h1>
14
+ {{ content }}
15
+ </div>
16
+ </body>
17
+ </html>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: home
3
+ ---
4
+
5
+ <link rel="stylesheet" href="/assets/css/page.css">
6
+
7
+ <article >
8
+ <header id="title">
9
+ <h1>{{ page.title }}</h1>
10
+ </header>
11
+ <div>
12
+ {{ content }}
13
+ </div>
14
+
15
+ </article>
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: home
3
+ ---
4
+ <link rel="stylesheet" href="/assets/css/post.css">
5
+
6
+ <article itemscope itemtype="http://schema.org/BlogPosting">
7
+ <h1 itemprop="name headline">{{ page.title }}</h1>
8
+ <div >
9
+ <p><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time></p>
10
+ </div>
11
+
12
+ <div itemprop="articleBody">
13
+ {{ content }}
14
+ </div>
15
+
16
+ </article>
17
+
18
+ <div>
19
+ {% include previous-next.html %}
20
+ </div>
@@ -0,0 +1,99 @@
1
+ body {
2
+ background-color: #F7F7F7;
3
+ font-family: Bookman, helvetica, sans-serif;
4
+ color: #2e2e2e;
5
+ }
6
+
7
+ .contentDiv {
8
+ margin: 0 auto;
9
+ max-width: 500px;
10
+ padding: 3% 10% 0% 10%;
11
+ }
12
+
13
+ .header {
14
+ padding-left: 1em;
15
+ padding-top: 1em;
16
+ float: left;
17
+ }
18
+
19
+ p {
20
+ font-weight: 400;
21
+ font-size: 1.3em;
22
+ line-height: 1.4em;
23
+ text-align: left;
24
+ }
25
+
26
+ form {
27
+ color: #2e2e2e;
28
+ background-color: #F7F7F7;
29
+ }
30
+
31
+ h1 {
32
+ line-height: 1em;
33
+ font-size: 2.5em;
34
+ }
35
+
36
+ a:link {
37
+ text-decoration: none;
38
+ color: #00b760;
39
+ }
40
+
41
+ a:visited {
42
+ text-decoration: none;
43
+ color: #5cd199;
44
+ }
45
+
46
+ a:hover {
47
+ text-decoration: none;
48
+ color: #00964f;
49
+ }
50
+
51
+ a:active {
52
+ text-decoration: none;
53
+ font-weight: bold;
54
+ }
55
+
56
+ ::selection {
57
+ background-color: #a2e4c5;
58
+ }
59
+
60
+ .nextPrevDiv {
61
+ border-top: 0.1em solid;
62
+ padding-top: 1em;
63
+ }
64
+
65
+ @media (prefers-color-scheme: dark) {
66
+ body {
67
+ color: #ffffff;
68
+ background-color: #404047;
69
+ }
70
+
71
+ form {
72
+ color: #ffffff;
73
+ background-color: #404047;
74
+ }
75
+
76
+ a:link {
77
+ text-decoration: none;
78
+ color: #8acb88;
79
+ }
80
+
81
+ a:visited {
82
+ text-decoration: none;
83
+ color: #bfe2be;
84
+ }
85
+
86
+ a:hover {
87
+ text-decoration: none;
88
+ color: #8bdeb6;
89
+ }
90
+
91
+ a:active {
92
+ text-decoration: none;
93
+ font-weight: bold;
94
+ }
95
+
96
+ ::selection {
97
+ background-color: #71a770;
98
+ }
99
+ }
@@ -0,0 +1,26 @@
1
+ h1 {
2
+ line-height: 1em;
3
+ font-size: 3.5em;
4
+ text-decoration: line-through;
5
+ text-decoration-color: #00b760;
6
+ }
7
+
8
+ body {
9
+ font-size: 1.1em;
10
+ }
11
+
12
+ p {
13
+ font-weight: 400;
14
+ font-size: 1.1em;
15
+ line-height: 1.4em;
16
+ text-align: left;
17
+ }
18
+
19
+ @media (prefers-color-scheme: dark) {
20
+ h1 {
21
+ line-height: 1em;
22
+ font-size: 3.5em;
23
+ text-decoration: line-through;
24
+ text-decoration-color: #8acb88;
25
+ }
26
+ }
@@ -0,0 +1,25 @@
1
+ .contentDiv {
2
+ max-width: 85%;
3
+ padding-bottom: 3%;
4
+ }
5
+
6
+ h1 {
7
+ line-height: 1em;
8
+ font-size: 3.5em;
9
+ text-decoration: line-through;
10
+ text-decoration-color: #00b760;
11
+ }
12
+
13
+ .nextPrev {
14
+ font-style: italic;
15
+ }
16
+
17
+ .preview {
18
+ color: #a2e4c5;
19
+ }
20
+
21
+ @media (prefers-color-scheme: dark) {
22
+ .preview {
23
+ color: ##8bdeb6;
24
+ }
25
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mavilam-minimal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Ávila Monroy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-11 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -58,7 +58,21 @@ email:
58
58
  executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
- files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/head.html
65
+ - _includes/header.html
66
+ - _includes/post_block.html
67
+ - _includes/previous-next.html
68
+ - _layouts/default.html
69
+ - _layouts/feedpage.html
70
+ - _layouts/home.html
71
+ - _layouts/page.html
72
+ - _layouts/post.html
73
+ - assets/css/base.css
74
+ - assets/css/page.css
75
+ - assets/css/post.css
62
76
  homepage: https://mavilam.github.io
63
77
  licenses:
64
78
  - MIT