rfelix / my_jekyll_extensions Goto Github PK
View Code? Open in Web Editor NEWPortable Jekyll extensions I use for my website (to be used with jekyll_ext)
Home Page: http://rfelix.com/2010/01/19/jekyll-extensions-minus-equal-pain/
Portable Jekyll extensions I use for my website (to be used with jekyll_ext)
Home Page: http://rfelix.com/2010/01/19/jekyll-extensions-minus-equal-pain/
diff --git a/tag_gen/tag_gen.rb b/tag_gen/tag_gen.rb
index 8bbc038..7facac6 100644
--- a/tag_gen/tag_gen.rb
+++ b/tag_gen/tag_gen.rb
@@ -22,7 +22,7 @@ module Jekyll
related = []
site.tags[tag].each do |post|
post.tags.each do |rel|
- related.push(rel) unless rel == tag && related.include?(rel)
+ related.push(rel) unless rel == tag || related.include?(rel)
end
end
self.data['related'] = related unless related.empty?
The repo URL (http://rfelix.com/2010/01/19/jekyll-extensions-minus-equal-pain/) and the Jekyll Extensions -= Pain link that points to it are broken. (Error: "This webpage is not available.") Relatedly, rfelix.com is currently down.
Here's a snapshot from archive.org for anyone who's looking in the meantime: https://web.archive.org/web/20121221114225/http://rfelix.com/2010/01/19/jekyll-extensions-minus-equal-pain/
I've just had a problem with a rather intolerant parser that did not accept the inline css without a semi-colon. I'm not sure what the standard says but maybe it does not hurt to have it there after the px.
--- tag_category_iterator/sample_data/tagcloud.html 2010-06-26 20:27:50.000000000 +0200
+++ ../tags/tagcloud.html 2010-06-28 02:32:17.000000000 +0200
@@ -6,7 +6,7 @@
<h1> Tags </h1>
<ul>
{% for tag in site.iterable.tags %}
- <a style="font-size: {{ tag.posts | size | times:1.5 | plus: 10 }}px" href="{{site.baseurl}}/tags/{{tag.name}}">
+ <a style="font-size: {{ tag.posts | size | times:1.5 | plus: 10 }}px;" href="{{site.baseurl}}/tag/{{tag.name}}">
{{ tag.name }}</a>{% if forloop.last == false %}, {% endif %}
{% endfor %}
</ul>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.