minduim 1.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: be2ba5c0915ec57fe99fe4568551996904465352c0c41eb8b741dfdd9a6788b3
4
+ data.tar.gz: 0a9ef0db120677259b034dd7df18998c69ce2c9f9315fbfce94d0d268c66ab2a
5
+ SHA512:
6
+ metadata.gz: a2913210a0e4e5aa09500766a53b9ba5aaaa7ff6862e0067c3d905b9af6307c5d0b7436528b38c45812f54497d0ef901cbea703a7b144405d3665337bb14f91f
7
+ data.tar.gz: ee07b17bd25cc174744c5aa948c31d03d84a539050b5448b91e6cd3101ff71412aa801ab633389f053ff571c47303a0325f869823cccf58f8518cea65d1f18f9
data/_config.yml ADDED
@@ -0,0 +1,72 @@
1
+ title: Minduim
2
+ description: >-
3
+ This is a theme for a Jekyll blog.
4
+
5
+ logo: https://picsum.photos/300/300
6
+ lang: pt-BR
7
+ timezone: America/Sao_Paulo
8
+
9
+ permalink: /:year/:month/:title.html
10
+ slug_mode: latin
11
+
12
+ plugins:
13
+ - jekyll-archives
14
+ - jekyll-feed
15
+ - jekyll-json-feed
16
+ - jekyll-paginate
17
+ - jekyll-seo-tag
18
+ - jekyll-sitemap
19
+
20
+ # Theme Options
21
+ minduim:
22
+ date_formats:
23
+ day: "%v"
24
+ month: "%B, %Y"
25
+ year: "%Y"
26
+ translations:
27
+ jump_to_navigation: "Go to navigation"
28
+ jump_to_content: "Go to content"
29
+ archive_date_title: "Posts from %s" # don't forget `%s`, it will be replaced by the date
30
+ archive_tag_title: "Posts with the tag “%s”" # don't forget `%s`, it will be replaced by the tag name.
31
+ archive_category_title: "Posts filed under “%s”" # don't forget `%s`, it will be replaced by the category name.
32
+ post_tagged_with: "Tagged with:"
33
+ blog_pagination_title: "Blog Pagination"
34
+ blog_pagination_next_page: "Older posts →"
35
+ blog_pagination_prev_page: "← Newer posts"
36
+
37
+ # Menus
38
+ main_menu:
39
+ title: Navigate
40
+ items:
41
+ - label: About
42
+ url: /about/
43
+ - label: Bugs?
44
+ url: https://github.com/arthrfrts/minduim/issues
45
+ external: true
46
+
47
+ footer_menu:
48
+ title: Social
49
+ items:
50
+ - label: Feed
51
+ url: /feed.xml
52
+ - label: JSON Feed
53
+ url: /feed.json
54
+ - label: GitHub
55
+ url: https://github.com/arthrfrts/minduim
56
+ external: true
57
+
58
+ # Plugin: jekyll-paginate
59
+ paginate: 6
60
+ paginate_path: "/page/:num/"
61
+
62
+ # Plugin: jekyll-archives
63
+ jekyll-archives:
64
+ enabled:
65
+ - year
66
+ - month
67
+ - tags
68
+ layout: archive
69
+ permalinks:
70
+ year: "/:year/"
71
+ month: "/:year/:month/"
72
+ tag: "/tags/:name.html"
@@ -0,0 +1,16 @@
1
+ <footer class="site-footer">
2
+ {% if site.footer_menu %}
3
+ <nav class="footer-menu" aria-label="{{ site.footer_menu.title }}">
4
+ {% for item in site.footer_menu.items %}
5
+ <a class="menu-item" href="{{ item.url }}" {% if item.external %}target="_blank"{% endif %}>
6
+ {{- item.label -}}
7
+ </a>
8
+ {% endfor %}
9
+ </nav>
10
+ {% endif %}
11
+
12
+ <p>
13
+ <strong><a href="{{ '/' | absolute_url }}">{{ site.title }}</a></strong>
14
+ &mdash; {{ site.description }}
15
+ </p>
16
+ </footer>
@@ -0,0 +1,31 @@
1
+ {%- capture site_branding -%}
2
+ <a class="site-branding" href="{{ '/' | absolute_url }}">
3
+ {%- if site.logo -%}
4
+ <img class="site-logo" src="{{ site.logo | absolute_url }}" alt="{{ site.title }}" role="presentation" />
5
+ {%- endif -%}
6
+
7
+ {{ site.title -}}
8
+ </a>
9
+ {%- endcapture -%}
10
+
11
+ <header class="site-header">
12
+ {% if page.title and page.title != "" %}
13
+ <span class="site-title">
14
+ {{ site_branding }}
15
+ </span>
16
+ {% else %}
17
+ <h1 class="site-title">
18
+ {{ site_branding }}
19
+ </h1>
20
+ {% endif %}
21
+
22
+ {% if site.main_menu %}
23
+ <nav class="main-menu" aria-label="{{ site.main_menu.title }}">
24
+ {% for item in site.main_menu.items %}
25
+ <a class="menu-item" href="{{ item.url }}" {% if item.external %}target="_blank"{% endif %}>
26
+ {{- item.label -}}
27
+ </a>
28
+ {% endfor %}
29
+ </nav>
30
+ {% endif %}
31
+ </header>
@@ -0,0 +1,25 @@
1
+ <article class="post">
2
+ {% if include.post.title and include.post.title != "" %}
3
+ <h2 class="post-title">
4
+ <a href="{{ include.post.url | relative_url }}">
5
+ {{ include.post.title }}
6
+ </a>
7
+ </h2>
8
+ {% endif %}
9
+
10
+ <div class="post-content">
11
+ {% if include.show_excerpts %}
12
+ {{ include.post.excerpt }}
13
+ {% else %}
14
+ {{ include.post.content }}
15
+ {% endif %}
16
+ </div>
17
+
18
+ <footer class="post-footer">
19
+ <a class="post-meta _permalink" href="{{ include.post.url | absolute_url }}" rel="bookmark">
20
+ <time class="_date" datetime="{{ include.post.date | date_to_xmlschema }}">
21
+ {{- include.post.date | date: site.minduim.date_formats.day -}}
22
+ </time>
23
+ </a>
24
+ </footer>
25
+ </article>
@@ -0,0 +1,31 @@
1
+ {% comment %}
2
+ Sidebar
3
+
4
+ You can add custom widgets to the sidebar of your site by sending
5
+ both title and contents of your widget through an include. For example:
6
+
7
+ {% capture widget_content %}
8
+ <p>This will appear in my sidebar!</p>
9
+ {% endcapture %}
10
+
11
+ {% assign widget_title = "This is an example" %}
12
+
13
+ {% include blog/widget.html title=widget_title content=widget_content %}
14
+ {% endcomment %}
15
+
16
+ {% assign blogroll_title = "Useful links" %}
17
+
18
+ {% capture blogroll_content %}
19
+ <dl>
20
+ <dt>
21
+ <a href="https://arthr.me/" target="_blank">Arthur Freitas</a>
22
+ </dt>
23
+ <dd>The author of this theme.</dd>
24
+ <dt>
25
+ <a href="https://github.com/arthrfrts/minduim" target="_blank">GitHub Repo</a>
26
+ </dt>
27
+ <dd>Report issues, read the documentation and help with development!</dd>
28
+ </dl>
29
+ {% endcapture %}
30
+
31
+ {%- include widget.html title=blogroll_title content=blogroll_content -%}
@@ -0,0 +1,5 @@
1
+ <aside class="widget">
2
+ <h2 class="widget-title">{{ include.title }}</h2>
3
+
4
+ <div class="widget-content">{{ include.content }}</div>
5
+ </aside>
@@ -0,0 +1,41 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="blog">
5
+ <h1 class="archive-title">
6
+ {%- if page.date -%}
7
+ {%- assign archive_date = page.date | date: site.minduim.date_formats[page.type] -%}
8
+ {{ site.minduim.translations.archive_date_title | replace: "%s", archive_date }}
9
+ {% else %}
10
+ {%- if page.type == "tag" -%}
11
+ {{ site.minduim.translations.archive_tag_title | replace: "%s", page.title }}
12
+ {%- else -%}
13
+ {{ site.minduim.translations.archive_category_title | replace: "%s", page.title }}
14
+ {%- endif -%}
15
+ {% endif %}
16
+ </h1>
17
+
18
+ {%- for post in page.posts -%}
19
+ {% include post.html post=post show_excerpts=true %}
20
+ {%- endfor -%}
21
+
22
+ {% if paginator.previous_page or paginator.next_page -%}
23
+ <nav class="blog-pagination" aria-label="{{ site.minduim.translations.blog_pagination_title }}">
24
+ <div class="pagination-links">
25
+ {% if paginator.previous_page -%}
26
+ <a class="prev-page menu-item" href="{{ paginator.previous_page_path | relative_url }}" rel="prev">
27
+ {{- site.minduim.translations.blog_pagination_prev_page -}}
28
+ </a>
29
+ {%- endif %}
30
+
31
+ {% if paginator.next_page -%}
32
+ <a class="next-page menu-item" href="{{ paginator.next_page_path | relative_url }}" rel="next">
33
+ {{- site.minduim.translations.blog_pagination_next_page -}}
34
+ </a>
35
+ {%- endif %}
36
+ </div>
37
+ </nav>
38
+ {%- endif %}
39
+ </div>
40
+
41
+ {% include sidebar.html %}
@@ -0,0 +1,35 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {%- assign posts = site.posts -%}
6
+
7
+ {%- if paginator.posts -%}
8
+ {%- assign posts = paginator.posts -%}
9
+ {%- endif -%}
10
+
11
+ <div class="blog">
12
+ {%- for post in posts -%}
13
+ {% include post.html post=post %}
14
+ {%- endfor -%}
15
+
16
+ {% if paginator.previous_page or paginator.next_page -%}
17
+ <nav class="blog-pagination" aria-label="{{ site.minduim.translations.blog_pagination_title }}">
18
+ {% if paginator.previous_page -%}
19
+ <a class="prev-page menu-item" href="{{ paginator.previous_page_path | relative_url }}" rel="prev">
20
+ {{- site.minduim.translations.blog_pagination_prev_page -}}
21
+ </a>
22
+ {%- endif %}
23
+
24
+ {% if paginator.next_page -%}
25
+ <a class="next-page menu-item" href="{{ paginator.next_page_path | relative_url }}" rel="next">
26
+ {{- site.minduim.translations.blog_pagination_next_page -}}
27
+ </a>
28
+ {%- endif %}
29
+ </nav>
30
+ {%- endif %}
31
+ </div>
32
+
33
+ <div class="sidebar">
34
+ {%- include sidebar.html -%}
35
+ </div>
@@ -0,0 +1,29 @@
1
+ <!doctype html>
2
+ <html lang="{{- page.lang | default: site.lang -}}">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ {% if page.title and page.title != "" -%}
7
+ <title>{{ page.title }} ({{ site.title }})</title>
8
+ {%- else -%}
9
+ <title>{{ site.title }} {%- if site.tagline -%} &mdash; {{ site.tagline }}{%- endif -%}</title>
10
+ {%- endif %}
11
+
12
+ {% seo title=false %}
13
+ {% feed_meta %}
14
+ {% json_feed_meta %}
15
+ <link rel="stylesheet" href="{% link assets/css/base.css %}" />
16
+ <link rel="stylesheet" href="{% link assets/css/layout.css %}" />
17
+ <link rel="stylesheet" href="{% link assets/css/theme.css %}" />
18
+ <link rel="stylesheet" href="{% link assets/css/syntax.css %}" />
19
+ </head>
20
+ <body>
21
+ {% include header.html %}
22
+
23
+ <main class="site-content">
24
+ {{ content }}
25
+ </main>
26
+
27
+ {% include footer.html %}
28
+ </body>
29
+ </html>
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="page">
6
+ <header class="page-header">
7
+ <h1 class="page-title">{{ page.title }}</h1>
8
+ </header>
9
+
10
+ <div class="page-content">
11
+ {{ content }}
12
+ </div>
13
+ </article>
@@ -0,0 +1,62 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post">
5
+ <header class="post-header">
6
+ <h1 class="post-title">
7
+ {{ page.title }}
8
+ </h1>
9
+ </header>
10
+
11
+ <div class="post-content">
12
+ {{ content }}
13
+ </div>
14
+
15
+ <footer class="post-footer">
16
+ <a class="post-meta _permalink" href="{{ page.url | absolute_url }}" rel="bookmark">
17
+ <time class="_date" datetime="{{ page.date | date_to_xmlschema }}">
18
+ {{ page.date | date: site.minduim.date_formats.day }}
19
+ </time>
20
+ </a>
21
+
22
+ {% if page.tags.size > 0 %}
23
+ <div class="post-meta _tags">
24
+ <p class="tags-label">
25
+ {{ site.minduim.translations.post_tagged_with }}
26
+ </p>
27
+
28
+ <ul class="tags-list">
29
+ {% for tag in page.tags -%}
30
+ {%- assign tag_name = tag | slugify: site.slug_mode -%}
31
+ {%- assign tag_url = site.jekyll-archives.permalinks.tag | replace: ":name", tag_name | relative_url -%}
32
+ <li class="tag-item">
33
+ <a href="{{- tag_url -}}" rel="tag">
34
+ {{ tag }}
35
+ </a>
36
+ </li>
37
+ {%- endfor %}
38
+ </ul>
39
+ </div>
40
+ {% endif %}
41
+ </footer>
42
+
43
+ {% if page.previous or page.next -%}
44
+ <nav class="blog-pagination" aria-label="{{ site.minduim.translations.blog_pagination_title }}">
45
+ {% if page.next -%}
46
+ <a class="prev-page menu-item" href="{{ page.next.url | relative_url }}" rel="next">
47
+ &larr; {{ page.next.title }}
48
+ </a>
49
+ {%- endif %}
50
+
51
+ {% if page.previous -%}
52
+ <a class="next-page menu-item" href="{{ page.previous.url | relative_url }}" rel="prev">
53
+ {{ page.previous.title }} &rarr;
54
+ </a>
55
+ {%- endif %}
56
+ </nav>
57
+ {%- endif %}
58
+ </article>
59
+
60
+ <div class="sidebar">
61
+ {%- include sidebar.html -%}
62
+ </div>