summaryrefslogtreecommitdiff
path: root/pelican/themes
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary ids and classes in simple themePierre Equoy2022-02-201-7/+7
| | | | | All of the modified HTML tags can be accessed in CSS without the need for a dedicated id or an additional class.
* Merge branch 'getpelican:master' into masterPierre2022-02-201-0/+16
|\
| * Add categories.html template to default themePaolo Melchiorre2022-02-011-0/+16
| |
* | Add a viewport meta tag in simple theme for better mobile supportPierre Equoy2022-01-171-0/+1
| | | | | | | | | | | | See MDN article about this: https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
* | Use <main> and <article> tags in simple themePierre Equoy2022-01-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Add a <main> tag to surround all the content blocks, so that it's easier to target the main part of a page (be it an article, the list of posts or the different categories) using CSS. Because of this, the <section> part of the article.html template is made redundant, so it is removed. Finally, the generic <div> is replaced by an <article> tag to surround the article's content.
* | Uniformize headers in simple themePierre Equoy2022-01-174-5/+5
|/ | | | | | In the simple theme, some templates are using `h1`, others are using `h2` for the main title of the page (other than the one in the header). This commit changes that so all of the pages are using `h1`.
* Update notmyidea theme to scale down to smaller screensBen Sturmfels2021-09-282-21/+28
| | | | | | | | | | | | | | | | The aim here is to make the theme work respectably on mobile devices with only modest changes. Providing different layouts at multiple breakpoints is beyond the scope of this change. The changes here are: 1. `base.html`: Add a `<meta name="viewport"` element 2. `main.css`: * Use "max-width" instead of "width" * Set "line-height" on the banner and adjust vertical spacing to match * Remove fixed height on the nav bar and force it to contain its child elements
* Merge pull request #2838 from namn/patch-2Justin Mayer2021-04-271-2/+2
|\ | | | | Use a top (instead of bottom) border in hentry
| * Use a top (instead of bottom) border in hentry.Nam Nguyen2021-01-051-2/+2
| | | | | | `hentry` uses `clear: both` with the intention of placing a separator line (1px border) between each entry. However, it is wrongly using `border-bottom` instead of `border-top` to make that separator. CSS `clear` makes space to clear the **preceding** floats. Hence a `border-bottom` won't enjoy that `clear` effect.
* | Strip HTML tags from `notmyidea` page template's titlestriptagsJustin Mayer2021-04-191-1/+1
|/ | | | Fixes #2843
* Expose first and last page of pagination (#2618)Joachim Lusiardi2020-04-301-0/+4
|
* Remove Piwik from theme and settings docsJustin Mayer2020-04-161-19/+0
| | | | | Name has been changed, and rather than fix it, it makes more sense to deprecate analytics in Pelican core and relegate them to plugins/themes.
* Put summary in notmyidea "description" HTML metadataJustin Mayer2020-04-152-0/+9
|
* Add HTML meta generator tag to theme base templatesJustin Mayer2020-04-142-0/+2
|
* Add missing <ul> element to index.html template in notmyidea theme (#2545)Boian Berberov2020-04-121-1/+7
|
* Ensure consistent title spacing in themesJustin Mayer2020-04-122-2/+2
| | | | | | Moving the space between the title and sub-title inside the "if" statement eliminates a spurious trailing space when there is no sub-title defined.
* Update links to HTTPS and current 301 redirects in docs/templates/themes (#2661)Kurt McKee2020-04-124-7/+7
| | | | This also updates the Tumblr API to use HTTPS as documented in the current Tumblr API docs.
* Remove CSS references to the non-existent digg.png iconKurt McKee2020-04-121-1/+0
|
* Fixed simple theme, add missing striptags filterkaliko2019-10-252-2/+2
| | | | page.title are missing striptags in title block
* Add CSS classes for reStructuredText figuresJustin Mayer2019-07-231-2/+17
| | | | Fixes #2113
* Update 'simple' theme to use new Atom/RSS settingsBryan Brattlof2019-01-151-4/+4
|
* Merge pull request #2374 from jorgesumle/hreflangJustin Mayer2018-11-127-3/+50
|\ | | | | Add hreflang attribute to default themes
| * Add hreflang attribute to default themesJorge Maldonado Ventura2018-07-057-3/+50
| |
* | Updated base.html to fix issue #2404.Gordon Reeder2018-10-281-6/+5
| |
* | Merge pull request #2376 from strburst/simple_theme_categories_titleJustin Mayer2018-07-063-8/+10
|\ \ | | | | | | Tweaks to simple theme on listing pages
| * | Remove bad whitespace stripping in simple themeAllen Zheng2018-07-062-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This joins the contents of the block to the previous line, which messes up the output formatting in this case. Old vs new output: - <ul> <li>... + <ul> + <li>... This change is already in the 'notmyidea' theme.
| * | Add missing ul tag in tags list in simple themeAllen Zheng2018-07-061-0/+2
| | | | | | | | | | | | | | | | | | There are some li elements generated without a ul/ol around them. Besides being malformed html, this results in there being no margin that lists normally have.
| * | Add h1 to the categories list in simple/notmyideaAllen Zheng2018-07-061-5/+6
| |/ | | | | | | | | | | | | | | | | | | | | The authors.html and tags.html templates both have this. Add it here as well for consistency. This also affects the notmyidea theme because it inherits the categories template from simple. While we're here, also make indentation consistent with other files (4 spaces within a block).
* | Show article category/tags even if no authorsAllen Zheng2018-07-051-1/+1
|/ | | | | | | | | | Before this commit, the behavior of the simple theme is to hide the category and tags if there is no author defined, even if the category/tags are present. This appears to be unintentional, due to a misplaced `endif`. Fix this by moving the endif to the right place, so that the other if blocks aren't nested.
* Support translation of lang attribute in default themesJorge Maldonado Ventura2018-07-026-3/+7
|
* Clean simple themeAlexandre Bonnetain2018-06-198-10/+48
|
* Merge pull request #2238 from mosra/feed-urlsJustin Mayer2018-03-232-12/+12
|\ | | | | Feed URL settings, making feeds aware of absolute URLs
| * Use FEED_*_URL settings in the builtin themes.Vladimír Vondruš2017-10-292-12/+12
| |
* | Optimize PNG images losslessly using Google zopflipngPeter Dave Hello2017-12-2520-0/+0
|/
* Remove Internet Explorer script, as it wasn't being used: 404 HTTP errorJorge Maldonado Ventura2017-07-301-4/+0
|
* Store fonts of notmyidea theme locallyJorge Maldonado Ventura2017-07-308-1/+432
| | | | | | Used google-font-download ((commit ecc521e894c55e83773351264fe5bbef99ae70ad)) to download the fonts. font-download -f 'woff woff2' -l 'latin' 'Yanone Kaffeesatz:400'
* Remove trailing whitespaces from notmyideaJorge Maldonado Ventura2017-07-302-33/+33
|
* Fixup ec5c77b25145f7c20fee24c6b85b478295dbc956derwinlu2017-05-051-1/+1
| | | | fix forgotten PAGES -> pages
* Upgrade legacy GA tracking code.Kevin Deldycke2016-09-211-8/+7
|
* Use <time> instead of <abbr>.Lukas Prokop2015-11-052-5/+5
| | | | | | | | | | | | | | | | The pubdate given is in no way an abbreviation. Hence the semantics of <abbr> do not justify its usage in this context. <time> was introduced in HTML5. It's datetime attribute can override the textContent. Anyway it specifies a date+time of a given event. http://www.w3.org/TR/html5/text-level-semantics.html#the-time-element Originally the pubdate attribute was meant to annotate that the publication date of the closest section unit is specified, but this was dropped and is not part of the official specification. https://www.w3.org/wiki/HTML/Elements/time
* Made name of blogroll/social widgets configurable.Ben Rosser2015-10-111-2/+2
| | | | | | | | | | | | | | | The BLOGROLL_WIDGET_NAME and SOCIAL_WIDGET_NAME settings are now respected by notmyidea if they are specified in your config file. They override the default names of "blogroll" and "links" in the notmyidea theme. Used default() in template to simplify template code. Renaming BLOGROLL setting to LINKS, changed default also. Updated tests to check 'links' instead of 'blogroll'. Whoops; links, not link.
* remove article.keywords from simple themederwinlu2015-09-051-4/+0
| | | | | | | We don't process 'keywords' metadata specially, so it never gets processed into a list. This prevents issues like #1733.
* Correct render of article description metajah2015-08-111-3/+3
| | | | | in the simple theme: the template incorrectly assumed that the source metadata is made available as a list of strings. Fixes #1792.
* remove PAGES; use pages insteadderwinlu2015-06-272-2/+2
| | | | | * remove PAGES from context as pages is available * add section to FAQ to provide guidance
* Update simple theme to fix #1068Elana Hashman2015-06-211-1/+3
|
* Fixes #1068, #1572: template page navigation bugsElana Hashman2015-06-211-9/+4
| | | | | | | | | | | | | | | | Updates the template logic for when page navigation is included in the generated HTML in the notmyidea theme, fixing: * Issue #1068: useless pagination controls should not be displayed when a single page is generated (i.e. "Page 1/1"). New logic prevents the generation of these superfluous page navigation controls. Tests updated accordingly. * Issue #1572: when multiple pages are generated and the last page contains only one item, the closing </ol> and </section> tags are not generated, resulting in page breakage. We need to check if articles_page.has_other_pages(); if it does, a list has been generated per line 19 or 25 and the tags must be closed.
* Load external resources via HTTPS when availableJustin Mayer2015-06-027-8/+8
| | | | | | | | | | | | This replaces all `http://` and `//:` links with `https:`. The protocol- relative URL scheme is now deemed to be an anti-pattern. There are security advantages to using HTTPS, and there are no significant performance concerns. In short, if the asset we need is available via HTTPS, then that asset should always be loaded via HTTPS. Fixes #1736
* fix the meta tags added in #1028Alberto Scotto2015-04-081-3/+3
| | | | | The attribute 'contents' should be 'content'. See http://www.w3schools.com/tags/att_meta_content.asp
* Merge pull request #1635 from SkyLothar/masterJustin Mayer2015-03-211-1/+1
|\ | | | | Remove redundant if-condition in index template
| * remove useless if condition in index templateSkyLothar2015-02-221-1/+1
| |