pbsimply 3.2.2 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/bin/pbsimply-init +130 -355
  3. data/lib/pbsimply/frontmatter.rb +12 -3
  4. data/lib/pbsimply.rb +35 -3
  5. data/themes/contribute/README.md +2 -0
  6. data/themes/default.yaml +1 -0
  7. data/themes/kramdown/init322/.accsindex.erb +35 -0
  8. data/themes/kramdown/init322/.pbsimply.yaml +96 -0
  9. data/themes/kramdown/init322/.theme.yaml +5 -0
  10. data/themes/kramdown/init322/articles/.accs.yaml +2 -0
  11. data/themes/kramdown/init322/articles/20231028-untitled.md +22 -0
  12. data/themes/kramdown/init322/css/style.css +91 -0
  13. data/themes/kramdown/init322/index.md +10 -0
  14. data/themes/kramdown/init322/menu.yaml +3 -0
  15. data/themes/kramdown/init322/template.erb +32 -0
  16. data/themes/pandoc/_pandoc_base/.accsindex.erb +50 -0
  17. data/themes/pandoc/_pandoc_base/.pbsimply.yaml +107 -0
  18. data/themes/pandoc/_pandoc_base/css/base.css +84 -0
  19. data/themes/pandoc/_pandoc_base/css/layout.css +55 -0
  20. data/themes/pandoc/_pandoc_base/css/lightbox.css +9 -0
  21. data/themes/pandoc/_pandoc_base/css/skylightning.css +29 -0
  22. data/themes/pandoc/_pandoc_base/javascript/lightbox.js +69 -0
  23. data/themes/pandoc/_pandoc_base/post/.accs.yaml +1 -0
  24. data/themes/pandoc/_pandoc_base/post/20231028-untitled.md +22 -0
  25. data/themes/pandoc/_pandoc_base/template.html +70 -0
  26. data/themes/pandoc/_pandoc_new/.accsindex.erb +50 -0
  27. data/themes/pandoc/_pandoc_new/.pbsimply-bless.rb +10 -0
  28. data/themes/pandoc/_pandoc_new/.pbsimply.yaml +107 -0
  29. data/themes/pandoc/_pandoc_new/articles/.accs.yaml +2 -0
  30. data/themes/pandoc/_pandoc_new/articles/20231028-untitled.md +22 -0
  31. data/themes/pandoc/_pandoc_new/index.md +31 -0
  32. data/themes/pandoc/_pandoc_new/menu.yaml +5 -0
  33. data/themes/pandoc/_pandoc_new/template.html +68 -0
  34. data/themes/pandoc/bloggy/.theme.yaml +7 -0
  35. data/themes/pandoc/bloggy/css/base.css +137 -0
  36. data/themes/pandoc/bloggy/css/layout.css +54 -0
  37. data/themes/pandoc/bloggy/template.html +70 -0
  38. data/themes/pandoc/cooldark/.theme.yaml +7 -0
  39. data/themes/pandoc/cooldark/css/theme.css +117 -0
  40. data/themes/pandoc/cooldark/js/lightbox.js +62 -0
  41. data/themes/pandoc/paper/.theme.yaml +7 -0
  42. data/themes/pandoc/paper/css/theme.css +126 -0
  43. data/themes/pandoc/paper/js/lightbox.js +62 -0
  44. data/themes/pandoc/practical/.theme.yaml +7 -0
  45. data/themes/pandoc/practical/css/base.css +115 -0
  46. data/themes/pandoc/practical/css/layout.css +16 -0
  47. data/themes/pandoc/warm/.theme.yaml +7 -0
  48. data/themes/pandoc/warm/css/base.css +84 -0
  49. metadata +48 -4
