-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1832b6
commit d8956ca
Showing
9 changed files
with
120 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ | |
# markata.dev | ||
|
||
[markata.nav] | ||
'markata'='/' | ||
'GitHub'='https://github.com/WaylonWalker/markata' | ||
'markata' = '/' | ||
'GitHub' = 'https://github.com/WaylonWalker/markata' | ||
|
||
[markata] | ||
# bump site version to bust GitHub actions cache | ||
|
@@ -18,7 +18,7 @@ site_version = 13 | |
## choose your markdown backend | ||
# markdown_backend='markdown' | ||
# markdown_backend='markdown2' | ||
markdown_backend='markdown-it-py' | ||
markdown_backend = 'markdown-it-py' | ||
|
||
# 2 weeks in seconds | ||
default_cache_expire = 1209600 | ||
|
@@ -29,20 +29,20 @@ glob_patterns = "docs/**/*.md,CHANGELOG.md" | |
output_dir = "markout" | ||
assets_dir = "static" | ||
hooks = [ | ||
"markata.plugins.publish_source", | ||
# "markata.plugins.subroute", | ||
"markata.plugins.docs", | ||
# "markata.plugins.prevnext", | ||
# "markata.plugins.service_worker", | ||
"default", | ||
] | ||
"markata.plugins.publish_source", | ||
# "markata.plugins.subroute", | ||
"markata.plugins.docs", | ||
# "markata.plugins.prevnext", | ||
# "markata.plugins.service_worker", | ||
"default", | ||
] | ||
disabled_hooks = [ | ||
# "markata.plugins.covers", | ||
# 'markata.plugins.flat_slug', | ||
# 'markata.plugins.seo', | ||
'markata.plugins.heading_link', | ||
'markata.plugins.manifest', | ||
# 'markata.plugins.rss' | ||
# "markata.plugins.covers", | ||
# 'markata.plugins.flat_slug', | ||
# 'markata.plugins.seo', | ||
'markata.plugins.heading_link', | ||
'markata.plugins.manifest', | ||
# 'markata.plugins.rss' | ||
] | ||
|
||
## Site Config | ||
|
@@ -54,7 +54,6 @@ author_name = "Waylon Walker" | |
author_email = "[email protected]" | ||
icon = "favicon.ico" | ||
lang = "en" | ||
# post_template = "pages/templates/post_template.html" | ||
repo_url = "https://github.com/waylonwalker/markata" | ||
repo_branch = "main" | ||
theme_color = "#322D39" | ||
|
@@ -67,12 +66,19 @@ twitter_card = "summary_large_image" | |
twitter_creator = "@_waylonwalker" | ||
twitter_site = "@_waylonwalker" | ||
|
||
[markata.post_template] | ||
index = 'post.html' | ||
partial = 'post_partial.html' | ||
og = 'og.html' | ||
'raw.md' = 'raw' | ||
|
||
|
||
# markdown_it flavor | ||
[markata.markdown_it_py] | ||
config='gfm-like' | ||
config = 'gfm-like' | ||
# markdown_it built-in plugins | ||
enable = [ "table" ] | ||
disable = [ "image" ] | ||
enable = ["table"] | ||
disable = ["image"] | ||
|
||
# markdown_it built-in plugin options | ||
[markata.markdown_it_py.options_update] | ||
|
@@ -90,7 +96,7 @@ plugin = "mdit_py_plugins.admon:admon_plugin" | |
|
||
[[markata.markdown_it_py.plugins]] | ||
plugin = "mdit_py_plugins.attrs:attrs_plugin" | ||
config = {spans = true} | ||
config = { spans = true } | ||
|
||
[[markata.markdown_it_py.plugins]] | ||
plugin = "mdit_py_plugins.attrs:attrs_block_plugin" | ||
|
@@ -107,7 +113,7 @@ permalinkSymbol = '<svg class="heading-permalink" aria-hidden="true" fill="curre | |
|
||
[[markata.markdown_it_py.plugins]] | ||
plugin = "markata.plugins.md_it_wikilinks:wikilinks_plugin" | ||
config = {markata = "markata"} | ||
config = { markata = "markata" } | ||
|
||
# markata feeds | ||
# creating pages of posts | ||
|
@@ -125,11 +131,11 @@ config = {markata = "markata"} | |
# """ | ||
|
||
[[markata.feeds]] | ||
slug='project-gallery' | ||
title="Project Gallery" | ||
filter="'project-gallery' in str(path)" | ||
sort='title' | ||
card_template=""" | ||
slug = 'project-gallery' | ||
title = "Project Gallery" | ||
filter = "'project-gallery' in str(path)" | ||
sort = 'title' | ||
card_template = """ | ||
<li class='post' style='background:rgba(255, 255, 255, .05); border:1px solid rgba(255, 255, 255, .2); padding:1rem; margin: 2rem auto;' > | ||
<a href='{{ href }}'><h2>{{ title }}</h2></a> | ||
<ul style='display: flex; list-style-type: None;'> | ||
|
@@ -142,17 +148,17 @@ card_template=""" | |
""" | ||
|
||
[[markata.feeds]] | ||
slug='docs' | ||
title="Documentation" | ||
filter='"markata" not in slug and "tests" not in slug and "404" not in slug' | ||
sort='slug' | ||
card_template="<li class='post'><a href='{{ href }}'>{{ title }}<p style='color: white; text-decoration: none;'>{{ description }}</p></a> </li>" | ||
slug = 'docs' | ||
title = "Documentation" | ||
filter = '"markata" not in slug and "tests" not in slug and "404" not in slug' | ||
sort = 'slug' | ||
card_template = "<li class='post'><a href='{{ href }}'>{{ title }}<p style='color: white; text-decoration: none;'>{{ description }}</p></a> </li>" | ||
|
||
[[markata.feeds]] | ||
slug='all' | ||
title="All Markata Modules" | ||
filter="True" | ||
card_template=""" | ||
slug = 'all' | ||
title = "All Markata Modules" | ||
filter = "True" | ||
card_template = """ | ||
<li class='post' style='background:rgba(255, 255, 255, .05); border:1px solid rgba(255, 255, 255, .2); padding:1rem; margin: 2rem auto;' > | ||
<a href='{{ href }}'> | ||
<a href='{{ href }}'>{{ title }}</a> | ||
|
@@ -164,10 +170,10 @@ card_template=""" | |
""" | ||
|
||
[[markata.feeds]] | ||
slug='core-modules' | ||
title="Markata Core Modules" | ||
filter="'plugin' not in slug and 'test' not in slug and title.endswith('.py')" | ||
card_template=""" | ||
slug = 'core-modules' | ||
title = "Markata Core Modules" | ||
filter = "'plugin' not in slug and 'test' not in slug and title.endswith('.py')" | ||
card_template = """ | ||
<li class='post' style='background:rgba(255, 255, 255, .05); border:1px solid rgba(255, 255, 255, .2); padding:1rem; margin: 2rem auto;' > | ||
<a href='{{ href }}'> | ||
<a href='{{ href }}'>{{ title }}</a> | ||
|
@@ -179,10 +185,10 @@ card_template=""" | |
""" | ||
|
||
[[markata.feeds]] | ||
slug='plugins' | ||
title="Markata Plugins" | ||
filter="'plugin' in slug and 'test' not in slug" | ||
card_template=""" | ||
slug = 'plugins' | ||
title = "Markata Plugins" | ||
filter = "'plugin' in slug and 'test' not in slug" | ||
card_template = """ | ||
<li class='post' style='background:rgba(255, 255, 255, .05); border:1px solid rgba(255, 255, 255, .2); padding:1rem; margin: 2rem auto;' > | ||
<a href='{{ href }}'> | ||
<a href='/{{ href }}/'>{{ title }}</a> | ||
|
@@ -194,60 +200,75 @@ card_template=""" | |
""" | ||
|
||
[markata.jinja_md] | ||
ignore=[ | ||
'jinja_md.md', | ||
'post_template.md', | ||
'publish_html.md', | ||
'CHANGELOG.md', | ||
'feeds.md', | ||
ignore = [ | ||
'jinja_md.md', | ||
'post_template.md', | ||
'publish_html.md', | ||
'CHANGELOG.md', | ||
'feeds.md', | ||
] | ||
|
||
[[markata.head.meta]] | ||
name = "og:author_email" | ||
content = "[email protected]" | ||
|
||
[markata.tui] | ||
new_cmd=['tmux', 'popup', 'markata', 'new', 'post'] | ||
new_cmd = ['tmux', 'popup', 'markata', 'new', 'post'] | ||
|
||
[[markata.tui.keymap]] | ||
name='new' | ||
key='n' | ||
name = 'new' | ||
key = 'n' | ||
|
||
[markata.summary] | ||
grid_attr = ['tags', 'series'] | ||
|
||
[[markata.summary.filter_count]] | ||
name='drafts' | ||
filter="published == 'False'" | ||
color='red' | ||
name = 'drafts' | ||
filter = "published == 'False'" | ||
color = 'red' | ||
|
||
[[markata.summary.filter_count]] | ||
name='articles' | ||
color='dark_orange' | ||
name = 'articles' | ||
color = 'dark_orange' | ||
|
||
[[markata.summary.filter_count]] | ||
name='py_modules' | ||
filter='"plugin" not in slug and "docs" not in str(path)' | ||
color="yellow1" | ||
name = 'py_modules' | ||
filter = '"plugin" not in slug and "docs" not in str(path)' | ||
color = "yellow1" | ||
|
||
[markata.summary.filter_count.published] | ||
filter="published == 'True'" | ||
color='green1' | ||
filter = "published == 'True'" | ||
color = 'green1' | ||
|
||
[markata.summary.filter_count.plugins] | ||
filter='"plugin" in slug and "docs" not in str(path)' | ||
color="blue" | ||
filter = '"plugin" in slug and "docs" not in str(path)' | ||
color = "blue" | ||
|
||
[markata.summary.filter_count.docs] | ||
filter="'docs' in str(path)" | ||
color='purple' | ||
filter = "'docs' in str(path)" | ||
color = 'purple' | ||
|
||
[markata.post_model] | ||
include = ['date', 'description', 'published', 'slug', 'title', 'content', 'html'] | ||
repr_include = ['date', 'description', 'published', 'slug', 'title', 'output_html'] | ||
include = [ | ||
'date', | ||
'description', | ||
'published', | ||
'slug', | ||
'title', | ||
'content', | ||
'html', | ||
] | ||
repr_include = [ | ||
'date', | ||
'description', | ||
'published', | ||
'slug', | ||
'title', | ||
'output_html', | ||
] | ||
|
||
[markata.render_markdown] | ||
backend='markdown-it-py' | ||
backend = 'markdown-it-py' | ||
|
||
# [markata.markdown_it_py] | ||
# config='gfm-like' | ||
|
@@ -271,7 +292,7 @@ plugin = "mdit_py_plugins.admon:admon_plugin" | |
|
||
[[markata.render_markdown.extensions]] | ||
plugin = "mdit_py_plugins.attrs:attrs_plugin" | ||
config = {spans = true} | ||
config = { spans = true } | ||
|
||
[[markata.render_markdown.extensions]] | ||
plugin = "mdit_py_plugins.attrs:attrs_block_plugin" | ||
|
@@ -288,7 +309,7 @@ plugin = "mdit_py_plugins.anchors:anchors_plugin" | |
|
||
[[markata.render_markdown.extensions]] | ||
plugin = "markata.plugins.md_it_wikilinks:wikilinks_plugin" | ||
config = {markata = "markata"} | ||
config = { markata = "markata" } | ||
|
||
[markata.glob] | ||
glob_patterns = "docs/**/*.md,CHANGELOG.md" | ||
|
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
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
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
{% extends "base.html" %} | ||
{% extends "content_base.html" %} | ||
{% block content %} | ||
<article> | ||
{% include "title.html" %} | ||
<section class="body"> | ||
{{ body }} | ||
</section> | ||
</article> | ||
{% include "post_partial.html" %} | ||
{% endblock %} |
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,6 @@ | ||
<article> | ||
{% include "title.html" %} | ||
<section class="body"> | ||
{{ body }} | ||
</section> | ||
</article> |
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 @@ | ||
{{ post.raw }} |