Skip to content

Commit

Permalink
Test Hugo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpurge committed Oct 16, 2024
1 parent 3067c83 commit 860357a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions content/docs/devops/k3s/k3s.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,29 @@ tail /var/log/syslog
journalctl -u k3s.service
/usr/local/bin/k3s-uninstall.sh
```

## NFS

Add `/var/lib/rancher/k3s/server/manifests/nfs.yaml`:

```yaml
---
apiVersion: v1
kind: Namespace
metadata:
name: nfs
---
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: nfs
namespace: nfs
spec:
chart: nfs-subdir-external-provisioner
repo: https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner
targetNamespace: nfs
set:
nfs.server: x.x.x.x
nfs.path: /Kubernetes
storageClass.name: nfs
```
2 changes: 1 addition & 1 deletion themes/dpurge/layouts/partials/docs/brand.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h2 class="book-brand">
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.First.Home.RelPermalink .Site.Home.RelPermalink }}">
<a class="flex align-center" href="{{ cond (not .Site.Home.File) .Sites.Default.Home.RelPermalink .Site.Home.RelPermalink }}">
{{- with .Site.Params.BookLogo -}}
<img src="{{ . | relURL }}" alt="Logo" />
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion themes/dpurge/layouts/partials/docs/html-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{- end -}}

<!-- Theme stylesheet, you can customize scss by creating `assets/custom.scss` in your website -->
{{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint }}
{{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | css.Sass | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" {{ template "integrity" $styles }}>

{{- if default true .Site.Params.BookSearch -}}
Expand Down
2 changes: 1 addition & 1 deletion themes/dpurge/layouts/partials/docs/menu.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav>
{{ partial "docs/brand" . }}
{{ partial "docs/search" . }}
{{ if .Site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
{{ partial "docs/languages" . }}
{{ end }}

Expand Down

0 comments on commit 860357a

Please sign in to comment.