Browse Source

Updated to the-flux-of-thought 0.0.4.

dev
Franco Masotti 3 years ago
parent
commit
5f1f5e5e1d
  1. 2
      README.md
  2. 2
      _config.yml
  3. 2
      _includes/page_navigation.html
  4. 2
      _includes/post_navigation.html
  5. 10
      _includes/tag_list.html
  6. 3
      _layouts/default.html
  7. 16
      _pages/index.md
  8. 47
      _sass/main.scss

2
README.md

@ -14,7 +14,7 @@ These fixes have been imported upstream.
## Blog copyright and license
Copyright (C) Franco Masotti <franco.masotti@student.unife.it>
Copyright (C) Franco Masotti <franco.masotti@live.com>
CC-BY-SA 4.0

2
_config.yml

@ -4,7 +4,7 @@ description: "A blog about libre software experiences and everything else
# This should point to your website source.
website_source: https://gitlab.com/frnmst/frnmst.gitlab.io
# These should point to the-flux-of-thought repository.
software_version: "0.0.3"
software_version: "0.0.4"
# The following is used along the software_version variable to build the
# software version url.
software_release_base_url: https://github.com/frnmst/the-flux-of-thought/releases/tag

2
_includes/page_navigation.html

@ -6,7 +6,7 @@
Homepage">Home</a></li>
{% endif %}
<li>
<a href="#top" title="Back to top">Top</a></span>
<a href="#top-page" title="Back to top ">Top</a></span>
</li>
</ul>
</div>

2
_includes/post_navigation.html

@ -13,7 +13,7 @@ title="PREV: {{ page.previous.title }}">&lt;&lt;</a>
</li>
<li>
<a href="#top" title="Back to top">Top</a>
<a href="#top-page" title="Back to top ">Top</a>
</li>
{% if page.next.url %}

10
_includes/tag_list.html

@ -29,18 +29,20 @@ if all freqencies are different we get O(n^2) {% endcomment %}
<div class="tag-list">
<ul>
{% for tag in sorted_tags_by_freq %}
<li>
{% assign tagg = tag | slugify %}
{% if page.is_home %}
{% assign freq = tag_frequency_iterator[forloop.index0] | plus: 0 %}
{% if freq >= site.min_tag_score %}
{% capture link %}{{ site.baseurl }}/tags/#{{ tagg }}{% endcapture %}
<a href="{{ link }}">{{ tag }} [{{ freq }}]</a>
<li>
<a href="{{ link }}">{{ tag }} [{{ freq }}]</a>
</li>
{% endif %}
{% else %}
<a href="#{{ tagg }}">{{ tag }}</a>
<li>
<a href="#{{ tagg }}">{{ tag }}</a>
</li>
{% endif %}
</li>
{% endfor %}
</ul>
</div>

3
_layouts/default.html

@ -3,7 +3,8 @@ layout: compress
---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
{% comment %}See https://www.bennadel.com/blog/822-using-body-id-as-a-back-to-top-page-anchor.htm#comments_448{% endcomment %}
<html lang="en" id="top-page">
<head>
{% include head.html %}
</head>

16
_pages/index.md

@ -1,6 +1,7 @@
---
layout: default
permalink: index.html
excerpt: none
---
<div class="index" markdown="1">
@ -15,22 +16,27 @@ permalink: index.html
{% endif %}
{% endunless %}
<div markdown="0">
{% comment %}Start list here instead after "Year" to simplify liquid code. This works nonetheless.{%endcomment %}
<ul class="post-list">
<li>
<a href="{{ post.url | prepend: site.baseurl }}.html">
<div class="post-list-metadata">
<span class="post-list-metadata">
<span class="post-list-title">{{ post.title }}</span>
<span class="post-list-date">{{ post.date | date: "%b %d" }}</span>
<div class="post-list-div"></div>
<span class="post-list-div"></span>
{% if site.excerpt_enabled %}
<div class="post-list-excerpt">
<span class="post-list-excerpt">
{% if post.content contains site.excerpt_separator %}
{{ post.excerpt | strip_html }}
{% else %}
{{ post.excerpt | strip_html | truncatewords: site.excerpt_words }}
{% endif %}
</div>
</span>
{% endif %}
</div>
</span>
</a>
</li>
</ul>
</div>
{% endfor %}
</div>

47
_sass/main.scss

@ -151,6 +151,17 @@ ul {
}
}
.post-list {
margin: 0;
padding: 0;
list-style-type: none;
-webkit-padding-start: 0;
}
.post-list-metadata, .post-list-div, .post-list-excerpt {
display: block;
}
.post-metadata, .page-metadata, .footer, .comment {
box-shadow: inset 0 0 0.40625em grey;
background-color: #ffffff;
@ -333,21 +344,26 @@ ul {
.footer {
.license {
font-weight: bold;
img {
/* Align the CC BY SA image with the text. */
max-width: 100%;
height: auto;
display: inline;
margin-right: none;
margin-left: none;
margin-bottom: -0.203125em;
}
}
font-size: 0.8125em;
}
img {
max-width: 100%;
height: auto;
/* Disable antialiasing when the picure is scaled. */
-ms-interpolation-mode: nearest-neighbor;
image-rendering: -webkit-optimize-contrast;
image-rendering: -moz-crisp-edges;
image-rendering: pixelated;
display: block;
margin-right: auto;
margin-left: auto;
margin-bottom: 0.8125em;
}
.img img, .figure {
@ -368,17 +384,22 @@ img {
}
.text {
color: #ffffff;
border-bottom-left-radius: 0.8125em;
border-bottom-right-radius: 0.8125em;
}
}
.figure {
width: 99%;
display: auto;
margin-right: auto;
margin-left: auto;
justify-content: center;
background-color: #ffffff;
margin-bottom: 0.8125em;
img {
width: 100%;
margin-right: 0;
max-width: 100%;
height: auto;
display: block;
margin-right: auto;
margin-left: auto;
border-top-left-radius: 0.8125em;
border-top-right-radius: 0.8125em;
}

Loading…
Cancel
Save