Skip to content

Commit 6059675

Browse files
committed
Fix #3233 -- Simple theme classless semantic HTML
1 parent d7015db commit 6059675

27 files changed

+163
-119
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ samples/output
1717
*.pem
1818
*.lock
1919
.pdm-python
20+
.venv

docs/settings.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,12 @@ Following are example ways to specify your preferred theme::
12311231
# Specify a customized theme, via absolute path
12321232
THEME = "/home/myuser/projects/mysite/themes/mycustomtheme"
12331233

1234+
The built-in ``simple`` theme can be customized using the following settings.
1235+
1236+
.. data:: STYLESHEET_URL
1237+
1238+
The URL of the stylesheet to use.
1239+
12341240
The built-in ``notmyidea`` theme can make good use of the following settings.
12351241
Feel free to use them in your themes as well.
12361242

pelican/tests/output/custom/author/alexis-metaireau.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,13 @@ <h1><a href="../article-1.html" rel="bookmark"
120120
<p>There are <a href="../article-1.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
121121
</article></li>
122122
</ol><!-- /#posts-list -->
123-
<p class="paginator">
124-
Page 1 / 3
125-
<a href="../author/alexis-metaireau2.html">&raquo;</a>
126-
<a href="../author/alexis-metaireau3.html">&#8649;</a>
127-
</p>
123+
<nav>
124+
<ul>
125+
<li>Page 1 / 3</li>
126+
<li><a href="../author/alexis-metaireau2.html">&rang;</a></li>
127+
<li><a href="../author/alexis-metaireau3.html">&Rang;</a></li>
128+
</ul>
129+
</nav>
128130
</section><!-- /#content -->
129131
<section id="extras" class="body">
130132
<div class="blogroll">

pelican/tests/output/custom/author/alexis-metaireau2.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@ <h2>Why not ?</h2>
133133
<p>There are <a href="../oh-yeah.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
134134
</article></li>
135135
</ol><!-- /#posts-list -->
136-
<p class="paginator">
137-
<a href="../author/alexis-metaireau.html">&#8647;</a>
138-
<a href="../author/alexis-metaireau.html">&laquo;</a>
139-
Page 2 / 3
140-
<a href="../author/alexis-metaireau3.html">&raquo;</a>
141-
<a href="../author/alexis-metaireau3.html">&#8649;</a>
142-
</p>
136+
<nav>
137+
<ul>
138+
<li><a href="../author/alexis-metaireau.html">&Lang;</a></li>
139+
<li><a href="../author/alexis-metaireau.html">&lang;</a></li>
140+
<li>Page 2 / 3</li>
141+
<li><a href="../author/alexis-metaireau3.html">&rang;</a></li>
142+
<li><a href="../author/alexis-metaireau3.html">&Rang;</a></li>
143+
</ul>
144+
</nav>
143145
</section><!-- /#content -->
144146
<section id="extras" class="body">
145147
<div class="blogroll">

pelican/tests/output/custom/author/alexis-metaireau3.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,13 @@ <h1><a href="../tag/baz.html" rel="bookmark"
8585
<p>There are <a href="../tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
8686
</article></li>
8787
</ol><!-- /#posts-list -->
88-
<p class="paginator">
89-
<a href="../author/alexis-metaireau.html">&#8647;</a>
90-
<a href="../author/alexis-metaireau2.html">&laquo;</a>
91-
Page 3 / 3
92-
</p>
88+
<nav>
89+
<ul>
90+
<li><a href="../author/alexis-metaireau.html">&Lang;</a></li>
91+
<li><a href="../author/alexis-metaireau2.html">&lang;</a></li>
92+
<li>Page 3 / 3</li>
93+
</ul>
94+
</nav>
9395
</section><!-- /#content -->
9496
<section id="extras" class="body">
9597
<div class="blogroll">

pelican/tests/output/custom/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,13 @@ <h1><a href="./article-1.html" rel="bookmark"
120120
<p>There are <a href="./article-1.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
121121
</article></li>
122122
</ol><!-- /#posts-list -->
123-
<p class="paginator">
124-
Page 1 / 3
125-
<a href="./index2.html">&raquo;</a>
126-
<a href="./index3.html">&#8649;</a>
127-
</p>
123+
<nav>
124+
<ul>
125+
<li>Page 1 / 3</li>
126+
<li><a href="./index2.html">&rang;</a></li>
127+
<li><a href="./index3.html">&Rang;</a></li>
128+
</ul>
129+
</nav>
128130
</section><!-- /#content -->
129131
<section id="extras" class="body">
130132
<div class="blogroll">

