>

Dokumentasi jekyll membuat postingan




# Initial Content initpost_content() { echo "---" echo "layout: post" echo "title: \"${POST_TITLE}\"" echo "date: ${CURRENT_DATE} ${TIME}" echo "subtitle: Tale of a Scribe Who Retires to the Countryside" echo "label: chapter" echo "meta:" echo "image: https://1.bp.blogspot.com/-dG6kajlQ5qg/X8dKndGcxjI/AAAAAAAANo8/NZVHaqirm0k8At309Ce0iEOYUxOnUJZnQCLcBGAsYHQ/s72-c/Tale-of-a-Scribe-Who-Retires-to-the-Countryside-cover.jpg" echo "category: tale-of-a-scribe-who-retires-to-the-countryside" echo "tag:" echo "description: baca Tale of a Scribe Who Retires to the Countryside ${POST_TITLE} bahasa indonesia" echo "author: Alwi" echo "blogId:" echo "published: true" echo "gitname: tale-of-a-scribe-who-retires-to-the-countryside" echo "---" echo "" echo "<div class=\"reader\">" echo " {% for i in (1..300) %}" echo " {% assign num = i | prepend: '000' | slice: -3, 3 %}" echo " <img" echo " class=\"manga-image\"" echo " src=\"https://gitlab.com/ahmadalwi1689/{{ page.gitname }}/-/raw/main/{{ page.title }}/{{ num }}.jpg\"" echo " loading=\"lazy\"" echo " onerror=\"this.remove()\"" echo " alt=\"page {{ i }}\"" echo " >" echo " {% endfor %}" echo "</div>" }


Create posts in jekyll


for i in {36..153}; do ./chapter.sh -c Chapter_$i done

diatas contoh membuat post dari chapter 36 - 153

Mengubah nama folder yang banyak via Power shell


Get-ChildItem -Directory | ForEach-Object { $newName = ($_.Name -replace '_','-').ToLower() if ($_.Name -ne $newName) { $tempName = "temp_" + [guid]::NewGuid().ToString() $tempPath = Join-Path $_.Parent.FullName $tempName # Rename ke nama sementara Rename-Item -Path $_.FullName -NewName $tempName # Rename ke nama final huruf kecil Rename-Item -Path $tempPath -NewName $newName } } Contoh : Chapeter_6 maka hasilnya chapter-6


0 Response to "Dokumentasi jekyll membuat postingan"

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel