Skip to content

Instantly share code, notes, and snippets.

@ckujau
Last active November 22, 2020 17:36
Show Gist options
  • Save ckujau/274d676298a6f09dfb0b2edb624273ce to your computer and use it in GitHub Desktop.
Save ckujau/274d676298a6f09dfb0b2edb624273ce to your computer and use it in GitHub Desktop.
Some (unsubmitted) patches to my Nikola installation.
--- themes/lanyon/templates/base.tmpl.orig 2020-11-21 13:03:35.415560169 -0800
+++ themes/lanyon/templates/base.tmpl 2020-11-21 13:20:55.148189847 -0800
@@ -22,8 +22,8 @@ ${template_hooks['extra_head']()}
<!-- Toggleable sidebar -->
<div class="sidebar" id="sidebar">
<div class="sidebar-item">
- <p>A reserved <a href="https://getnikola.com" target="_blank">Nikola</a> theme that places the utmost gravity on content with a hidden drawer. Made by <a href="https://twitter.com/mdo" target="_blank">@mdo</a> for Jekyll,
- ported to Nikola by <a href="https://twitter.com/ralsina" target="_blank">@ralsina</a>.</p>
+ <!-- <p>A reserved <a href="https://getnikola.com" target="_blank">Nikola</a> theme that places the utmost gravity on content with a hidden drawer. Made by <a href="https://twitter.com/mdo" target="_blank">@mdo</a> for Jekyll,
+ ported to Nikola by <a href="https://twitter.com/ralsina" target="_blank">@ralsina</a>.</p>-->
</div>
${header.html_navigation_links()}
</div>
--- themes/lanyon/assets/css/lanyon.css.orig 2020-11-21 13:03:35.419560217 -0800
+++ themes/lanyon/assets/css/lanyon.css 2020-11-21 13:04:07.211946249 -0800
@@ -73,16 +73,16 @@ h1, h2, h3, h4, h5, h6 {
*/
.container {
- max-width: 28rem;
+ max-width: 55rem;
}
@media (min-width: 38em) {
.container {
- max-width: 32rem;
+ max-width: 55rem;
}
}
@media (min-width: 56em) {
.container {
- max-width: 38rem;
+ max-width: 55rem;
}
}
--- lib/python3.9/site-packages/nikola/data/themes/base/templates/list_post.tmpl.orig 2020-11-21 13:13:45.410966920 -0800
+++ lib/python3.9/site-packages/nikola/data/themes/base/templates/list_post.tmpl 2020-11-22 08:39:11.795418579 -0800
@@ -17,7 +17,7 @@
%if posts:
<ul class="postlist">
% for post in posts:
- <li><time class="listdate" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time> <a href="${post.permalink()}" class="listtitle">${post.title()|h}</a></li>
+ <li><time class="listdate" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time> -- <a href="${post.permalink()}" class="listtitle">${post.title()|h}</a></li>
% endfor
</ul>
%else:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment