---
These commits add better support for generating and serving files with custom or no filename extensions.
The tagger plugin can now generate archives without any filename extension if it is set to `null` in `site.yaml`:
tagger:
archives:
all:
extension:
target: t
…
The `hyde serve` command has a new argument to modify the MIME type extensions map. Example:
hyde serve -t text/html -t text/plain .srt .asc -t application/x-xz .xz
This sets the default MIME type to `text/html` (rather than `application/octet-stream`) and maps `.srt` and `.asc` to `text/plain` and `.xz` to `application/x-xz`.
---
Currently if
<pre>
urlcleaner:
strip_extensions:
- html
</pre>
options is given, hyde.server will fail to serve stripped urls, which is very inconvenient.
---
This is a simple publisher that uploads a zipfile to PyPI. I am starting to do some basic websites for my python modules using Hyde and hosting them on packages.python.org.
---
This plugin adds `width` and `height` tags to `img` when they are not present. It also adds them when only one of them is present (respecting proportions).
---
Grab creation and modification date from git repository. To use this
plugin, `created` and `modified` meta data should be set to `git`.
They will be replaced by the proper date.
I use `git` command directly because implementing `git log somefile` is a difficult task when using Git bindings. The name of the plugin may be inappropriate if we want to get the author as well.
---
This plugin allows to link pages that are translated to another
language. Each resource should have a `language` meta attribute and a
`uuid` meta attribute. Resource that have those two meta attributes
will get a new attribute with the list of other resources in a
different language that have the same `uuid` meta attribute.
It is then possible to use something like this to grab the list of
available languages for a given resource:
{% if resource.translations is defined %}
<p>Other languages</p>
<ul>
{% for translation in resource.translations %}
<li><a href="{{ translation.full_url }}">
{{ languages[translation.meta.language] }}
</a></li>
{% endfor %}
</ul>
{% endif %}
(You need a `languages` context in `site.yaml` for this snippet to work:
context:
data:
languages:
fr: Français
en: English
)
---
When the last plugin of a chain was returning None, the whole chain
return None instead of the last non-None result. For example, chain
LessPlugin with UglifyPlugin and you get all your .less files
unprocessed.
---
By default, backup files are ignored and node turned into a node. With this change, we can ignore those backup files. There is a default list and this is user configurable.