Skip to content

Commit

Permalink
Merge pull request #766 from alexwlchan/misc-changes
Browse files Browse the repository at this point in the history
A couple of stray tidy-up changes
  • Loading branch information
alexwlchan authored Apr 7, 2024
2 parents 3296de4 + d33a377 commit e4ea331
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 40 deletions.
14 changes: 10 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,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 @@ -88,12 +96,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;
}
}

1 comment on commit e4ea331

@alexwlchan
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://alexwlchan.net as production
🚀 Deployed on https://6612ec6aae6860f3e3bf3e82--alexwlchan.netlify.app

Please sign in to comment.