diff options
-rwxr-xr-x | gen | 14 | ||||
-rw-r--r-- | wpisy/index.html.raw (renamed from wpisy/index.html) | 4 |
2 files changed, 14 insertions, 4 deletions
diff --git a/gen b/gen index 8934f2d..7b7c2ba 100755 --- a/gen +++ b/gen @@ -72,6 +72,13 @@ cat > dest/kronika/rss.xml << EOF <lastBuildDate>$(date -R)</lastBuildDate> EOF +cp wpisy/index.html.raw wpisy/index.html +cat >> wpisy/index.html << EOF +<link href="/kronika.css" rel="stylesheet"> +<h2>Ostatnie wpisy z kroniki</h2> +<div class="content post-list"> +EOF + i=0 for f in `find wpisy/kronika/20* -name '*.md' | sort -r`; do path=`echo $f | sed 's/wpisy//;s/.md//'` @@ -83,12 +90,15 @@ for f in `find wpisy/kronika/20* -name '*.md' | sort -r`; do post_link "$path" "$title" "$photo" "$description" >> wpisy/kronika.html [ $i -lt 20 ] && \ post_rss "$path" "$title" "$photo" "$description" "$f" >> dest/kronika/rss.xml - # [ $i -lt 4 ] && \ - # post_link "$path" "$title" "$photo" "$description" >> wpisy/index.md && \ + [ $i -lt 4 ] && \ + post_link "$path" "$title" "$photo" "$description" >> wpisy/index.html && \ i=$(($i+1)) done echo "</div>" >> wpisy/kronika.html +echo "</div><a href=\"/kronika\">Czytaj więcej...</a>" >> wpisy/index.html echo "</channel></rss>" >> dest/kronika/rss.xml ./ssg5 wpisy dest "$TITLE" "$URL" +rm wpisy/index.html +rm dest/index.html.raw cp -r static/* dest diff --git a/wpisy/index.html b/wpisy/index.html.raw index a0ba1a4..a02e0ba 100644 --- a/wpisy/index.html +++ b/wpisy/index.html.raw @@ -2,7 +2,7 @@ .joinus { position: relative; top: -10px; - width: 100vw; + width: 100%; padding: 160px 20%; background-image: url(/assets/bg.jpg); background-size: cover; @@ -50,4 +50,4 @@ <h1>19 PDH Puszcza</h1> -<a href="/kronika">Nasza kronika</a> +Lorem ipsum |