Browse Source

Imported fixes from theme version 1.0.0.

dev
Franco Masotti 2 years ago
parent
commit
c921bafd8b
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 8
      Makefile
  2. 1
      _assets/badge-no_javascript.svg
  3. 1
      _assets/badge-powered_by_jekyll.svg
  4. 1
      _assets/badge-uses_html5.svg
  5. 128
      _assets/by-sa.svg
  6. BIN
      _assets/favicon.png
  7. 110
      _config.yml
  8. 2
      _includes/comments.html
  9. 19
      _includes/footer.html
  10. 11
      _includes/head.html
  11. 22
      _includes/tag_list.html
  12. 4
      _layouts/compress.html
  13. 4
      _layouts/default.html
  14. 2
      _layouts/post.html
  15. 6
      _pages/feed.xml
  16. 96
      _pages/index.md
  17. 34
      _sass/main.scss

8
Makefile

@ -4,16 +4,16 @@
# See LICENSE file for details.
PORT = 3050
all: build serve
all: clean build serve-global
build:
@jekyll build -V --safe -t --future
@jekyll build --trace --strict_front_matter --verbose --safe -t --future
serve:
@jekyll serve --future
@jekyll serve --trace --future
serve-global:
@jekyll serve --host=0.0.0.0 --port=$(PORT) --future
@jekyll serve --trace --host=0.0.0.0 --port=$(PORT) --future
clean:
@rm -rf _site

