mirror of
https://github.com/cotes2020/chirpy-starter.git
synced 2025-07-02 20:38:58 +10:00
fix: update layout and import Chirpy template files
This commit is contained in:
10
_includes/no-linenos.html
Normal file
10
_includes/no-linenos.html
Normal file
@ -0,0 +1,10 @@
|
||||
{% comment %}
|
||||
Remove the line number of the code snippet.
|
||||
{% endcomment %}
|
||||
|
||||
{% assign content = include.content %}
|
||||
|
||||
{% if content contains '<td class="rouge-gutter gl"><pre class="lineno">' %}
|
||||
{% assign content = content | replace: '<td class="rouge-gutter gl"><pre class="lineno">', '<!-- <td class="rouge-gutter gl"><pre class="lineno">'%}
|
||||
{% assign content = content | replace: '</td><td class="rouge-code">', '</td> --><td class="rouge-code">' %}
|
||||
{% endif %}
|
Reference in New Issue
Block a user