pelican/tests/output/custom/index2.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@ <h2>Why not ?</h2>
133133
<p>There are <a href="./oh-yeah.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
134134
</article></li>
135135
</ol><!-- /#posts-list -->
136-
<p class="paginator">
137-
<a href="./index.html">&#8647;</a>
138-
<a href="./index.html">&laquo;</a>
139-
Page 2 / 3
140-
<a href="./index3.html">&raquo;</a>
141-
<a href="./index3.html">&#8649;</a>
142-
</p>
136+
<nav>
137+
<ul>
138+
<li><a href="./index.html">&Lang;</a></li>
139+
<li><a href="./index.html">&lang;</a></li>
140+
<li>Page 2 / 3</li>
141+
<li><a href="./index3.html">&rang;</a></li>
142+
<li><a href="./index3.html">&Rang;</a></li>
143+
</ul>
144+
</nav>
143145
</section><!-- /#content -->
144146
<section id="extras" class="body">
145147
<div class="blogroll">

pelican/tests/output/custom/index3.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,13 @@ <h1><a href="./tag/baz.html" rel="bookmark"
8585
<p>There are <a href="./tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
8686
</article></li>
8787
</ol><!-- /#posts-list -->
88-
<p class="paginator">
89-
<a href="./index.html">&#8647;</a>
90-
<a href="./index2.html">&laquo;</a>
91-
Page 3 / 3
92-
</p>
88+
<nav>
89+
<ul>
90+
<li><a href="./index.html">&Lang;</a></li>
91+
<li><a href="./index2.html">&lang;</a></li>
92+
<li>Page 3 / 3</li>
93+
</ul>
94+
</nav>
9395
</section><!-- /#content -->
9496
<section id="extras" class="body">
9597
<div class="blogroll">

pelican/tests/output/custom_locale/author/alexis-metaireau.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,13 @@ <h1><a href="../posts/2011/février/17/article-1/" rel="bookmark"
120120
<p>There are <a href="../posts/2011/février/17/article-1/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
121121
</article></li>
122122
</ol><!-- /#posts-list -->
123-
<p class="paginator">
124-
Page 1 / 3
125-
<a href="../author/alexis-metaireau2.html">&raquo;</a>
126-
<a href="../author/alexis-metaireau3.html">&#8649;</a>
127-
</p>
123+
<nav>
124+
<ul>
125+
<li>Page 1 / 3</li>
126+
<li><a href="../author/alexis-metaireau2.html">&rang;</a></li>
127+
<li><a href="../author/alexis-metaireau3.html">&Rang;</a></li>
128+
</ul>
129+
</nav>
128130
</section><!-- /#content -->
129131
<section id="extras" class="body">
130132
<div class="blogroll">

pelican/tests/output/custom_locale/author/alexis-metaireau2.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@ <h2>Why not ?</h2>
133133
<p>There are <a href="../posts/2010/octobre/20/oh-yeah/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
134134
</article></li>
135135
</ol><!-- /#posts-list -->
136-
<p class="paginator">
137-
<a href="../author/alexis-metaireau.html">&#8647;</a>
138-
<a href="../author/alexis-metaireau.html">&laquo;</a>
139-
Page 2 / 3
140-
<a href="../author/alexis-metaireau3.html">&raquo;</a>
141-
<a href="../author/alexis-metaireau3.html">&#8649;</a>
142-
</p>
136+
<nav>
137+
<ul>
138+
<li><a href="../author/alexis-metaireau.html">&Lang;</a></li>
139+
<li><a href="../author/alexis-metaireau.html">&lang;</a></li>
140+
<li>Page 2 / 3</li>
141+
<li><a href="../author/alexis-metaireau3.html">&rang;</a></li>
142+
<li><a href="../author/alexis-metaireau3.html">&Rang;</a></li>
143+
</ul>
144+
</nav>
143145
</section><!-- /#content -->
144146
<section id="extras" class="body">
145147
<div class="blogroll">

0 commit comments

Comments
 (0)