-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated documentation.
- Loading branch information
xesscorp
committed
May 16, 2020
1 parent
ec90f46
commit a5886f6
Showing
34 changed files
with
1,751 additions
and
1,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Source is https://gist.github.com/pichfl/1548864 | ||
# A simple plugin for Jekyll that allows you to use {% img url "alt text" %} to add images to your posts. | ||
# It will automatically check those images for width and height. | ||
# | ||
# Requires http://imagesize.rubyforge.org/ | ||
|
||
require 'image_size' | ||
require 'open-uri' | ||
|
||
module Jekyll | ||
|
||
class ImageTag < Liquid::Tag | ||
@img = nil | ||
@alt = "" | ||
|
||
def initialize(tag_name, markup, tokens) | ||
@img = markup.strip | ||
if temp = @img.match(/^(.*)(\s)(\")(.*)(\")$/) | ||
@img = temp[1] | ||
@alt = temp[4] | ||
end | ||
|
||
super | ||
end | ||
|
||
def render(context) | ||
w,h = open(@img, "rb") do |fh| | ||
ImageSize.new(fh.read).get_size | ||
end | ||
|
||
if @img | ||
"<img src=\"#{@img}\" width=\"#{w}\" height=\"#{h}\" alt=\"#{@alt}\" >" | ||
|
||
else | ||
|
||
end | ||
|
||
end | ||
end | ||
end | ||
|
||
Liquid::Template.register_tag('img', Jekyll::ImageTag) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
layout: post | ||
title: Version 0.0.30 Released! | ||
date: 2020-05-16T10:01:10-05:00 | ||
author: | ||
name: Dave Vandenbout | ||
photo: devb-pic.jpg | ||
email: devb@xess.com | ||
description: Relax, I do this stuff for a living. | ||
category: blog | ||
permalink: blog/Release_0_0_30 | ||
--- | ||
|
||
I'm releasing version 0.0.30 of SKiDL today! | ||
It has some new features I'm excited about: | ||
|
||
* A new `@package` decorator to make subcircuits act like `Parts`. | ||
* A new `tee()` function for creating T-junctions in networks. | ||
* Custom ERCs can now be added using the new `erc_assert()` function. | ||
* Substring matching in pin names can now be enabled/disabled. | ||
|
||
I'll have some upcoming blog posts about these in the near future. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.