Removed auto generating the list
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
876d05f8e9
commit
dc9cbdd0ce
@ -171,6 +171,12 @@ code {
|
||||
font-family: 'IBM Plex Mono', monospace;
|
||||
}
|
||||
|
||||
.date {
|
||||
display: inline;
|
||||
margin-left: 10px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 992px) {
|
||||
body {
|
||||
margin-right: 10vw;
|
||||
@ -192,4 +198,4 @@ code {
|
||||
blockquote {
|
||||
margin-left: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
#### Articles
|
||||
|
||||
</article>
|
||||
<ul class="articles">
|
||||
<li><a href="git_flow.html">Git Workflow</a><p class="date">10/05/2021</p></li>
|
||||
</ul>
|
||||
|
||||
|
16
ssg5
16
ssg5
@ -102,7 +102,6 @@ main() {
|
||||
|
||||
test -n "$urls" &&
|
||||
render_sitemap "$urls" "$base_url" "$date" > "$dst/sitemap.xml"
|
||||
render_article_list "$urls" "$base_url" "$dst" "$src"
|
||||
|
||||
print_status 'url' 'urls' "$urls" >&2
|
||||
echo >&2
|
||||
@ -254,21 +253,6 @@ list_pages() {
|
||||
sed 's#^./##;s#.md$#.html#;s#/index.html$#/#'
|
||||
}
|
||||
|
||||
render_article_list() {
|
||||
urls="$1"
|
||||
base_url="$2"
|
||||
items=""
|
||||
for i in $1; do
|
||||
if ! echo $i | grep -Eq "index|contact"; then
|
||||
url="$i"
|
||||
page_title=$(head -n 1 "$4/${i%\.html}.md" | cut -c 3-)
|
||||
item="<li><a href="\"${url}\"">${page_title}</a></li>"
|
||||
items=$items$item
|
||||
fi
|
||||
done
|
||||
sed -i "s|</article>|<ul class="articles">${items}</ul>|g" "$3/index.html"
|
||||
}
|
||||
|
||||
render_sitemap() {
|
||||
urls="$1"
|
||||
base_url="$2"
|
||||
|
Loading…
Reference in New Issue
Block a user