From 3fc8785398edec6f46a32ee92b01f1d185c690a2 Mon Sep 17 00:00:00 2001 From: Castro0o Date: Fri, 8 May 2015 16:02:50 +0200 Subject: [PATCH] small adjustments --- README.md | 10 +++++++++- mmdc_wiki2web.py | 2 +- web/2015-Lucia_Dossin.html | 10 +++++----- web/2015-Luther_Blisset.html | 10 +++++----- web/css/style.css | 3 ++- 5 files changed, 22 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9233a2e..66d39f7 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,18 @@ Or index all the gaduation works: `python mmdc_wiki2web.py --category Graduation_work` +## Thumbnails +thumbnails in work pages are hidden. this can be changed. + +style_projectpage.css: + +`#thumnail { +display: none; +}` + ## template files web/page-template.html - 1) SCRIPTS in bottom of generated pages does not close proberly. And non-relevant scripts are also still in. should be: diff --git a/mmdc_wiki2web.py b/mmdc_wiki2web.py index 9b83229..1745e4c 100755 --- a/mmdc_wiki2web.py +++ b/mmdc_wiki2web.py @@ -66,7 +66,7 @@ for member in memberpages: workpage_mw = replace_gallery(workpage_mw) workpage_mw = replace_video(workpage_mw) workdict = parse_work(member, workpage_mw) # create dictionary workpage_mw template - if len(workdict['Creator'])>1 and len(workdict['Title'])>1 and len(workdict['Description'])>1: + if len(workdict['Creator'])>1 and len(workdict['Title'])>1 and len(workdict['Description'])>1 and len(workdict['Thumbnail'])>1: for key in workdict.keys(): # convert Extra, Description, Bio to HTML if key in ['Extra', 'Description', 'Bio'] and workdict[key]: workdict[key] = pandoc2html( (workdict[key].decode('utf-8'))) diff --git a/web/2015-Lucia_Dossin.html b/web/2015-Lucia_Dossin.html index eb62720..143714c 100644 --- a/web/2015-Lucia_Dossin.html +++ b/web/2015-Lucia_Dossin.html @@ -71,11 +71,11 @@ - - - - + + + + - + \ No newline at end of file diff --git a/web/2015-Luther_Blisset.html b/web/2015-Luther_Blisset.html index 2f03cbb..03330e7 100644 --- a/web/2015-Luther_Blisset.html +++ b/web/2015-Luther_Blisset.html @@ -73,11 +73,11 @@ - - - - + + + + - + \ No newline at end of file diff --git a/web/css/style.css b/web/css/style.css index c5b35df..00405fb 100644 --- a/web/css/style.css +++ b/web/css/style.css @@ -295,7 +295,8 @@ label{ max-width: 100%; max-height: 100%; vertical-align: middle; - + width:500px; + -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%);