Skip to content

Commit 7c95eb2

Browse files
committed
Merge #571: Scripted diff: rename files in _includes with leading underscores
1b79056 Scripted diff: rename files in _includes with leading underscores (David A. Harding) Pull request description: We have a number of files in the `_includes` directory whose file names start with a leading underscore, e.g. `_references.md`. This leading underscore doesn't provide any feature, isn't a convention of Jekyll sites[1], is a little bit annoying to type, and is a lot annoying when editing with syntax highlighting where including a file that starts with an underscore causes the highlighter to think Markdown italics are in use for the remainder of the document. I haven't bothered to rename the files to eliminate the leading underscore before because it seemed mostly to be just a personal peeve of mine. However, I was recently working on a site by some BitcoinCore.org contributors and discovered that the habit has spread to that site, probably because they thought its use here was conventional. So this PR cures patient zero with the hopes of preventing further infections. I confirmed through diffing builds of the site before and after this commit that it doesn't introduce any content changes. The rename script is in the commit comment; requires GNU coreutils. --- [1] I suspect it's done as a misunderstanding of leading underscores in the top-level directory, where they do have meaning. They have no meaning in subdirectories. Tree-SHA512: 6af77f126eca4df5c0ae63ff713d2a1e5d949850c9dfcfb3c0cf0fff11658ed924efa9181e117f289005633a03aea3d64039c9c732516bd1b696ca341b31fdbd
2 parents c5316d1 + 1b79056 commit 7c95eb2

File tree

200 files changed

+323
-323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+323
-323
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

_includes/dev-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% capture /dev/null %}
22
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
33
!!! NB: for this file to render correctly, !!!
4-
!!! you must also include _references.md !!!
4+
!!! you must also include references.md !!!
55
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
66

77
{% case page.lang %}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

_includes/_head.html renamed to _includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
1616
{% endif %}
1717

18-
{% include _open-graph.html %}
18+
{% include open-graph.html %}
1919

2020
{% if site.owner.google.verify %}<!-- Webmaster Tools verfication -->
2121
<meta name="google-site-verification" content="{{ site.owner.google.verify }}">{% endif %}

0 commit comments

Comments
 (0)