mirror of
https://gitlab.com/tavo-wasd/blog.git
synced 2025-06-06 22:33:30 -06:00
syntax highlighting 😎
This commit is contained in:
parent
2a3a70bb0e
commit
7375901f96
4 changed files with 63 additions and 4 deletions
16
config.toml
16
config.toml
|
@ -2,3 +2,19 @@ baseURL = 'https://tavo.one/'
|
||||||
languageCode = 'es'
|
languageCode = 'es'
|
||||||
title = 'Blog de Tavo'
|
title = 'Blog de Tavo'
|
||||||
theme = 'blog'
|
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
|
||||||
|
|
39
content/snippets/choco-noadmin.md
Normal file
39
content/snippets/choco-noadmin.md
Normal 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
|
||||||
|
```
|
|
@ -4,7 +4,7 @@
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
<body>
|
<body>
|
||||||
<div style="display: grid; grid-template-columns: 1fr 2fr; column-gap: 5%;">
|
<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>
|
<p>
|
||||||
⠀⠀⢀⣠⠤⠶⠖⠒⠒⠶⠦⠤⣄⠀⠀⠀⣀⡤⠤⠤⠤⠤⣄⡀
|
⠀⠀⢀⣠⠤⠶⠖⠒⠒⠶⠦⠤⣄⠀⠀⠀⣀⡤⠤⠤⠤⠤⣄⡀
|
||||||
⠀⣴⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⣦⠞⠁⠀⠀⠀⠀⠀⠀⠉⠳⡄
|
⠀⣴⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⣦⠞⠁⠀⠀⠀⠀⠀⠀⠉⠳⡄
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡾⢷⡄⠀⠀⠀⠀⠉⠙⠯⠀⠀⡴⠋⠀⢠⠟⠀⠀⢹⡄
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡾⢷⡄⠀⠀⠀⠀⠉⠙⠯⠀⠀⡴⠋⠀⢠⠟⠀⠀⢹⡄
|
||||||
</p>
|
</p>
|
||||||
</div></div>
|
</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>
|
<p>
|
||||||
███████████ ██
|
███████████ ██
|
||||||
░█░░░███░░░█ ███
|
░█░░░███░░░█ ███
|
||||||
|
|
|
@ -21,9 +21,13 @@ body,h1,h2,h3,h4,h5 {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h2,h3,h4,h5 {
|
||||||
|
color: #b8bb26;
|
||||||
|
}
|
||||||
|
|
||||||
/* Navbar */
|
/* Navbar */
|
||||||
.navbar h1,h2,h3,h4,a {
|
.navbar h2,h4,a {
|
||||||
color: #fabd2f;
|
color: #fe8019;
|
||||||
padding: 20px 10px 0px;
|
padding: 20px 10px 0px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue