1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 19:44:21 +00:00

💥 Update a few things (0.2.0)

This commit is contained in:
Steffo 2021-10-11 02:35:20 +02:00
parent 0788de2324
commit a22308b489
Signed by: steffo
GPG key ID: 6965406171929D01
13 changed files with 171 additions and 13 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="DiscordProjectSettings"> <component name="DiscordProjectSettings">
<option name="show" value="ASK" /> <option name="show" value="PROJECT_FILES" />
<option name="description" value="" /> <option name="description" value="" />
</component> </component>
</project> </project>

View file

@ -1,6 +1,7 @@
<component name="InspectionProjectProfileManager"> <component name="InspectionProjectProfileManager">
<profile version="1.0"> <profile version="1.0">
<option name="myName" value="Project Default" /> <option name="myName" value="Project Default" />
<inspection_tool class="HtmlUnknownTarget" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
</profile> </profile>
</component> </component>

View file

@ -0,0 +1,17 @@
<section class="panel post-summary">
<div class="post-title">
<a href="{{ post.url }}">
{{ post.title }}
</a>
</div>
<div class="post-date">
<time>
{{ post.date }}
</time>
</div>
<div class="post-tags">
{% for tag in post.tags %}
{% include tag.html %}
{% endfor %}
</div>
</section>

5
_includes/tag.html Normal file
View file

@ -0,0 +1,5 @@
<div class="panel tag">
<a href="{{ site.url }}/#tag-{{ tag }}">
{{ tag }}
</a>
</div>

View file

@ -5,7 +5,9 @@ layout: default
<div class="layout layout-threecol"> <div class="layout layout-threecol">
<div class="layout-threecol-center"> <div class="layout-threecol-center">
<h1> <h1>
<a href="{{ site.url }}">
{{ site.title }} {{ site.title }}
</a>
</h1> </h1>
{{ content }} {{ content }}
</div> </div>

View file

@ -5,4 +5,3 @@ layout: base
<section class="panel panel-box"> <section class="panel panel-box">
{{ content }} {{ content }}
</section> </section>

View file

@ -4,13 +4,13 @@
<link rel="stylesheet" href="https://gh.steffo.eu/bluelib/src/targets/skeleton.root.css" type="text/css"/> <link rel="stylesheet" href="https://gh.steffo.eu/bluelib/src/targets/skeleton.root.css" type="text/css"/>
<link rel="stylesheet" href="https://gh.steffo.eu/bluelib/src/targets/{{ site.bluelib }}.root.css" type="text/css"/> <link rel="stylesheet" href="https://gh.steffo.eu/bluelib/src/targets/{{ site.bluelib }}.root.css" type="text/css"/>
<link rel="stylesheet" href="https://gh.steffo.eu/bluelib/src/targets/{{ page.bluelib }}.root.css" type="text/css"/> <link rel="stylesheet" href="https://gh.steffo.eu/bluelib/src/targets/{{ page.bluelib }}.root.css" type="text/css"/>
<link rel="stylesheet" href="{% link /assets/css/bluelib-jekyll.css %}"/>
{% for css in site.extra_css %} {% for css in site.extra_css %}
<link rel="stylesheet" href="{{ css }}"/> <link rel="stylesheet" href="{% link css %}"/>
{% endfor %} {% endfor %}
<title>{{ page.title }}</title> <title>{{ page.title }} - {{ site.title }}</title>
</head> </head>
<body> <body>
{{ content }} {{ content }}
</body> </body>
</html> </html>

43
_layouts/home.html Normal file
View file

@ -0,0 +1,43 @@
---
layout: base
---
<section class="panel panel-box">
<h2>
{{ page.title }}
</h2>
{{ content }}
</section>
<section class="panel panel-box">
<h2>
Latest posts
</h2>
<p>
These are the latest posts in the blog in reverse chronological order.
</p>
{% for post in site.posts %}
{% include post-summary.html %}
{% endfor %}
</section>
<section class="panel panel-box">
<h2>
Posts by tag
</h2>
<p>
These are all the posts in the blog, grouped by their tag.
</p>
<section class="chapter">
{% for tag_pair in site.tags %}
<section id="tag-{{ tag_pair[0] }}" class="panel panel-box">
<h3>
{{ tag_pair[0] }}
</h3>
{% for post in tag_pair[1] %}
{% include post-summary.html %}
{% endfor %}
</section>
{% endfor %}
</section>
</section>

View file

@ -1,10 +1,25 @@
--- ---
layout: box layout: base
--- ---
<section class="panel panel-box page-info">
<div class="panel page-date">
<time>
{{ page.date }}
</time>
</div>
<div class="page-tags">
{% for tag in page.tags %}
{% include tag.html %}
{% endfor %}
</div>
</section>
<section class="panel panel-box">
<h2> <h2>
<a href="{{ page.url }}">
{{ page.title }} {{ page.title }}
</a>
</h2> </h2>
{{ content }} {{ content }}
</section>

View file

@ -1,6 +1,7 @@
--- ---
layout: post layout: post
title: "Hello world!" title: "Hello world!"
tag: example
--- ---
This is a sample post made to display posts made using `jekyll-theme-bluelib`. This is a sample post made to display posts made using `jekyll-theme-bluelib`.

View file

@ -0,0 +1,69 @@
.post-summary {
display: grid;
grid-template-areas:
"title tags"
"date tags";
grid-template-columns: auto 1fr;
grid-template-rows: auto 1fr;
grid-column-gap: 8px;
grid-row-gap: 2px;
white-space: nowrap;
}
.post-summary > .post-title {
grid-area: title;
justify-self: start;
font-size: large;
font-weight: bold;
}
.post-summary > .post-date {
grid-area: date;
justify-self: start;
font-style: italic;
font-size: x-small;
opacity: 0.7;
}
.post-summary > .post-tags {
grid-area: tags;
justify-self: end;
display: flex;
flex-direction: row;
gap: 4px;
}
.page-info {
display: flex;
flex-direction: row;
gap: 4px;
justify-content: space-between;
font-size: small;
}
.page-info > .page-date {
display: inline !important;
margin: 0 !important;
width: auto !important;
justify-self: start;
}
.page-info > .page-tags {
display: flex;
flex-direction: row;
gap: 4px;
}
.tag {
display: inline !important;
margin: 0 !important;
width: auto !important;
}

6
index.html Normal file
View file

@ -0,0 +1,6 @@
---
layout: home
title: "jekyll-theme-bluelib"
---
Appearently, Jekyll needs <code>index.html</code> to exist.

View file

@ -2,7 +2,7 @@
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "jekyll-theme-bluelib" spec.name = "jekyll-theme-bluelib"
spec.version = "0.1.1" spec.version = "0.2.0"
spec.authors = ["Stefano Pigozzi"] spec.authors = ["Stefano Pigozzi"]
spec.email = ["me@steffo.eu"] spec.email = ["me@steffo.eu"]