diff --git a/layout/item.html b/layout/item.html index 0a1b712..e235cde 100644 --- a/layout/item.html +++ b/layout/item.html @@ -1,10 +1,10 @@
-

{{ title }}

-

Published on {{ date }} by {{ author }}

+

{{ title }}

+

{{ category_label}} - {{ date }}

-{{ summary }} ... +{{ summary }} ...

-Read More +Read More
diff --git a/layout/list.html b/layout/list.html index 79a6aab..be196f9 100644 --- a/layout/list.html +++ b/layout/list.html @@ -1,5 +1,4 @@ -

{{ title }}

{{ content }}
-RSS +RSS
diff --git a/layout/page.html b/layout/page.html index 1912997..2797ade 100644 --- a/layout/page.html +++ b/layout/page.html @@ -3,40 +3,60 @@ {{ title }} - {{ subtitle }} - + + + + + + + + + + + + + + + + + + + + + - +
+ + +
-
-{{ content }} -
+
+
+
{{ content }}
+
+
- + diff --git a/layout/post.html b/layout/post.html index f0a42be..535214e 100644 --- a/layout/post.html +++ b/layout/post.html @@ -1,5 +1,5 @@
-

{{ title }}

-

Published on {{ date }} by {{ author }}

+

{{ title }}

+

{{ category_label }} - {{ date }}

