gerando conteúdo estático, traduzindo o blog para português e subindo para o Github Pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/blogs/luizfaias.com | |
#buster setup --gh-repo=https://github.com/luizfaias/luizfaias.github.io.git | |
buster generate --domain=http://127.0.0.1:2368 | |
#removendo o termo 'index.html' dos links | |
find static -type f -name '*.html' -exec sed -i '' 's/index\.html//g' {} + | |
#traduzindo os meses | |
find static -type f -name '*.html' -exec sed -i '' 's/January 20/Janeiro 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/February 20/Fevereiro 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/March 20/Março 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/April 20/Abril 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/May 20/Maio 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/June 20/Junho 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/July 20/Julho 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/August 20/Agosto 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/September 20/Setembro 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/October 20/Outubro 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/November 20/Novembro 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/December 20/Dezembro 20/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/ on <a/ em <a/g' {} + | |
#traduzindo compartilhamentos | |
find static -type f -name '*.html' -exec sed -i '' 's/Share this post/Compartilhe!/g' {} + | |
#traduzindo leia mais | |
find static -type f -name '*.html' -exec sed -i '' 's/>Read/>Leia/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/>more posts</>mais artigos</g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/by this author/deste autor/g' {} + | |
#trazudindo paginação | |
find static -type f -name '*.html' -exec sed -i '' 's/Older Posts/Artigos anteriores/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/Newer Posts/Artigos mais recentes/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/Page \([0-9][0-9][0-9]\) of /Page \1 de /g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/Page \([0-9][0-9]\) of /Page \1 de /g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/Page \([0-9]\) of /Page \1 de /g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/>Page />Página /g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/- Page/- Página/g' {} + | |
#traduzindo página de tags | |
find static -type f -name '*.html' -exec sed -i '' 's/A 1-post collection/1 artigo/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/A \([0-9][0-9][0-9]\)-post collection/\1 artigos/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/A \([0-9][0-9]\)-post collection/\1 artigos/g' {} + | |
find static -type f -name '*.html' -exec sed -i '' 's/A \([0-9]\)-post collection/\1 artigos/g' {} + | |
#trazudindo rodapé | |
find static -type f -name '*.html' -exec sed -i '' 's/Proudly published with /Publicado com /g' {} + | |
#traduzindo rss | |
#find static -type f -name '*.html' -exec sed -i '' 's/>Subscribe</ title="Receba novos artigos por email">Inscreva-se</g' {} + | |
#apagando rss | |
find static -type f -name '*.html' -exec sed -i '' '/rss\/\"\>/d' {} + | |
rm -rf static/rss | |
#buster preview | |
buster deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment