Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple of stray tidy-up changes #766

Merged
merged 3 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ collections:
output: true
permalink: "/til/:year/:title/"

# ================
# Permalink config
# ================
#
# Set the URL structure for permalinks on my posts.
# See https://jekyllrb.com/docs/permalinks/#global
permalink: "/:year/:title/"

# ==================
# Template variables
# ==================
Expand All @@ -93,12 +101,10 @@ url: "https://alexwlchan.net"

description: "Alex Chan's personal website"

# ================
# Remaining config

date_format: "%-d %B %Y"

permalink: "/:year/:title/"
# ================
# Remaining config

keep_files: [
# Managed by rsync outside the main Jekyll process
Expand Down
8 changes: 0 additions & 8 deletions src/_includes/eggbox.html

This file was deleted.

36 changes: 20 additions & 16 deletions src/_plugins/filter_cleanup_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,29 @@ def self.add_non_breaking_spaces(input)
module Jekyll
module CleanupsFilter
def cleanup_text(input)
text = AddNonBreakingSpaces.add_non_breaking_spaces(input)
cache = Jekyll::Cache.new('CleanupText')

# Display "LaTeX" in a nice way, if you have CSS enabled
text = text.gsub(
' LaTeX',
' <span class="visually-hidden">LaTeK</span><span class="latex" aria-hidden="true">L<sup>a</sup>T<sub>e</sub>X</span>'
)
cache.getset(input) do
text = AddNonBreakingSpaces.add_non_breaking_spaces(input)

text = text.gsub(
' TeX',
' <span class="visually-hidden">TeK</span><span class="latex" aria-hidden="true">T<sub>e</sub>X</span>'
)
# Display "LaTeX" in a nice way, if you have CSS enabled
text = text.gsub(
' LaTeX',
' <span class="visually-hidden">LaTeK</span><span class="latex" aria-hidden="true">L<sup>a</sup>T<sub>e</sub>X</span>'
)

# Make sure that footnote markers are rendered as a text
# arrow on iOS devices, not emoji. For more info:
# http://daringfireball.net/linked/2015/04/22/unicode-emoji
text
.gsub('&#8617;', '&#8617;&#xFE0E;')
.gsub('↩', '&#8617;&#xFE0E;')
text = text.gsub(
' TeX',
' <span class="visually-hidden">TeK</span><span class="latex" aria-hidden="true">T<sub>e</sub>X</span>'
)

# Make sure that footnote markers are rendered as a text
# arrow on iOS devices, not emoji. For more info:
# http://daringfireball.net/linked/2015/04/22/unicode-emoji
text
.gsub('&#8617;', '&#8617;&#xFE0E;')
.gsub('↩', '&#8617;&#xFE0E;')
end
end
end
end
Expand Down
12 changes: 0 additions & 12 deletions src/_scss/base/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,3 @@ a.download {
margin-right: 0px;
}
}

@media screen and (max-width: 500px) {
.eggbox-4 li:nth-child(4) {
display: none;
}
}

@media screen and (min-width: 1000px) {
.eggbox-4 li:nth-child(4) {
display: none;
}
}