Commit 868d6475 authored by ak's avatar ak
Browse files

Merge branch 'dev'

parents 790d3cfc c25a00ef
......@@ -2,7 +2,7 @@
author: ak
check: true
description: Test document for markdown syntax
edit: 2021-Mar-03 13:18
edit: 2021-Apr-15 14:35
html: true
index: /home/ak/git/pykyll/ak/markdown_test_sheet/index.md
subtitle: Markdown test sheet
......
# Test
## Subtitle
Description
#### Test
Subtitle
Description
\ No newline at end of file
---
author: ak
check: true
description: Description
edit: 2021-Apr-15 14:35
html: false
subtitle: Subtitle
title: Test
type: post
---
Description
\ No newline at end of file
......@@ -83,7 +83,7 @@
<h1 class="title">Syntax</h1>
<p class="subtitle">Markdown test sheet</p>
<p class="author">ak</p>
<p class="date">2021-Mar-03 13:18</p>
<p class="date">2021-Apr-15 14:35</p>
</header>
<nav id="TOC" role="doc-toc">
<ul>
......
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="author" content="ak" />
<title>Test</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>
<link rel="stylesheet" href="../../css/post.css" />
</head>
<body>
<header id="title-block-header">
<h1 class="title">Test</h1>
<p class="subtitle">Subtitle</p>
<p class="author">ak</p>
<p class="date">2021-Apr-15 14:33</p>
</header>
<div id="BEFORE">
<a href="../../">Pykyll</a><a href="../">Docs</a> – Test
</div>
<p>
Description
</p>
<p>Description</p>
</body>
</html>
......@@ -216,15 +216,18 @@ if __name__ == "__main__":
except TypeError:
pass
elif choice == 2:
choices = Toolz.sorted_nicely(pkll.conf["content_directories"])
choice = Toolz.mymenu_preview(choices=choices,
prompt="\nDelete Menu",
preview_command=Toolz.preview)
pkll.conf["content_directories"] = [
i for i in pkll.conf["content_directories"]
if i != choices[choice]
]
pkll.serialize()
print("Delete currently disabled")
#Delete working but disabled: Triggerhappy
# choices = Toolz.sorted_nicely(pkll.conf["content_directories"])
# choice = Toolz.mymenu_preview(choices=choices,
# prompt="\nDelete Menu",
# preview_command=Toolz.preview)
# pkll.conf["content_directories"] = [
# i for i in pkll.conf["content_directories"]
# if i != choices[choice]
# ]
# pkll.serialize()
else:
continue
# pkll.check(verbose=False, quiet=True)
......
......@@ -307,8 +307,9 @@ class Pykyll:
elem_name = os.path.join(work_dir, root, subdir,
"index.md")
elem = self.toc[elem_name]
links.append("[" + elem.get("title") + "](" + subdir +
")\n" + elem.get("subtitle"))
if elem["html"]:
links.append("[" + elem.get("title") + "](" + subdir +
")\n" + elem.get("subtitle"))
links = Toolz.sorted_nicely(links)
if "index.md" in files:
with open(os.path.join(root, "index.md")) as f:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment