-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 0.5.0 #67
Merged
Merged
Release 0.5.0 #67
Conversation
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
Deploying with Cloudflare Pages
|
switched to pip 517 build
* fix static-version issue * match version on pypi
* bump __about__ * fix static-version issue
* enable jinja-extensions * add docs
* update isort config * update changelog
* configurable template * changelog
* update isort config * alias test-lint
* update isort config * alias test-lint * allow sluggify to be configurable * fix tests * update changelog
* init redirect template * working example * instant redirect when supported * wip docs * update docs * fix syntax error * correctly create admonition * docstring * create redirects test * add pytest-tmp-files dependency * test coverage config * fully test redirects * run on all branches * remove trailing whitespace * add docstrings * include features section
WaylonWalker
force-pushed
the
develop
branch
from
September 17, 2022 20:57
2900a50
to
49559e6
Compare
* allow template variable in head config * this is toml * show example of template variable in head * format * format
* expose __version__ to templates * changelog * handle default missing head * jinja_md ignore post_template * remove commented config
* ignore posts missing an html attribute * update changelog
… HOLD (#91) * merge config_overrides from articles into render methods of plugins * fix syntax error * make it work * reset logging config * remove print statements * remove commented code * fix up config_overrides example
* create ipython extension * update changelog * also map markata to the instance * update changelog
* create new cli * link the plugins * changelog update
* fix: images wrapped in a link overflow outside the body * update changelog
* feat:service-worker plugin * docs * need to allow precache to be applied to feed * format with black * use latest version of hatch-actio * update docs * update changelog * remove broken script
* feat:service-worker plugin * docs * need to allow precache to be applied to feed * format with black * use latest version of hatch-actio * update docs * update changelog * remove broken script * fix: icon link should be absolute not relative * update changelog * add pr link * add version
* fix: auto_descriptions were not created before running jinja_md * changelog
* give unique title and description to redirect pages * update changelog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
0.5.0-dev
new
cli command for creating newblogs
,posts
, andplugins
create new cli #930.5.0.dev16 base_cli-docs
markata.__version__
to templates as__version__
expose __version__ to templates #89 0.5.0.dev13exensions enable jinja-extensions #60 0.5.0.dev2
markata.plugins.redirects
will create redirect html files as a backup whenserver-side redirects fail, or the user does not have the ability to issue. init redirect template #76 0.5.0.dev10
redirects-docs
config_overrides
with config in post render methods merge config_overrides from articles into render methods of plugins - HOLD #91 0.5.0.dev13markata.plugins.service_worker
plugin to create service workers andenable offline mode on sites feat:service-worker plugin #94 0.5.0.dev15
service-worker-docs
index, they are now absolutely linked to the root of the site. fix/relative icon should be absolute #97 0.5.0.dev16
build due to auto_description running after jinja_md. fix: auto_descriptions were not created before running jinja_md #100 0.5.0.dev18
new
cli commandMore information in the base_cli-docs.
sluggify paths
python-sluggify
was implemented to ensure good urls are in place despite thename of the original file.
For examples of how
python-slugify
will change your url's see theproject's home page. One
difference is that
markata
will leave/
's for routing in the slugs.OPTING OUT
do not want to use slugify, you can opt out by setting
slugify=False
in yourmarkata.toml
.If you have an existing site and do not want to implement redirects, or simply
Migrating to slugify
From the command line with
markata>=0.5.0
installed run themigration script from the command line to create a redirects file in the
default location. This should avoid all 404's as it will create a redirects
file that many static hosting providers will issue a server-side 301 for, and
for those that don't, markata.plugins.redirects creates a redirect html page,
that will kick in as a backup.
configurable page template
Now injects seo into the default template through configuration. Here is an
example, by adding this to your
markata.toml
configuration.You will end up with these meta tags in your html.
You can have an array of toml tables with a key of text. The text will be
added as plain text to the end of the head of each page.
Descriptions will now properly end up in each page.
Config Overrides
Each post can override config settings such as
head
. New meta tags can beadded to a single post, or anything that your template might reference from
config.
ipython extension
Markata has an ipython extension if you want ipython to automatically load with
an instance of
Markata
mapped tom
andmarkata
you can add the followingto your
~/.ipython/profile_default/ipython_config.py