Skip to content

Wrap Text In Code Block #2488

Discussion options

You must be logged in to vote

Copy and paste _layouts/post.html:

Find a file named post.html located inside the _layouts folder and replace all of it's contents with this. Don't hesitate the file and folder if it does not already exist.

---
layout: default
refactor: true
panel_includes:
  - toc
tail_includes:
  - related-posts
  - post-nav
script_includes:
  - comment
---

{% include lang.html %}

{% include toc-status.html %}

<article class="px-1" data-toc="{{ enable_toc }}">
  <header>
    <h1 data-toc-skip>{{ page.title }}</h1>
    {% if page.description %}
      <p class="post-desc fw-light mb-4">{{ page.description }}</p>
    {% endif %}

    <div class="post-meta text-muted">
      <!-- published date -->
      <

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LakesideMiners
Comment options

Answer selected by LakesideMiners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants