This commit is contained in:
Diogo 2024-11-28 18:30:52 -03:00
parent d43356f905
commit e93a785fc9
3 changed files with 9 additions and 11 deletions

View file

@ -1,6 +1,7 @@
all:
@printf "\033[33mGerando website...\n"
@printf "Gerando website...\n"
@rm -rf public blame.txt
@git add posts/*
@mkdir -p public/notes
@cp -r assets public
@printf "Makefile:\n\n" >> blame.txt
@ -24,7 +25,7 @@ all:
@echo "<pre>" >> public/blame/index.html
@cat blame.txt | sed 's/</\&lt;/g;s/>/\&gt;/g' >> public/blame/index.html
@echo "</pre>" >> public/blame/index.html
@printf "\033[35mListando posts...\n"
@printf "Listando posts...\n"
@cat template/head.html > public/index.html
@cat template/intro.html >> public/index.html
@for PAGE in $$(/bin/ls -1 ./posts | sort -r | tr '\n' ' ');\
@ -33,4 +34,4 @@ all:
echo "<hr><article><h1>$$(cat .tmp | head -n 1)</h1><p>$$(cat .tmp | head -n 5 | tail -n +2)</p><a href=\"/notes/$$PAGE\">$$PAGE↩</a></article>" >> public/index.html; \
done
@cat template/footer.html >> public/index.html
@printf "\033[32mConcluido.\033[0m\n"
@printf "Concluido.\n"

Binary file not shown.

After

Width:  |  Height:  |  Size: 990 KiB

View file

@ -199,7 +199,7 @@ table, th, td {
}
table {
border: none;
border: solid 2px var(--accent);
overflow: scroll;
margin: 1em;
margin-left: auto;
@ -218,7 +218,8 @@ tr:hover {
th {
font-weight: bold;
background-color: var(--background-alt);
background-color: var(--accent);
color: var(--background);
}
tr:nth-of-type(even) {
@ -232,8 +233,9 @@ tr:nth-of-type(even) {
}
}
@media only screen and (orientation: portrait) {
@media only screen and (max-width: 1200px) {
hgroup {
display: initial;
position: initial;
}
@ -245,11 +247,6 @@ tr:nth-of-type(even) {
}
/* Code */
p > code {
color: var(--foreground);
background-color: var(--background-alt);
}
div.sourceCode, pre, code {
background-color: var(--code);
padding: 3px;