{{ content }}
diff --git a/makesite.py b/makesite.py index d02ebcd..6ac7633 100755 --- a/makesite.py +++ b/makesite.py @@ -159,6 +159,17 @@ def make_posts(src, src_pattern, dst, layout, **params): page_params = dict(params, **content) page_params['date_path'] = page_params['date'].replace('-', '/') + page_params['year'] = page_params['date'].split('-')[0] + + cat = [] + if 'category' in page_params: + cat.append(str(page_params['category']).strip()) + elif 'categories' in page_params: + for s in page_params['categories'].split(' '): + if s.strip(): + cat.append(s.strip()) + page_params['category'] = cat + page_params['category_label'] = ' '.join(cat) # TODO DEBUG #print(page_params) @@ -186,6 +197,10 @@ def make_list(posts, dst, list_layout, item_layout, **params): items = [] for post in posts: item_params = dict(params, **post) + #print(item_params) + #print(0/0) + item_params['year'] = item_params['date'].split('-')[0] + # TODO recuperer more item_params['summary'] = truncate(post['content']) item = render(item_layout, **item_params) items.append(item) @@ -207,6 +222,7 @@ def main(): # Default parameters. params = { 'base_path': '', + 'title': 'Blog', 'subtitle': 'Lorem Ipsum', 'author': 'Admin', 'site_url': 'http://localhost:8000', @@ -237,16 +253,16 @@ def main(): # Create blogs. blog_posts = make_posts('posts', '**/*.md', - '_site/{{ date_path }}/{{ slug }}.html', - post_layout, blog='blog', **params) + '_site/{{ year }}/{{ slug }}.html', + post_layout, **params) # Create blog list pages. make_list(blog_posts, '_site/index.html', - list_layout, item_layout, blog='blog', title='Blog', **params) + list_layout, item_layout, **params) # Create RSS feeds. make_list(blog_posts, '_site/blog/rss.xml', - feed_xml, item_xml, blog='blog', title='Blog', **params) + feed_xml, item_xml, **params) # Test parameter to be set temporarily by unit tests. diff --git a/params.json b/params.json index 272042c..8f8be5f 100644 --- a/params.json +++ b/params.json @@ -1,4 +1,5 @@ { - "subtitle": "Blog du Yax", + "title": "Le Blog du Yax", + "subtitle": "GNU, Linux, BSD et autres libertรฉs", "author": "Yax" } \ No newline at end of file diff --git a/static/css/pure/HISTORY.md b/static/css/pure/HISTORY.md new file mode 100644 index 0000000..5081ef5 --- /dev/null +++ b/static/css/pure/HISTORY.md @@ -0,0 +1,478 @@ +Pure Change History +=================== + +1.0.1 (2019-07-10) +------------------ + +* Fix "selected" menu item labels in nested menus (#708) +* Fix bug in pure-button active state's border color. (#729) +* Fix horizontal scrollbars not appearing in IE11 and Chrome (#740) +* Fix pure-table-bordered issues (#718) + + +1.0.0 (2017-06-05) +------------------ + +The community has battle-tested Pure and provided valuable feedback. We are now at a place where we can guarantee backwards compatibility through all subsequent 1.x releases. + +We hope you have found Pure to be useful and unobtrusive.. To provide feedback, please comment on this GitHub issue, or file a new issue to have it tracked as a separate thread. + + +0.6.2 (2017-01-05) +------------------ + +* Added proper module API for node users [#619] + +### Buttons + +* Added Button Groups to Pure [#621] + +### Menus + +* Reset style for horizontal dropdown separator [#620] + +0.6.1 (2016-10-12) +------------------ + +* Migrate to PostCSS for browser prefixes [#617] +* Remove duplicate Firefox inner focus border [#457] +* Fix grid inside table in IE 10/11 [#504] +* Fix CSSLint issues [#609] +* Upgraded grunt dependencies to 1.x [#609] + +0.6.0 (2015-02-07) +------------------ + +* Upgraded Normalize.css to 3.0.2. +* Dropped IE7 support. +* Refactored Menus. +* Numerous minor bug fixes. + +### Menus + +* Implemented flatter, low-specificity selectors, not attached to HTML elements, + for easier customization. +* Removed pure-menu-open class. +* Added pure-menu-scrollable capability, to allow for scrollable menus when + restricted by width or height. +* Added pure-menu-allow-hover to reveal dropdowns on hover. +* Removed various default styling properties, making menus a bit more bare-bones, +a bit less opinionated, a bit easier to customize on top. +* Broke Menu up into files for core, horizontal, dropdowns, scrollable, and skin, + again for improved optimization and ease of customization: take only what you + need. +* Removed Paginator. +* While not part of the Pure repo itself, the accompanying Pure website now + features additional menu examples and an example script for enabling dropdowns + and improved accessiblity. + +0.5.0 (2014-05-27) +------------------ + +### Base + +* Added the `.pure-img` class name for make images scale with the viewport in + fluid layouts. + +### Grids + +* __[!]__ Removed `.pure-g-r` from core, in favor of a mobile-first responsive + grid system. ([#24][], [#267][]) + + To use the mobile-first grid system, you need to pull in `pure.css`, along + with `grids-responsive.css`. We also have `grids-responsive-old-ie.css` that + you can serve to IE < 9 users so that they can view a desktop-version of your + website: + + ```html + + + + + + + ``` + + Find out more about the new grid system at . + +### Tables + +* Switched cell padding in Tables from `px` to `em` units, and also increased + the amount of padding to `padding: 0.5em 1em`. + + +[#24]: https://github.com/pure-css/pure/issues/24 +[#267]: https://github.com/pure-css/pure/pull/267 + + +0.4.2 (2014-02-13) +------------------ + +* Added `main` to Pure's `bower.json` file to allow easier integration with + build processes and tooling. ([#286][] @stevenvachon) + +### Forms + +* Improved how `` elements look in Chrome by fixing + paddings. ([#283][] @jpetto) + +* Removed `font-size` rules from ``, ``, and `
` + elements within `.pure-form`. Font sizes are now inherited from the + application's CSS file. ([#265][]) + +* Invalid `` elements within a Pure Form no longer explicitly set a + `border-width`. ([#295][] @kwando) + + +[#265]: https://github.com/pure-css/pure/issues/265 +[#283]: https://github.com/pure-css/pure/issues/283 +[#286]: https://github.com/pure-css/pure/issues/286 +[#295]: https://github.com/pure-css/pure/issues/295 + + +0.4.1 (2014-02-06) +------------------ + +### Base + +* Elements that have Pure classnames which set a `display` declaration _and_ use + the `hidden` HTML attribute will now properly be hidden. With these changes, + the following button will be hidden from view: + + ```html + + ``` + + A new rule for the `[hidden]` selector has been added with the declaration: + `display: none !important;`. This is a time where it's appropriate for a + project like Pure to use `!important`. ([#177][]) + +### Buttons + +* Removed all the occurrences of `-ms-linear-gradient()` from Buttons since it + has never been in the final version of IE 10. ([#200][]: @AurelioDeRosa) + +* `` Buttons now have the same height as non-input buttons. + `font-family: inherit;` has been added to the `.pure-button` selector to + normalize the difference in height. ([#221][] @narcis-radu) + +* Buttons now have visually uniform default `padding` on all four sides. The + left/right padding is 2x the top/bottom padding. ([#191][] @achalv) + +### Forms + +* Added `vertical-align: top;` to `