1
_assets/badge-no_javascript.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="90" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="90" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h23v20H0z"/><path fill="black" d="M23 0h67v20H23z"/><path fill="url(#b)" d="M0 0h90v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="125" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="130">no</text><text x="125" y="140" transform="scale(.1)" textLength="130">no</text><text x="555" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="570">JavaScript</text><text x="555" y="140" transform="scale(.1)" textLength="570">JavaScript</text></g> </svg>

After

Width:  |  Height:  |  Size: 952 B

1
_assets/badge-powered_by_jekyll.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="116" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="116" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h75v20H0z"/><path fill="black" d="M75 0h41v20H75z"/><path fill="url(#b)" d="M0 0h116v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="385" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="650">powered by</text><text x="385" y="140" transform="scale(.1)" textLength="650">powered by</text><text x="945" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="310">Jekyll</text><text x="945" y="140" transform="scale(.1)" textLength="310">Jekyll</text></g> </svg>

After

Width:  |  Height:  |  Size: 963 B

1
_assets/badge-uses_html5.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="82" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="82" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h35v20H0z"/><path fill="black" d="M35 0h47v20H35z"/><path fill="url(#b)" d="M0 0h82v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="185" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="250">uses</text><text x="185" y="140" transform="scale(.1)" textLength="250">uses</text><text x="575" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="370">HTML5</text><text x="575" y="140" transform="scale(.1)" textLength="370">HTML5</text></g> </svg>

After

Width:  |  Height:  |  Size: 946 B

128
_assets/by-sa.svg

@ -1,128 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="85.333336"
height="16"
id="svg2279"
sodipodi:version="0.32"
inkscape:version="0.92.1 r"
version="1.0"
sodipodi:docname="by-sa.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape">
<defs
id="defs2281">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath3442">
<rect
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.98393101;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect3444"
width="21.988329"
height="13.315949"
x="183.46487"
y="255.06166" />
</clipPath>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#999999"
borderopacity="1"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="10.5125"
inkscape:cx="40"
inkscape:cy="7.5"
inkscape:document-units="px"
inkscape:current-layer="layer1"
width="80px"
height="15px"
showborder="true"
inkscape:showpageshadow="false"
inkscape:window-width="988"
inkscape:window-height="522"
inkscape:window-x="930"
inkscape:window-y="556"
showgrid="false"
inkscape:window-maximized="0" />
<metadata
id="metadata2284">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="BY-SA"
transform="matrix(0.9875019,0,0,0.9333518,-345.49402,-380.59934)">
<g
id="g3747"
transform="translate(168.53333,154.66667)">
<rect
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.11105883;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect3749"
width="85.333336"
height="16"
x="181.86667"
y="253.71967" />
<rect
y="255.31966"
x="183.46666"
height="12.8"
width="82.133331"
id="rect3751"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.98393101;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:#abb1aa;fill-opacity:1;stroke:none;stroke-width:1.06666672;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.46913578"
d="m 183.46662,255.33339 v 12.8 h 21.69044 c 1.39589,-1.867 2.33789,-4.03678 2.33789,-6.4 0,-2.34746 -0.92579,-4.54096 -2.30456,-6.4 z"
id="path3753"
sodipodi:nodetypes="cccscc"
inkscape:connector-curvature="0" />
<g
id="g3755"
transform="matrix(0.9612533,0,0,0.9612533,7.289767,10.140799)"
clip-path="url(#clipPath3442)">
<path
id="path3757"
cx="296.35416"
ry="22.939548"
cy="264.3577"
type="arc"
rx="22.939548"
d="m 202.73511,261.71953 c 0.002,4.15146 -3.36097,7.51857 -7.51214,7.52125 -4.15119,0.002 -7.51884,-3.36072 -7.52125,-7.51214 0,-0.003 0,-0.006 0,-0.01 -0.002,-4.15146 3.36096,-7.51857 7.51215,-7.52099 4.15172,-0.002 7.51883,3.36072 7.52124,7.51218 0,0.002 0,0.005 0,0.009 z"
style="opacity:1;fill:#ffffff;stroke-width:1.06666672"
inkscape:connector-curvature="0" />
<path
d="m 201.32881,255.59708 c 1.66685,1.66683 2.5004,3.70819 2.5004,6.12245 0,2.41478 -0.81911,4.43421 -2.45732,6.05823 -1.73854,1.71046 -3.79328,2.56541 -6.16419,2.56541 -2.34229,0 -4.36144,-0.848 -6.05691,-2.54398 -1.69573,-1.69574 -2.54347,-3.72211 -2.54347,-6.07966 0,-2.35702 0.84774,-4.39784 2.54347,-6.12245 1.6524,-1.66737 3.67155,-2.50093 6.05691,-2.50093 2.41427,0 4.45429,0.83355 6.12111,2.50093 z m -11.05582,1.12137 c -1.40922,1.42342 -2.11358,3.09079 -2.11358,5.00346 0,1.91216 0.6974,3.56536 2.09192,4.95962 1.39477,1.39477 3.0552,2.0919 4.98179,2.0919 1.9266,0 3.60118,-0.70408 5.0246,-2.11304 1.35145,-1.30866 2.02744,-2.95408 2.02744,-4.93848 0,-1.96939 -0.68696,-3.64101 -2.06008,-5.01413 -1.37286,-1.37286 -3.03675,-2.05957 -4.99196,-2.05957 -1.95521,1e-5 -3.60894,0.69019 -4.96013,2.07024 z m 3.70846,4.16218 c -0.21534,-0.46948 -0.53767,-0.70436 -0.96757,-0.70436 -0.75999,0 -1.13985,0.51174 -1.13985,1.53471 0,1.02319 0.37986,1.53441 1.13985,1.53441 0.50185,0 0.86031,-0.24904 1.07539,-0.74821 l 1.05344,0.56096 c -0.50212,0.89214 -1.25541,1.33832 -2.2599,1.33832 -0.77469,0 -1.39531,-0.23754 -1.86132,-0.7121 -0.4668,-0.47508 -0.69953,-1.12994 -0.69953,-1.96483 0,-0.82019 0.24022,-1.47131 0.72093,-1.9536 0.48072,-0.48232 1.07938,-0.72337 1.79711,-0.72337 1.06174,0 1.82198,0.4184 2.28157,1.25435 z m 4.95613,0 c -0.21562,-0.46948 -0.53153,-0.70436 -0.94807,-0.70436 -0.77523,0 -1.16312,0.51174 -1.16312,1.53471 0,1.02319 0.38789,1.53441 1.16312,1.53441 0.50267,0 0.85469,-0.24904 1.05561,-0.74821 l 1.07698,0.56096 c -0.50132,0.89214 -1.25356,1.33832 -2.25617,1.33832 -0.77363,0 -1.39291,-0.23754 -1.85864,-0.7121 -0.46493,-0.47508 -0.69791,-1.12994 -0.69791,-1.96483 0,-0.82019 0.23645,-1.47131 0.70915,-1.9536 0.47241,-0.48232 1.07378,-0.72337 1.80462,-0.72337 1.05986,0 1.81904,0.4184 2.27701,1.25435 z"
id="path3759"
style="opacity:1;stroke-width:1.06666672"
inkscape:connector-curvature="0" />
</g>
</g>
<path
id="text3761"
d="m 381.24768,415.66402 c 0.26185,0 0.46038,-0.0572 0.59563,-0.17147 0.13523,-0.11431 0.20284,-0.28291 0.20286,-0.50583 -2e-5,-0.22004 -0.0676,-0.38722 -0.20286,-0.50154 -0.13525,-0.11716 -0.33378,-0.17574 -0.59563,-0.17575 h -0.91932 v 1.35459 h 0.91932 m 0.0561,2.79919 c 0.33378,0 0.5841,-0.07 0.751,-0.21004 0.16976,-0.14003 0.25465,-0.35151 0.25465,-0.63444 0,-0.27719 -0.0834,-0.48438 -0.25034,-0.62156 -0.16688,-0.14003 -0.41865,-0.21004 -0.75531,-0.21004 h -0.97543 v 1.67608 h 0.97543 m 1.54516,-2.30194 c 0.35679,0.10293 0.63301,0.29293 0.82869,0.57012 0.19565,0.27722 0.29349,0.61729 0.2935,1.02024 -1e-5,0.61729 -0.21007,1.07738 -0.63016,1.38031 -0.42009,0.30292 -1.05888,0.45439 -1.91634,0.45439 h -2.75796 v -6.4 h 2.49469 c 0.89485,0 1.54227,0.13431 1.94222,0.40294 0.40283,0.26863 0.60425,0.69873 0.60425,1.29029 0,0.3115 -0.0734,0.57727 -0.22011,0.79733 -0.14675,0.21718 -0.35968,0.37864 -0.63878,0.48438 m 0.97767,-2.97494 h 1.81707 l 1.46747,2.2805 1.46745,-2.2805 H 390.4 l -2.45585,3.70368 v 2.69632 h -1.66168 v -2.69632 l -2.45585,-3.70368 m 5.67564,3.24929 h 2.7105 v 1.24742 h -2.7105 v -1.24742 m 8.49404,-3.04783 v 1.3546 c -0.35392,-0.15718 -0.69921,-0.27578 -1.03585,-0.3558 -0.33666,-0.08 -0.65463,-0.12003 -0.95386,-0.12003 -0.39709,0 -0.69057,0.0543 -0.88048,0.16289 -0.18992,0.10861 -0.28486,0.27722 -0.28486,0.50584 0,0.17147 0.0632,0.30579 0.1899,0.40294 0.12949,0.0943 0.36255,0.17575 0.69921,0.24434 l 0.70784,0.14145 c 0.71646,0.1429 1.22576,0.3601 1.52788,0.65159 0.30212,0.29149 0.45318,0.70587 0.45319,1.24312 -10e-6,0.70589 -0.21148,1.23171 -0.63446,1.5775 -0.42011,0.34294 -1.0632,0.5144 -1.92929,0.5144 -0.40859,0 -0.81861,-0.0386 -1.23007,-0.11574 -0.41148,-0.0771 -0.82294,-0.19148 -1.2344,-0.34293 v -1.39317 c 0.41146,0.2172 0.80853,0.38152 1.19123,0.49296 0.38557,0.1086 0.75675,0.16291 1.11355,0.16291 0.36255,0 0.64021,-0.0601 0.833,-0.18005 0.19278,-0.12002 0.28918,-0.2915 0.28918,-0.5144 0,-0.20004 -0.0661,-0.35436 -0.19853,-0.46296 -0.1295,-0.10859 -0.3899,-0.20576 -0.78122,-0.29149 l -0.64309,-0.14146 c -0.64454,-0.13717 -1.11643,-0.3558 -1.41568,-0.65586 -0.29638,-0.30007 -0.44456,-0.70444 -0.44456,-1.21313 0,-0.63727 0.20717,-1.12738 0.62153,-1.47033 0.41433,-0.34293 1.00995,-0.5144 1.78685,-0.5144 0.35392,0 0.7179,0.0271 1.09196,0.0815 0.37405,0.0514 0.76106,0.13003 1.16103,0.23576 m 5.79648,5.03255 h -2.59827 l -0.41003,1.16599 h -1.67031 l 2.38678,-6.4 h 1.98108 l 2.38678,6.4 h -1.67031 l -0.40572,-1.16599 m -2.18393,-1.1874 h 1.76527 l -0.88047,-2.54628 -0.8848,2.54628"
style="font-style:normal;font-weight:bold;font-size:8.25858784px;font-family:'Bitstream Vera Sans';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.06666672px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 8.8 KiB

BIN
_assets/favicon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 418 B

110
_config.yml

@ -1,23 +1,35 @@
## Site Info
title: "Franco Masotti's blog"
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.1.0"
# 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
## Author Info
author_name: "Franco Masotti"
author_email: volvopolar731@gmail.com
website:
# This should point to your website source.
source: https://gitlab.com/frnmst/frnmst.gitlab.io
license:
url: "https://creativecommons.org/licenses/by-sa/4.0/"
name: "CC-BY-SA 4.0"
software:
# These should point to the-flux-of-thought repository.
home: https://github.com/frnmst/the-flux-of-thought
version: "1.0.0"
# The following is used along the version variable to build the
# software version url.
release_base_url: "https://github.com/frnmst/the-flux-of-thought/releases/tag"
author:
name: "Franco Masotti"
email: "volvopolar731@gmail.com"
## Site Settings
baseurl: "" # Base URL must end WITHOUT a slash, default: ""
permalink: /notes/:title # Post permalink. If you change this you must
# modify all the occurencies manually.
timezone: Europe/Rome # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Base URL must end WITHOUT a slash, default: ""
baseurl: ""
# Post permalink. If you change this you must
# modify all the occurencies manually.
permalink: /notes/:title
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone: Europe/Rome
future: true
## Site Build
@ -28,36 +40,41 @@ kramdown:
sass:
style: :compressed
## Other Params
include: [ "_pages" ]
exclude: [ "LICENSE", "README.md", "CNAME", "vendor", "Gemfile", "Makefile" ]
compress_html:
clippings: all
comments: ["<!-- ", " -->"]
endings: all
ignore:
envs: []
blanklines: false
profile: false
startings: []
## Ruby gems
plugins:
- jekyll-sitemap
excerpts:
enabled: true
start: "<!--excerpt_start-->"
end: "<!--excerpt_end-->"
words: 20
## Excerpts
excerpt_enabled: true
excerpt_separator: "<!--more-->"
excerpt_words: 20
## Tags
min_tag_score: 4
# Set the following to false to avoid limiting the tag links.
limit_tag_links: 16
## Meta tag options
meta_description_words: 140
meta_excerpt_words: 140
meta_site_description_words: 140
## Anchor headings
anchor_headings_enabled: true
anchor_headings_character: "&#182;"
anchor_headings_min: 1
anchor_headings_max: 6
# Puts the anchor heading before the title if set to true.
anchor_headings_before: false
tag_list:
score:
min: 4
# Set the following to false to avoid limiting the tag links.
link_limit: 16
meta:
description_words: 140
excerpt_words: 140
site_description_words: 140
anchor_headings:
enabled: true
character: "&#182;"
min: 1
max: 6
# Puts the anchor heading before the title if set to true.
before: false
# Keep comments hidden
collections:
@ -116,3 +133,10 @@ defaults:
layout: comment
is_comment: true
## Other Params
include: [ "_pages" ]
exclude: [ "LICENSE", "README.md", "CNAME", "vendor", "Gemfile", "Makefile" ]
## Ruby gems
plugins:
- jekyll-sitemap

2
_includes/comments.html

@ -1,5 +1,5 @@
<div class="comment">
{% capture mail %}{{ site.author_email }}{% endcapture %}
{% capture mail %}{{ site.author.email }}{% endcapture %}
{% assign mail_substring = mail | split: '@' %}
{% assign mail_username = mail_substring[0] %}
{% assign mail_domain = mail_substring[1] %}

19
_includes/footer.html

@ -1,15 +1,20 @@
<div class="footer">
<div class="jekyll-theme-note">
Made using <a href="http://jekyllrb.com/">Jekyll</a> and
<a href="https://github.com/frnmst/the-flux-of-thought" title="The Flux Of Thought theme by Franco Masotti">The Flux Of Thought</a>
version <a href="{{ site.software_release_base_url }}/{{ site.software_version }}">{{ site.software_version }}</a>
Made using <a href="{{ site.software.home }}" title="The Flux Of Thought theme by Franco Masotti">The Flux Of Thought</a>
version <a href="{{ site.software.release_base_url }}/{{ site.software.version }}">{{ site.software.version }}</a>
</div>
<div class="license">
<a href="{{ site.website_source }}">Website content</a> is released under the
<a href="https://creativecommons.org/licenses/by-sa/4.0/"><img src="{{ site.baseurl }}/assets/by-sa.svg" alt="CC-BY-SA"></a>
4.0 license
<a href="{{ site.website.source }}">Website content</a> is released under the
<a href="{{ site.website.license.url }}">{{ site.website.license.name }}</a> license
</div>
<div class="copyright">
&copy; {{ site.time | date: '%Y' }} {{ site.author_name }}
&copy; {{ site.time | date: '%Y' }} {{ site.author.name }}
</div>
<div class="badges">
<ul>
<li><a href="https://jekyllrb.com/"><img src="{{ site.baseurl }}/assets/badge-powered_by_jekyll.svg" alt="powered by Jekyll"></a></li>
<li><a href="https://www.gnu.org/philosophy/javascript-trap.en.html"><img src="{{ site.baseurl }}/assets/badge-no_javascript.svg" alt="no JavaScript"></a></li>
<li><a href="https://html.spec.whatwg.org/"><img src="{{ site.baseurl }}/assets/badge-uses_html5.svg" alt="uses HTML5"></a></li>
</ul>
</div>
</div>

11
_includes/head.html

@ -9,7 +9,16 @@
<title>{{ site.title }}</title>
{% endif %}
<meta name="description" content="{% if page.description %}{{ page.description | truncate: site.meta_description_words }}{% else if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: site.meta_excerpt_words }}{% else %}{{ site.description | truncate: site.meta_description_words }}{% endif %}">
{% capture meta_description %}
{% if page.description %}
{{ page.description | truncate: site.meta.description_words }}
{% else if page.excerpt %}
{{ page.excerpt | strip_html | strip_newlines | truncate: site.meta.excerpt_words }}
{% else %}
{{ site.description | truncate: site.meta.description_words }}
{% endif %}
{% endcapture %}
<meta name="description" content="{{ meta_description }}">
<link rel="icon" href="{{ site.baseurl }}/assets/favicon.png">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/core.css">

22
_includes/tag_list.html

@ -1,7 +1,5 @@
{% comment %}The following structure is
the one used in the sorting:
sort by tag frequency and by name after building a
data structure, like this:
{% comment %}Sort decreasingly, alphabetically by tag frequency and by name.
After building a data structure like this:
frequency|tag name
==================
@ -9,13 +7,19 @@
010000|anothertag
000010|three
000010|four
000010|six
000010|five
it becomes:
frequency|tag_name
==================
becomes: 000008|mytag
000010|four
000010|three
010000|anothertag
000010|six
000010|three
000010|four
000010|five
000008|mytag
where the number of leading zeros for each frequency is computed with:
base_ten_power = len(str(max(number_of_posts_per_tag))) + 1
@ -59,7 +63,7 @@
{% assign sorted_tags = sorted_tags | slice: 0, s %}
{% endif %}
<div class="tag-list">
<div class="tag-list" markdown="0">
<ul>
{% for tag_elements in sorted_tags %}
{% assign tag = tag_elements | split: '|' %}
@ -67,7 +71,7 @@
{% assign tagg = tag_name | slugify %}
{% assign freq = tag[0] | plus: 0 %}
{% if page.is_home %}
{% if freq >= site.min_tag_score %}
{% if freq >= site.tag_list.score.min %}
{% capture link %}{{ site.baseurl }}/tags/#{{ tagg }}{% endcapture %}
<li>
<a href="{{ link }}">{{ tag_name }} [{{ freq }}]</a>

4
_layouts/compress.html

@ -1,10 +1,10 @@
---
# Jekyll layout that compresses HTML
# v3.0.2
# v3.1.0
# http://jch.penibelst.de/
# © 2014–2015 Anatol Broder
# MIT License
---
{% capture _LINE_FEED %}
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}

4
_layouts/default.html

@ -15,8 +15,8 @@ layout: compress
<div id="main"></div>
{% endif %}
{% if site.anchor_headings_enabled %}
{% include anchor_headings.html html=content anchorBody=site.anchor_headings_character anchorClass="hAnchor" h_min=site.anchor_headings_min h_max=site.anchor_headings_max beforeHeading=site.anchor_headings_before %}
{% if site.anchor_headings.enabled %}
{% include anchor_headings.html html=content anchorBody=site.anchor_headings.character anchorClass="hAnchor" h_min=site.anchor_headings.min h_max=site.anchor_headings.max beforeHeading=site.anchor_headings.before %}
{% else %}
{{ content }}
{% endif %}

2
_layouts/post.html

@ -8,7 +8,7 @@ layout: default
{% assign page_date = page.date | date: '%F' %}
{% assign page_updated = page.updated | date: '%F' %}
{% if page_updated < page_date %}
<div class="updated-on">WARNING: check front matter <b>updated</b> variable</div>
<div class="updated-on">*** ERROR: check front matter <b>updated</b> variable ***</div>
{% elsif page_date != page_updated %}
<div class="updated-on">Last updated on {{ page.updated | date: '%B %-d, %Y' }}</div>
{% endif %}

6
_pages/feed.xml

@ -11,13 +11,13 @@ permalink: feed.xml
<link href="{{ site.baseurl | append: feed.xml }}" rel="self"/>
<rights>Copyright @
{{ site.time | date: '%Y' }},
{{ site.author_name | xml_escape }}</rights>
{{ site.author.name | xml_escape }}</rights>
<icon>{{ site.baseurl }}/assets/favicon.png</icon>
<author>
<name>{{ site.author_name | xml_escape }}</name>
<name>{{ site.author.name | xml_escape }}</name>
<uri>{{ site.baseurl }}</uri>
<email>{{ site.author_email | xml_escape }}</email>
<email>{{ site.author.email | xml_escape }}</email>
</author>
<updated>{{ site.time | date_to_xmlschema }}</updated>

96
_pages/index.md

@ -5,40 +5,72 @@ excerpt: none
---
{% include tag_list.html %}
<div class="index" markdown="0">
{% assign i=0 | plus: 0 %}
<div class="index" markdown="1">
{% for post in site.posts %}
{% unless post.next %}
### Year {{ post.date | date: '%Y' }}
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
### Year {{ post.date | date: '%Y' }}
{% 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">
<span class="post-list-metadata">
<span class="post-list-title">{{ post.title }}</span>
<span class="post-list-date">{{ post.date | date: "%b %d" }}</span>
<span class="post-list-div"></span>
{% if site.excerpt_enabled %}
<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 %}
</span>
{% assign open_list = false %}
{% assign current_year=post.date | date: '%Y' %}
{% if post.next %}
{% assign next_year=post.next.date | date: '%Y' %}
{% endif %}
{% if i != 0 %}
{% if post.next %}
{% if current_year != next_year %}
</ul>
{% endif %}
</span>
</a>
</li>
</ul>
{% endif %}
{% endif %}
<div markdown="1">
{% if i == 0 %}
### Year {{ current_year }}
{% assign open_list = true %}
{% elsif post.next %}
{% if current_year != next_year %}
### Year {{ current_year }}
{% assign open_list = true %}
{% endif %}
{% endif %}
</div>
{% if open_list %}
<ul class="post-list">
{% endif %}
<li>
{% comment %}See http://frontendcollisionblog.com/jekyll/snippet/2015/03/23/how-to-show-a-summary-of-your-post-with-jekyll.html
which is released under the MIT license, Copyright (c) 2015 Joshua Beam
{% endcomment %}
{% capture post_excerpt %}
<span class="post-list-excerpt">
{% if post.content contains site.excerpts.start and post.content contains site.excerpts.end %}
{% assign start=post.content | split: site.excerpts.start | last %}
{% assign end=start | split: site.excerpts.end | first %}
{{ end | strip_html }}
{% else %}
{{ post.content | strip_html | truncatewords: site.excerpts.words }}
{% endif %}
</span>
{% endcapture %}
<a href="{{ post.url | prepend: site.baseurl }}.html">
<span class="post-list-metadata">
<span class="post-list-title">{{ post.title }}</span>
<span class="post-list-date">{{ post.date | date: "%b %d" }}</span>
<span class="post-list-div"></span>
{{ post_excerpt }}
</span>
</a>
</li>
{% if post.next == false %}
</ul>
{% endif %}
{% assign i=i | plus: 1 %}
{% endfor %}
</div>

34
_sass/main.scss

@ -203,6 +203,28 @@ ul {
}
}
.badges {
ul {
margin-top: 0.203125em;
margin-bottom: 0.203125em;
margin-left: 0em;
padding: 0;
overflow: hidden;
display: flex;
}
li {
display: block;
float: left;
margin-left: 0.203125em;
}
img {
padding: 0;
margin: 0;
}
}
.top, .page-navigation {
ul {
font-size: 0.8125em;
@ -342,18 +364,6 @@ 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;
}

Loading…
Cancel
Save