Pelican theme based on html5up dopetrope design.
Demo: http://hopitaux-a-defendre.github.io/ghm-grenoble/
- Responsive design, with a collapsible lateral navigation menu on mobile
- Pins on the homepage board can be either internal articles or simple external links
- Metadata to display "social share vignettes" of the website: support for Open Graph & Twitter Summary Card
- i18n, with embeded localization in French
- Optional Google Analytics
- W3C-Validated HTML
- Optional "robots-noindex"
- Small:
$ du -ch static/{css,js}/ templates/
32K templates/
153K static/css/
196K static/js/
381K total
Optional variables are available for this theme :
ADDRESS: Your postal address. Accepts HTML.MAIL: Your email address.PHONE: Your phone number.TWITTER_USER: 'Pierre_Paul', should be the url following http://twitter.com/GOOGLEPLUS_USER: '110831175850960549188', should be the url following http://plus.google.com/ when viewing your profile.LINKEDIN_USER: 'pierre-paul-lefebvre/2/9b7/aa' #Again, should be the URL following http://linkedin.com/ when viewing your profile.FACEBOOK_USER: 'pierrepaul.lefebvre', if set in your profile, your profile can be accessed with a simple url like : https://facebook.com/pierrepaul.lefebvreABOUT_TEXT: Any text set here will show up on the bottom right of the page.ABOUT_IMAGE: Image to show at the bottom right of the page.ABOUT_LINK: Will add a link under theABOUT_TEXTpageCOPYRIGHT: optional copyright notice that will appear in the footerDISPLAY_HOMEPAGE_ON_MENU: you can set it toTrueto include a "HomePage" link in the navigation menuDISABLE_LATEST_ARTICLES: you can set it toTrueto hide the "latest articles" section.FAVICON: optional relative path to an imageMETA_IMAGE: optional absolute URL of a custom image for theog:imagemeta property, Twitter summary card, andimagemeta property of Schema.org. This image is used in every page of the blog. Articles and pages can override the defaultMETA_IMAGEby setting theImagemetadata in the relative file.META_IMAGE_TYPE: the MIME type forMETA_IMAGE, this is needed forog:image:type.NOINDEX: can optionally be set toTrueto insert a<meta name="robots" content="noindex">meta tag
Articles can optionally define a Link metadata entry, instead of having content:
in this case, the corresponding article "box" on the homepage will point to that URL,
not to the internal article page.
It currently uses SkelJS v0.3.3, a lightweight framework for building responsive sites.
Summarizing i18n_subsites plugin documentation:
-
Install Babel:
pip install Babel
-
Extract translatable strings from
templates/*.htmlintomessages.pot:pybabel extract --mapping babel.cfg --output messages.pot .
-
Update the
.pofiles based onmessages.pot:pybabel update --input-file messages.pot --output-dir translations/ --domain messages
Translation strings can now be manually edited in the .po files.
-
Compile the
.pofiles into.mobinaries:pybabel compile --directory translations/ --domain messages