@@ -0,0 +1,22 @@
1
+ ---
2
+ title: Untitled series 1
3
+ date: 2023-10-28
4
+ category: PureBuilder Simply
5
+ ---
6
+
7
+ # Untitled article
8
+
9
+ This is a series article sample.
10
+
11
+ `/articles` folder is set up as ACCS directory.
12
+ ACCS recognize articles as series, and generate index page automatically.
13
+
14
+ # How to add new article?
15
+
16
+ Add source document on `/articles`, and do `pbsimply articles`.
17
+
18
+ `pbsimply` will detect modified or new article and build it.
19
+
20
+ # How to remove this article?
21
+
22
+ Remove `/articles/20231028-untitled.md` and `../Build/articles/20231028-untitled.html`, and do `pbsimply articles`.
@@ -0,0 +1,70 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="generator" content="PureBuilder Simply" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
7
+ $for(author-meta)$
8
+ <meta name="author" content="$author-meta$" />
9
+ $endfor$
10
+ $if(timetsmap_xmlscheme)$
11
+ <meta name="date" content="$timetsmap_xmlscheme$" />
12
+ $endif$
13
+ $if(date-meta)$
14
+ <meta name="dcterms.date" content="$date-meta$" />
15
+ $endif$
16
+ $if(keywords)$
17
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
18
+ $endif$
19
+ $if(description)$
20
+ <meta name="description" content="$description$" />
21
+ $endif$
22
+ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
23
+ $for(css)$
24
+ <link rel="stylesheet" href="$css$" />
25
+ $endfor$
26
+ $if(math)$
27
+ $math$
28
+ $endif$
29
+ <!--[if lt IE 9]>
30
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
31
+ <![endif]-->
32
+ $for(header-includes)$
33
+ $header-includes$
34
+ $endfor$
35
+ <script src="/javascript/lightbox.js" defer="defer"></script>
36
+ </head>
37
+ <body>
38
+ <header id="TopHeader">
39
+ </header>
40
+ <header id="TitleHeader">
41
+ <h1 class="title">$title$</h1>
42
+ $if(subtitle)$
43
+ <p class="subtitle">$subtitle$</p>
44
+ $endif$
45
+ </header>
46
+ <section id="MainContainer">
47
+ <article id="MainArticle">
48
+ $if(toc)$
49
+ <nav id="$idprefix$TOC" class="toc">
50
+ $table-of-contents$
51
+ </nav>
52
+ $endif$
53
+ $body$
54
+ </article>
55
+ <section id="SideBar">
56
+ $for(include-before)$
57
+ $include-before$
58
+ $endfor$
59
+ </section>
60
+ </section>
61
+ <footer>
62
+ $if(date)$
63
+ <p class="date">$date$</p>
64
+ $endif$
65
+ $for(include-after)$
66
+ $include-after$
67
+ $endfor$
68
+ </footer>
69
+ </body>
70
+ </html>
@@ -0,0 +1,50 @@
1
+ <%= YAML.dump(
2
+ {
3
+ "title" => @index["title"],
4
+ "date" => @index["date"],
5
+ "author" => @index["author"]
6
+ }
7
+ ) %>
8
+ ---
9
+
10
+ <%
11
+ articles = Hash.new {|h,k| h[k] = Array.new }
12
+
13
+ if @config["accs_across_category"]
14
+ @indexes.each {|filename, index| articles["default"].push index }
15
+ else
16
+ @indexes.each {|filename, index| articles[(index["category"] || "default")].push index }
17
+ end
18
+
19
+ %>
20
+
21
+ % articles.keys.sort.each do |catname|
22
+ % cat = articles[catname]
23
+
24
+ % unless articles.length == 1
25
+ # <%= catname %>
26
+ % end
27
+
28
+ <%
29
+ sort_method = case @config["accs_sort_by"]
30
+ when "title"
31
+ lambda {|i| [i["title"].to_s, i["date"]] }
32
+ when "name"
33
+ lambda {|i| [i["_filename"].to_s, i["title"].to_s, i["date"]] }
34
+ when "serial"
35
+ lambda {|i| [i["serial"].to_s, i["date"], i["_filename"].to_s] }
36
+ else
37
+ lambda {|i| [i["date"], i["title"].to_s, i["_last_update"].to_i] }
38
+ end
39
+
40
+ list = if @config["accs_order"] == "desc"
41
+ cat.sort_by(&sort_method).reverse
42
+ else
43
+ cat.sort_by(&sort_method)
44
+ end
45
+
46
+ list.each do |i|
47
+ %>* [<%= i["title"] %>](<%= i["page_url"] %>)
48
+ <% end %>
49
+
50
+ % end
@@ -0,0 +1,10 @@
1
+ require 'date'
2
+ require 'yaml'
3
+
4
+ PureBuilder::BLESS = ->(frontmatter, pb) {
5
+ today = Date.today
6
+ frontmatter["year"] = today.year
7
+
8
+ menu = YAML.load File.read "menu.yaml"
9
+ frontmatter["site-navigation"] = menu
10
+ }
@@ -0,0 +1,107 @@
1
+ ---
2
+ # Built documents output path.
3
+ # ../Build means Build directory on Source document root's parent directory.
4
+ outdir: ../Build
5
+ #outdir: /home/foo/public_html/
6
+ #
7
+ # Template file path.
8
+ # ./template.html by default.
9
+ template: template.html
10
+ #
11
+ # Loading CSS files (userd by Pandoc's default template.)
12
+ # This values must be *server's URL*.
13
+ # This settings is not avilable on rdoc, rdoc_markdown, kramdown, redcarpet or cmark engine.
14
+ css:
15
+ - /css/theme.css
16
+ # Enable TOC. true or false. false by default.
17
+ # This settings is not avilable on rdoc, rdoc_markdown, kramdown, redcarpet, cmark or docutils engine.
18
+ toc: true
19
+ #
20
+ # Enable eRuby template expansion. true or false. false by default.
21
+ # This settings is not avilable on rdoc, rdoc_markdown, kramdown, redcarpet or cmark engine.
22
+ post_eruby: false
23
+ # Default metadata. If same key exists in document's frontmatter, document's frontmatter is given priority to this settings.
24
+ default_meta:
25
+ author: "John Doe"
26
+ sitename: "John Doe's Homepage"
27
+ #
28
+ # Override every ACCS index page's frontmatter.
29
+ alt_frontmatter:
30
+ title: Serial documents by ACCS
31
+ #
32
+ # Testserver (pbsimply-testserver.rb)'s port. 8000 by default.
33
+ #testserver_port: 8000
34
+ #
35
+ # Generated document's URL absolute prefix. This value replaces reading /.
36
+ #self_url_prefix: /foowebsite/
37
+ #
38
+ # Generated document's URL absolute prefix. This value replaces reading /. Used by page_url_encoded_external.
39
+ self_url_external_prefix: https://example.com/
40
+ # Database format. use JSON if set json or oj.
41
+ # marshal, json, oj or yaml.
42
+ #dbstyle: json
43
+ #
44
+ # Blessing way. If cmd given, you external command instead of Ruby function.
45
+ #bless_style: cmd
46
+ #
47
+ # Blessing external command
48
+ #bless_cmd: [echo, BLESS]
49
+ #
50
+ # Blessing external command on ACCS.
51
+ #bless_accscmd: [echo, ACCS]
52
+ #
53
+ # Method control for find ACCS next/prev.
54
+ # numbering, date, timestamp, lexical
55
+ #blessmethod_accs_rel: date
56
+ #
57
+ # Delete output file automatically when lose source document.
58
+ #auto_delete: yes
59
+ #
60
+ #################################################
61
+ # Pandoc engine option
62
+ #################################################
63
+ #pbsimply_processor: pandoc
64
+ #
65
+ # Pandoc's default file settings.
66
+ # It is merge into default file. See https://pandoc.org/MANUAL.html#default-files
67
+ # This option used only by pandoc engine.
68
+ pandoc_additional_options:
69
+ metadata:
70
+ lang: ja
71
+ title-prefix: "Powered by PureBuilder Simply"
72
+ shift-heading-level-by: 1
73
+ # include-before-body:
74
+ # - before.html
75
+ # include-after-body:
76
+ # - after.html
77
+ #
78
+ #################################################
79
+ # Kramdown engine option
80
+ #################################################
81
+ #pbsimply_processor: kramdown
82
+ #
83
+ # An associative array passed as the second argument to `Kramdown::Document.new`. See the https://kramdown.gettalong.org/rdoc/Kramdown/Options.html for detail.
84
+ #kramdown_features: {}
85
+ #
86
+ #################################################
87
+ # RedCarpet engine option
88
+ #################################################
89
+ #pbsimply_processor: redcarpet
90
+ #
91
+ # An associative array showing the extensions to Redcarpet. See the https://github.com/vmg/redcarpet for details.
92
+ #redcarpet_extensions: {}
93
+ #
94
+ #################################################
95
+ # Docutils engine option
96
+ #################################################
97
+ #pbsimply_processor: docutils
98
+ #
99
+ # rst2html5 command line options.
100
+ #docutils_options: []
101
+ #
102
+ #################################################
103
+ # Other engines without options
104
+ #################################################
105
+ #pbsimply_processor: rdoc
106
+ #pbsimply_processor: rdoc_markdown
107
+ #pbsimply_processor: cmark
@@ -0,0 +1,2 @@
1
+ ---
2
+ title: 1st series
@@ -0,0 +1,22 @@
1
+ ---
2
+ title: Untitled series 1
3
+ date: 2023-10-28
4
+ category: PureBuilder Simply
5
+ ---
6
+
7
+ # Untitled article
8
+
9
+ This is a series article sample.
10
+
11
+ `/articles` folder is set up as ACCS directory.
12
+ ACCS recognize articles as series, and generate index page automatically.
13
+
14
+ # How to add new article?
15
+
16
+ Add source document on `/articles`, and do `pbsimply articles`.
17
+
18
+ `pbsimply` will detect modified or new article and build it.
19
+
20
+ # How to remove this article?
21
+
22
+ Remove `/articles/20231028-untitled.md` and `../Build/articles/20231028-untitled.html`, and do `pbsimply articles`.
@@ -0,0 +1,31 @@
1
+ ---
2
+ title: Pandoc "NEW" style README
3
+ date: 2024-11-25
4
+ author: Harukamy
5
+ ---
6
+
7
+ # Pandoc New Style
8
+
9
+ Pandoc new style is a new theme base for Pandoc processors, adopted from PureBuilder Simply 3.3.
10
+ It is used in themes such as COOLDARK and PAPER, which have been available since PureBuilder Simply 3.3.
11
+
12
+ # menu.yaml
13
+
14
+ In the Pandoc new style theme, you can control the menu displayed at the top by editing menu.yaml.
15
+
16
+ For example
17
+
18
+ ```yaml
19
+ ---
20
+ - path: /
21
+ name: Top
22
+ - path: /about
23
+ name: About us
24
+ ```
25
+
26
+ If there are no items you wish to display in the menu, do the following
27
+
28
+ ```yaml
29
+ ---
30
+ []
31
+ ```
@@ -0,0 +1,5 @@
1
+ ---
2
+ - path: /
3
+ name: Top
4
+ - path: /articles/
5
+ name: Articles
@@ -0,0 +1,68 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="generator" content="PureBuilder Simply" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
7
+ $for(author-meta)$
8
+ <meta name="author" content="$author-meta$" />
9
+ $endfor$
10
+ $if(date-meta)$
11
+ <meta name="dcterms.date" content="$date-meta$" />
12
+ $endif$
13
+ $if(keywords)$
14
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
15
+ $endif$
16
+ $if(description-meta)$
17
+ <meta name="description" content="$description-meta$" />
18
+ $endif$
19
+ <title>$pagetitle$ - $sitename$</title>
20
+ $for(css)$
21
+ <link rel="stylesheet" href="$css$" />
22
+ $endfor$
23
+ </head>
24
+ <body>
25
+ <div class="top-container">
26
+ <div class="sitetitle">
27
+ <h1>
28
+ <a href="/">$sitename$</a>
29
+ </h1>
30
+ </div>
31
+ <div class="top-navigation">
32
+ <nav id="TopNavNav">
33
+ $for(site-navigation)$
34
+ <div class="navigation-item"><a href="$it.path$">$it.name$</a></div>
35
+ $endfor$
36
+ </nav>
37
+ </div>
38
+ </div>
39
+ <div class="main-wrapper">
40
+ <div class="toc">
41
+ $if(toc)$
42
+ <nav id="$idprefix$TOC" role="doc-toc">
43
+ $if(toc-title)$
44
+ <h2 id="$idprefix$toc-title">$toc-title$</h2>
45
+ $endif$
46
+ $table-of-contents$
47
+ </nav>
48
+ $endif$
49
+ </div>
50
+ <article id="MainArticle">
51
+ <h1>$title$</h1>
52
+ $body$
53
+ </article>
54
+ </div>
55
+ <footer id="DocumentFooter">
56
+ $if(date)$
57
+ <p class="date">Published at: $date$</p>
58
+ $endif$
59
+ $if(author-meta)$
60
+ <p class="author">©️$author-meta$ $year$</p>
61
+ $endif$
62
+ <p class="poweredby">Powered by <a href="https://purebuilder.app">PureBuilder Simply</a></p>
63
+ </footer>
64
+ <aside id="WrapWindow">
65
+ <img alt="Fullsized Image" id="LBoxImage" />
66
+ </aside>
67
+ </body>
68
+ </html>
@@ -0,0 +1,7 @@
1
+ name: Bloggy
2
+ description: Basic theme bloggy from PureBuilder Simply 2.0
3
+ initial_control:
4
+ build_cpr:
5
+ - [css]
6
+ - [javascript]
7
+ base_theme: "pandoc/_pandoc_base"
@@ -0,0 +1,137 @@
1
+ code {
2
+ word-break: break-all;
3
+ overflow-wrap: break-word;
4
+ hyphens: none;
5
+ }
6
+ span.smallcaps{font-variant: small-caps;}
7
+ span.underline{text-decoration: underline;}
8
+ div.column{display: inline-block; vertical-align: top; width: 50%;}
9
+ q { quotes: "“" "”" "‘" "’"; }
10
+
11
+ #TopHeader {
12
+ background-color: rgb(15, 90, 160);
13
+ color: #fff;
14
+ margin: 0;
15
+ }
16
+
17
+ #TopHeader h1 {
18
+ margin: 0;
19
+ vertical-align: middle;
20
+ line-height: 180px;
21
+ text-align: center;
22
+ word-wrap: none;
23
+ }
24
+
25
+ #TitleHeader {
26
+ text-align: center;
27
+ font-style: italic;
28
+ }
29
+
30
+ h1, h2, h3, h4, h5, h6, strong {
31
+ font-family: sans-serif;
32
+ }
33
+
34
+ footer {
35
+ border-top: rgb(15, 90, 160) solid 1px;
36
+ text-align: right;
37
+ }
38
+
39
+ a {
40
+ color: #23669c;
41
+ }
42
+
43
+ .toc {
44
+ margin: auto 45px;
45
+ padding: 0.5em;
46
+ font-size: 90%;
47
+ border: #666 solid 1px;
48
+ }
49
+
50
+ .menu {
51
+ border: 1px solid #666;
52
+ padding: 0.5em;
53
+ }
54
+
55
+ body {
56
+ color: #484848;
57
+ background-color: #fff;
58
+ padding: 0;
59
+ margin: 0;
60
+ font-family: sans-serif;
61
+ }
62
+
63
+ blockquote {
64
+ border-left-color: #7496cc;
65
+ border-left-style: solid;
66
+ border-left-width: 0.5em;
67
+ padding-left: 0.5em;
68
+ }
69
+
70
+ article img {
71
+ max-width: 100%;
72
+ max-height: 500px;
73
+ width: auto;
74
+ height: auto;
75
+ }
76
+
77
+ article h1 {
78
+ border-bottom: solid 2px #7496cc;
79
+ border-right: solid 12px #7496cc;
80
+ }
81
+
82
+ /* Source Code */
83
+ pre code.sourceCode {
84
+ color: #eff0f6;
85
+ line-height: 1.3;
86
+ white-space: pre-wrap;
87
+ }
88
+
89
+ div.sourceCode {
90
+ overflow: auto;
91
+ background-color: #191B2A;
92
+ padding: 0.75rem;
93
+ border-radius: 5px;
94
+ }
95
+
96
+ /* This color theme inspired by Dank Neon. */
97
+ pre code.sourceCode .al {color: #F8F8F8; background-color: #800F00; font-weight: bold;} /*Alert*/
98
+ pre code.sourceCode .an {color: #7496cc;} /*Annotation*/
99
+ pre code.sourceCode .at {color: #39FFBA;} /*Attribute*/
100
+ pre code.sourceCode .dt {color: #ffca7a;} /*BaseN*/
101
+ pre code.sourceCode .du {color: #F1B3F1;} /*Builtin*/
102
+ pre code.sourceCode .cf {color: #39FFBA;} /*ControlFlow*/
103
+ pre code.sourceCode .ch {color: #ac3756;} /*Char*/
104
+ pre code.sourceCode .cn {color: #F1B3F1;} /*Constant*/
105
+ pre code.sourceCode .co {color: #858DB7;} /*Comment*/
106
+ pre code.sourceCode .cv {color: #ffca7a;} /*CommentVar*/
107
+ pre code.sourceCode .do {color: #218B97;} /*Documentation*/
108
+ pre code.sourceCode .dt {color: #2dad86;} /*DataType*/
109
+ pre code.sourceCode .dv {color: #F1B3F1;} /*DecVal*/
110
+ pre code.sourceCode .er {color: #F8F8F8; text-decoration: underline;} /*Error*/
111
+ pre code.sourceCode .ex {color: #2dad86;} /*Extension*/
112
+ pre code.sourceCode .fl {color: #F1B3F1;} /*Float*/
113
+ pre code.sourceCode .fu {color: #FF476E;} /*Function*/
114
+ pre code.sourceCode .im {color: #2dad86;} /*Import*/
115
+ pre code.sourceCode .in {color: #01a8ad;} /*Infomation*/
116
+ pre code.sourceCode .kw {color: #ac3756;} /*Keyword*/
117
+ pre code.sourceCode .op {color: #7496cc;} /*Operator*/
118
+ pre code.sourceCode .ot {color: #eff0f6;} /*Other*/
119
+ pre code.sourceCode .pp {color: #A85E3D;} /*PreProcessor*/
120
+ pre code.sourceCode .sc {color: #3daee9; background-color: #4E163E} /*SpecialChar*/
121
+ pre code.sourceCode .ss {color: #ac3756;} /*SpecialString*/
122
+ pre code.sourceCode .st {color: #94BFFF;} /*String*/
123
+ pre code.sourceCode .va {color: #39ffba;} /*Variable*/
124
+ pre code.sourceCode .vs {color: #218B97; font-style: italic;} /*VerbatimString*/
125
+ pre code.sourceCode .wa {color: #eff0f6;} /*Warning*/
126
+
127
+ a.sourceLine { display: inline-block; line-height: 1.25; }
128
+ a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
129
+ a.sourceLine:empty { height: 1.2em; position: absolute; }
130
+ div.sourceCode { margin: 1em 0; }
131
+ a.sourceLine::before { text-decoration: underline; }
132
+
133
+ @media screen and (min-width: 900px) {
134
+ #SideBar {
135
+ padding-right: 1.25em;
136
+ }
137
+ }
@@ -0,0 +1,54 @@
1
+ body {
2
+ margin: 0px;
3
+ padding: 0px;
4
+ }
5
+
6
+ header#TopHeader {
7
+ height: 180px;
8
+ width: 100vw;
9
+ margin: 0px;
10
+ }
11
+
12
+ header#TitleHeader {
13
+ width: 100vw;
14
+ margin: 0px;
15
+ }
16
+
17
+ @media screen and (min-width: 900px){
18
+ #MainContainer {
19
+ display: table;
20
+ width: 900px;
21
+ margin: auto;
22
+ }
23
+
24
+ article#MainArticle {
25
+ display: table-cell;
26
+ width: 600px;
27
+ max-width: 600px;
28
+ }
29
+
30
+ #SideBar {
31
+ display: table-cell;
32
+ width: 300px;
33
+ max-width: 300px;
34
+ overflow: hidden;
35
+ }
36
+ }
37
+
38
+ @media screen and (max-width: 899px){
39
+ #MainContainer {
40
+ display: block;
41
+ width: 100vw;
42
+ }
43
+
44
+ article#MainArticle {
45
+ display: block;
46
+ width: 100%
47
+ }
48
+
49
+ #SideBar {
50
+ display: block;
51
+ width: 100%
52
+ }
53
+
54
+ }
@@ -0,0 +1,70 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="generator" content="PureBuilder Simply" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
7
+ $for(author-meta)$
8
+ <meta name="author" content="$author-meta$" />
9
+ $endfor$
10
+ $if(timetsmap_xmlscheme)$
11
+ <meta name="date" content="$timetsmap_xmlscheme$" />
12
+ $endif$
13
+ $if(date-meta)$
14
+ <meta name="dcterms.date" content="$date-meta$" />
15
+ $endif$
16
+ $if(keywords)$
17
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
18
+ $endif$
19
+ $if(description)$
20
+ <meta name="description" content="$description$" />
21
+ $endif$
22
+ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
23
+ $for(css)$
24
+ <link rel="stylesheet" href="$css$" />
25
+ $endfor$
26
+ $if(math)$
27
+ $math$
28
+ $endif$
29
+ <!--[if lt IE 9]>
30
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
31
+ <![endif]-->
32
+ $for(header-includes)$
33
+ $header-includes$
34
+ $endfor$
35
+ </head>
36
+ <body>
37
+ <header id="TopHeader">
38
+ <h1>$title-prefix$</h1>
39
+ </header>
40
+ <section id="TitleHeader">
41
+ <h1 class="title">$title$</h1>
42
+ $if(subtitle)$
43
+ <p class="subtitle">$subtitle$</p>
44
+ $endif$
45
+ </section>
46
+ <section id="MainContainer">
47
+ <section id="SideBar">
48
+ $for(include-before)$
49
+ $include-before$
50
+ $endfor$
51
+ </section>
52
+ <article id="MainArticle">
53
+ $if(toc)$
54
+ <nav id="$idprefix$TOC" class="toc">
55
+ $table-of-contents$
56
+ </nav>
57
+ $endif$
58
+ $body$
59
+ </article>
60
+ </section>
61
+ <footer>
62
+ $if(date)$
63
+ <p class="date">$date$</p>
64
+ $endif$
65
+ $for(include-after)$
66
+ $include-after$
67
+ $endfor$
68
+ </footer>
69
+ </body>
70
+ </html>
@@ -0,0 +1,7 @@
1
+ name: Cool Dark
2
+ description: Cool and dark theme for PureBuilder Simply 3.3
3
+ initial_control:
4
+ build_cpr:
5
+ - [css]
6
+ - [js]
7
+ base_theme: "pandoc/_pandoc_new"