diff --git a/config.toml b/config.toml index 71a9dd6..0be0200 100644 --- a/config.toml +++ b/config.toml @@ -2,3 +2,19 @@ baseURL = 'https://tavo.one/' languageCode = 'es' title = 'Blog de Tavo' theme = 'blog' + +[markup] + [markup.highlight] + anchorLineNos = true + codeFences = true + guessSyntax = false + hl_Lines = '' + hl_inline = false + lineAnchors = '' + lineNoStart = 1 + lineNos = true + lineNumbersInTable = true + noClasses = true + noHl = false + style = 'gruvbox' + tabWidth = 4 diff --git a/content/snippets/choco-noadmin.md b/content/snippets/choco-noadmin.md new file mode 100644 index 0000000..77bd512 --- /dev/null +++ b/content/snippets/choco-noadmin.md @@ -0,0 +1,39 @@ +--- +title: Chocolatey sin permisos de administrador +date: 2023-10-23 +--- + +### Guardar el siguiente script como `ChocolateyInstallNonAdmin.ps1` + +```ps1 +# Set directory for installation - Chocolatey does not lock +# down the directory if not the default +$InstallDir='C:\ProgramData\chocoportable' +$env:ChocolateyInstall="$InstallDir" + +# If your PowerShell Execution policy is restrictive, you may +# not be able to get around that. Try setting your session to +# Bypass. +Set-ExecutionPolicy Bypass -Scope Process -Force; + +# All install options - offline, proxy, etc at +# https://chocolatey.org/install +iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) +``` + +Tomado de la [documentación de Chocolatey](https://docs.chocolatey.org/en-us/choco/setup#non-administrative-install) + +### En PowerShell: + +```ps1 +Set-ExecutionPolicy Bypass -Scope Process -Force; +.\ChocolateyInstallNonAdmin.ps1 +``` + +### Algunos programas disponibles: + +```ps1 +choco install git.commandline +choco install vim-tux.portable +choco install groff +``` diff --git a/themes/blog/layouts/index.html b/themes/blog/layouts/index.html index b9940ae..6175dcb 100644 --- a/themes/blog/layouts/index.html +++ b/themes/blog/layouts/index.html @@ -4,7 +4,7 @@ {{- partial "header.html" . -}}