소스 검색

Fix code blocks

Håvard O. Nordstrand 5 년 전
부모
커밋
204a6c6c04
4개의 변경된 파일22개의 추가작업 그리고 14개의 파일을 삭제
  1. 10 1
      _includes/header.md
  2. 5 5
      config/linux-server/applications.md
  3. 5 7
      config/pc/common-applications.md
  4. 2 1
      config/pc/linux-applications.md

+ 10 - 1
_includes/header.md

@@ -2,7 +2,16 @@
 {:.no_toc}
 
 {% if page.breadcrumbs %}
-> {% for crumb in page.breadcrumbs %}[{{ crumb.title }}]({{ crumb.url }}) / {% endfor %}{{ page.title }}
+> {% strip %}
+    {% for crumb in page.breadcrumbs %}
+        {% if crumb.url %}
+        [{{ crumb.title }}]({{ crumb.url }})
+        {% else %}
+        {{ crumb.title }}
+        {% endif %}
+        /
+    {% endfor %}
+    {{ page.title }}
 {% endif %}
 
 {% if page.toc_enable %}

+ 5 - 5
config/linux-server/applications.md

@@ -107,12 +107,12 @@ Using: Debian 10 Buster
 
 #### Examples
 
-{% code title="smtp\_header\_checks" %}
 ```text
-/^From:\s*.*\S+@node\.example\.bet.*.*$/ REPLACE From: "Node" <node@ample.net>
+# File: smtp_header_checks
+
+/^From:\s*.*\S+@node\.example\.bet.*.*$/ REPLACE From: "Node" <node@example.net>
 /^To:\s*.*\S+@node\.example\.net.*$/ REPLACE To: "Someone" <someone@example.net>
 ```
-{% endcode %}
 
 ### Usage
 
@@ -142,14 +142,14 @@ Using H. Peter Anvin's TFTP server \(tftpd-hpa\).
 
 ### Files
 
-{% code title="/etc/default/tftpd-hpa" %}
 ```text
+# File: /etc/default/tftpd-hpa
+
 TFTP_USERNAME="tftp"
 TFTP_DIRECTORY="/var/tftp"
 TFTP_ADDRESS=":69"
 TFTP_OPTIONS="--create --secure"
 ```
-{% endcode %}
 
 ## Pterodactyl
 

+ 5 - 7
config/pc/common-applications.md

@@ -32,28 +32,27 @@ breadcrumbs:
 
 ### Config
 
-{% code title="~/.ssh/config" %}
 ```text
+# File: ~/.ssh/config
 
 # Use special user and key
 host github.com
     User git
     IdentityFile ~/.ssh/id_rsa_artorias
 ```
-{% endcode %}
 
 ## Vim
 
 ### Config
 
-{% code title="~/.vimrc" %}
 ```text
+" File: ~/.vimrc
+
 " Global: /etc/vim/vimrc
 
 " Better YAML indentation
 autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
 ```
-{% endcode %}
 
 ## VS Code
 
@@ -63,9 +62,9 @@ autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
 
 ### Config
 
-{% code title="~/.config/Code/user/settings.json" %}
 ```javascript
-// Windows: %APPDATA%\Code\User\settings.json
+// Linux file: ~/.config/Code/user/settings.json
+// Windows file: %APPDATA%\Code\User\settings.json
 
 {
 "files.encoding": "utf8",
@@ -90,6 +89,5 @@ autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
 "html.autoClosingTags": false,
 }
 ```
-{% endcode %}
 
 {% include footer.md %}

+ 2 - 1
config/pc/linux-applications.md

@@ -74,8 +74,9 @@ GUI for configuring gaming mice.
    1. In `/etc/zprofile`, add: `emulate sh -c "source /etc/profile"`
    2. Prevents Snaps and other profile stuff from breaking.
 
-{% code title="~/.zshrc" %}
 ```bash
+# File: ~/.zshrc
+
 CASE_SENSITIVE="true"
 
 ZSH_THEME="powerlevel9k/powerlevel9k"