From e4ae586170229de78aaf00963e2f0c49427a9926 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 27 Oct 2014 13:17:43 +0100 Subject: Implemented latest article view * the first paragraph of the three latest articles of my blog are now displayed on the overview page * feed is fetched via `curl` in `01_raw/article_feed.xsl` ** as with all commit feeds the article feed is processed further in the `02_augment` level ** the count of articles to be displayed is defined in `00_content/meta.xml` as `article_count` * CSS was updated to correctly display the article summary --- source/00_content/meta.xml | 1 + source/01_raw/article_feed.xsl | 23 ++++++++++++++++++ source/02_augment/articles.xsl | 50 ++++++++++++++++++++++++++++++++++++++ source/02_augment/commits.xsl | 2 +- source/99_result/main.css | 7 +++--- source/99_result/overview.xsl | 54 ++++++++++++++++++++++++++++++++++-------- 6 files changed, 123 insertions(+), 14 deletions(-) create mode 100644 source/01_raw/article_feed.xsl create mode 100644 source/02_augment/articles.xsl diff --git a/source/00_content/meta.xml b/source/00_content/meta.xml index b3facb1..4c4c2a9 100644 --- a/source/00_content/meta.xml +++ b/source/00_content/meta.xml @@ -3,4 +3,5 @@ kummerlaender.eu http://localhost:8000 20 + 3 diff --git a/source/01_raw/article_feed.xsl b/source/01_raw/article_feed.xsl new file mode 100644 index 0000000..ab652b7 --- /dev/null +++ b/source/01_raw/article_feed.xsl @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + diff --git a/source/02_augment/articles.xsl b/source/02_augment/articles.xsl new file mode 100644 index 0000000..36e1c7c --- /dev/null +++ b/source/02_augment/articles.xsl @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/02_augment/commits.xsl b/source/02_augment/commits.xsl index c5caeb9..e9c4ae8 100644 --- a/source/02_augment/commits.xsl +++ b/source/02_augment/commits.xsl @@ -63,7 +63,7 @@ - + diff --git a/source/99_result/main.css b/source/99_result/main.css index 882204f..5f473a7 100644 --- a/source/99_result/main.css +++ b/source/99_result/main.css @@ -3,11 +3,12 @@ body{font:1em Droid Sans,sans-serif,Verdana,Arial,FreeSans;color:#272828} h1{width:100%;border-bottom:0.2em solid #e3e8e8} a{text-decoration:underline;color:#272828} a:hover{color:black} -h2{font-size:1.5em;color:#F80;margin:.5em 0 .5em 0} +h2{font-size:1.3em;text-decoration:none;color:#272828;font-weight:bold} h2 a{text-decoration:none} -h2 span{font-size:0.9em;text-decoration:none;color:#272828;font-weight:normal} -h3{font-size:1.05em;font-weight:normal;margin-bottom:.2em;border-bottom:.1em solid #e3e8e8} +h3{font-size:1.2em;color:#F80;font-weight:bold;margin-bottom:.2em;border-bottom:.1em solid #e3e8e8} +h3 span{font-size:0.9em;color:#272828;font-weight:normal} h3 a{text-decoration:none} +p{margin:0 0 .5em 0;text-align:justify} ul{margin:0;text-align:justify} ul li{list-style-type:circle} dt {float:left;clear:left;width:7em} diff --git a/source/99_result/overview.xsl b/source/99_result/overview.xsl index 918a9dd..d16906e 100644 --- a/source/99_result/overview.xsl +++ b/source/99_result/overview.xsl @@ -18,10 +18,11 @@ - + + + - @@ -43,9 +44,11 @@

» - - - + + + + +

@@ -63,6 +66,8 @@ + | + @@ -75,6 +80,28 @@ + +

+ » + + + + + +

+ + + + + + + | + + + + +
+ @@ -92,11 +119,18 @@ -

» - - Latest commits - - +

+ + Latest articles + +

+ + + +

+ + Latest commits +

-- cgit v1.2.3