syntax highlighting 😎

This commit is contained in:
tavo-wasd 2023-10-23 10:36:10 -06:00
parent 2a3a70bb0e
commit 7375901f96
4 changed files with 63 additions and 4 deletions

View file

@ -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

View file

@ -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
```

View file

@ -4,7 +4,7 @@
{{- partial "header.html" . -}}
<body>
<div style="display: grid; grid-template-columns: 1fr 2fr; column-gap: 5%;">
<div class="hide-phone"><div style="color: #83a598; font-family: monospace; white-space: pre; font-size: .6vw;">
<div class="hide-phone"><div style="color: #b8bb26; font-family: monospace; white-space: pre; font-size: .6vw;">
<p>
⠀⠀⢀⣠⠤⠶⠖⠒⠒⠶⠦⠤⣄⠀⠀⠀⣀⡤⠤⠤⠤⠤⣄⡀
⠀⣴⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⣦⠞⠁⠀⠀⠀⠀⠀⠀⠉⠳⡄
@ -33,7 +33,7 @@
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡾⢷⡄⠀⠀⠀⠀⠉⠙⠯⠀⠀⡴⠋⠀⢠⠟⠀⠀⢹⡄
</p>
</div></div>
<div style="color: #83a598; font-family: monospace; white-space: pre; font-size: .6vw;">
<div style="color: #b8bb26; font-family: monospace; white-space: pre; font-size: .6vw;">
<p>
███████████ ██
░█░░░███░░░█ ███

View file

@ -21,9 +21,13 @@ body,h1,h2,h3,h4,h5 {
text-align: left;
}
h2,h3,h4,h5 {
color: #b8bb26;
}
/* Navbar */
.navbar h1,h2,h3,h4,a {
color: #fabd2f;
.navbar h2,h4,a {
color: #fe8019;
padding: 20px 10px 0px;
text-align: center;
}