Commit graph

47 commits

Author SHA1 Message Date
Arul
e7a78c4ff7
#44 no default cover (#45)
support for HOME_COVER and HOME_COLOR
2019-03-11 07:53:39 +05:30
Guilhem Saurel
6fce82882e update for pelican 4 (#40) 2019-01-03 07:52:10 +05:30
Chris Dinant
31af8bf4ac Update article.html (#39)
The cover image wasn't showing properly because of a <span> element that was not closed.
Thanks for the great theme!
2018-11-02 10:26:10 +05:30
Vitaly Potyarkin
b5c16f8937 Make menu animation the same for header and body (#38)
When menu sidebar was opened the main page body would slide to the left
while the header would stay in place. That would result in text alignment
inconsistency between header and the post body.

This commit adds the same sliding animation to the blog header.
Upstream theme for Ghost behaves similarly.

Screenshots: before [[1]], after [[2]]

[1]: https://i.imgur.com/dDaWoBW.png
[2]: https://i.imgur.com/SBhGsIW.png
2018-09-29 13:32:52 +05:30
Vitaly Potyarkin
84e7843aaa Render tag cloud on tags page (#37)
Tags page was quite boring and didn't use horizontal space efficiently.
This commit replaces plain tag list with tag cloud that gracefully scales
to any screen (Attila's responsive design principle is not violated).

Details:

- Tags are still sorted alphabetically
- Tags with more articles have bigger font size
- Number of font size steps is defined via TAG_CLOUD_STEPS variable.
  If that variable is not set or is zero, default value of 5 steps is
  used. Stylesheet is written to support up to 10 steps.
- Tag tooltip shows number of articles with that tag

There exists a separate plugin for tag cloud[1], but using it still
requires making changes to the theme. Trivial math calculations can be
done as easily in Jinja as in Python, so the dependency on external
package can and should be avoided.

Screenshots: before [[2]], after [[3]]

[1]: https://github.com/getpelican/pelican-plugins/tree/master/tag_cloud
[2]: https://i.imgur.com/ivZQIxi.png
[3]: https://i.imgur.com/fLNVKpj.png
2018-09-29 13:31:14 +05:30
Vitaly Potyarkin
6de60cb90b Fix responsive layout for Archives page (#35)
Previously the width of date field was hardcoded at 180px and that would
take up most of screen estate on mobile devices. The most important part
- article titles - may become condensed and even unreadable
2018-09-14 15:00:08 +05:30
Vitaly Potyarkin
e2babcce12 Remove unused minified CSS (#36)
Minified version of stylesheet was not used anywhere and might be (or
become) outdated. It is better to remove it altogether to avoid confusion
among users
2018-09-14 14:19:22 +05:30
Age Manning
b60a72e189 example correction that prevents author's cover images from being ove… (#28)
* example correction that prevents author's cover images from being overwritten by inherited code in index.html

* article, author, category and tag extends to base.html instead of index.html
2018-07-08 22:44:41 +05:30
Vitaly Potyarkin
b29690fba3 Fix variable name in page template (#30)
The variable was incorrectly pasted as `article` which made rendering
pages impossible. Thanks to @kloppen for triaging and suggesting the fix.

Fixes #29
2018-06-29 10:48:53 +05:30
Vitaly Potyarkin
360e98e609 Add MIT license text (#32) 2018-06-29 10:47:06 +05:30
Vitaly Potyarkin
e6ccaf33d2 Google analytics update (#31)
* Update Google Analytics tracking code

Previous template was using ga.js which is considered legacy now. The
recommended way to enable Google Analytics now is via gtag.js:
https://support.google.com/analytics/answer/1008080

* Do not store IP address (personally identifyable information)

With GDPR in effect IP addresses are considered personally identifyable
information, and storing them becomes legally complicated. Anonymizing IPs
seems to be a sensible default behavior.

The only drawback is slightly reduced geolocation accuracy.

More information:
- https://developers.google.com/analytics/devguides/collection/gtagjs/ip-anonymization
- https://support.google.com/analytics/answer/2763052
- https://www.blastam.com/blog/5-actionable-steps-gdpr-compliance-google-analytics
2018-06-29 10:45:14 +05:30
Arul
1e0a56e0d8
linkedin and github link (#27)
* Ref #24 linkedin and github social link in author page and article page

-test case for that

- BaseTest added

* Ref #24 icon to link since linkedin and github is not present

* article color fix
2018-05-18 17:26:41 +05:30
Arul
7b26ad1013
Header fixes (#25)
* #21 changing logic to selecting cover image

- For categories, tags

- Some code refactor and indenting

* #21 initial codes for pelican unit tests

* #21 few more testing changes

* Ref #21 unit tests for article tests coverimages

* Ref #21 unit tests for page, tags, category and author coverimages

* Ref #21 readme updated
2018-05-14 13:26:35 +05:30
beleriandcrises
994b999633 Custom headers (#19)
* added custom headers for page, tag and category templates

* fixed readme

* fixed readme

* removed HEADER_COVER_BY_PAGE
2018-04-29 06:35:06 +05:30
Brandon DeRosier
472f835f9a Implement AUTHOR_BIO "name" and "cover" fields. (#16)
* Implement AUTHOR_BIO "name" and "cover" fields.

In the theme readme, there's are "name" and "cover" fields in the
AUTHOR_BIO example, but these two fields weren't implemented yet.

Instead, the author page was displaying the author entry through
the title Jinja2 filter (which doesn't work so well for surnames like
mine, which contains multiple capital letters ;) ), and the cover
image was being used for the avatar image. This change uses the
"name" and "cover" fields for these, respectfully.

The cover image on the author page will also gracefully fall back
to the site default if an author cover isn't specified as well.

* Correct name author name display in post loop

* Set author name if author bio not set

default author name string will be title and that can be override form auther bio name
2017-12-02 23:15:03 -08:00
Arul
858c116b74 How to set menu (#12)
* #11 moved to adoc from md

* #11 fabfile to publish docs to gh-pages

* #11 sidebar menu docs added
2017-09-17 12:02:30 +05:30
Ryder McMinn
a6aaa9eec3 Add Cover for Single Author's Page (#10)
* Single Author Cover -- using AUTHORS_BIO config

* author cover image in http://{site_url}/author/{author_name} page
2017-07-15 15:34:55 +05:30
Arul
6c5de3f38b issues #6 and #7 customize credits
option to enable / disable credits

option to change the credits valus

by default credits is enabled
2017-06-10 01:20:59 +05:30
Arul
dc1cf00d49 #2 support for relative and absolute urls
-in author avatar, custom css and js

color metadata support in article

updated the readme
2017-06-10 00:29:08 +05:30
Arul
309cc5718a missing slash in SITEURL 2017-06-10 00:24:33 +05:30
Arul
8e91c6096c updated missing slash / 2017-06-04 18:25:42 +05:30
Monica Powell
be2c4c6ff5 Author casing (#5)
* added trailing slash to Home link - to properly handle root urls

* updated Home link on author page

* updated Home link on misc. pages

* switched from capitalize to title in order to properly capitalize two word names

* reverted URL changes to keep seperate from casing logic changes

* updated metatag logic to remove extraneous metatags on articles

* removed other changes. only author casing in this PR
2017-06-03 10:48:35 +05:30
Arul
49fc5bfe2f Merge pull request #4 from M0nica/master
added trailing slash to Home link - to properly handle root urls
2017-06-03 10:39:14 +05:30
Arul
311d91b846 added slash in missing files 2017-06-03 10:37:59 +05:30
Monica Powell
2268a0723b updated Home link on misc. pages 2017-05-27 08:48:03 -04:00
Monica Powell
8c22cba845 updated Home link on author page 2017-05-27 08:46:48 -04:00
Monica Powell
86277c8bcf added trailing slash to Home link - to properly handle root urls 2017-05-27 07:58:15 -04:00
Arul
e10fcb6477 Merge pull request #3 from itsonlybarney/hotfix/partial.navigation-update
Amended the display of pages list in navigation.html
2017-05-20 18:22:50 +05:30
Andrew B
8b4f280426 Amended the display of pages list in naviagtion.html
Adjusted the reference of files to correct case
2017-05-20 19:27:34 +10:00
Arul
d55c712052 cover image related fixes 2016-12-17 15:48:53 +05:30
Arul
2db640c0b7 updated readme 2016-12-17 15:13:50 +05:30
Arul
f3930d159d jsonld support added. og as seperate partials 2016-12-17 06:47:22 +05:30
Arul
02dcad911b screenshot added 2016-09-19 17:24:08 +05:30
Arul
a9ed937dac js override support 2016-09-18 15:17:34 +05:30
Arul
9a24473823 fix on author bio 2016-09-18 00:53:14 +05:30
Arul
242a5391fa og and twitter card changes 2016-09-16 22:42:58 +05:30
Arul
3cb3f3d9bc footer theme changes 2016-09-16 12:00:15 +05:30
Arul
c10de8bc99 Merge pull request #2 from arulrajnet/feature/author-bio
Feature/author bio
2016-09-15 22:57:26 +05:30
Arul
994148f3aa author bio in post by author page 2016-09-15 22:56:39 +05:30
Arul
bb994cb94b Author bio in article page
- Example conf in pelicanconf.py
AUTHORS_BIO = {
  "arul": {
      "name": "Arulraj V",
          "cover": "https://www.gravatar.com/avatar/dead1c3ffb26a27d8b5e30e1c30e46e6?s=600",
              "image": "https://www.gravatar.com/avatar/dead1c3ffb26a27d8b5e30e1c30e46e6?s=600",
                  "website": "http://arulraj.net",
                      "location": "Chennai",
                          "bio": "• Architect • DevOps • Full Stack Developer • Aspiring Entrepreneur •",
                              "twitter": "arulrajnet",
                                  "facebook": "arulraj.net"
                                    }
                                    }
2016-09-15 11:31:46 +05:30
Arul
6acd4ce89a previous and next post using neighbors plugin 2016-09-14 16:37:17 +05:30
Arul
16d7c33f3f Merge pull request #1 from arulrajnet/base-setup
Base setup
2016-09-13 23:22:25 +05:30
Arul
21de12c0fc move font folder, progressbar and disqus show comment button 2016-09-13 23:20:16 +05:30
Arul
f5003d5682 added archive category pages 2016-09-13 21:28:52 +05:30
Arul
2fee5e9d3e artilecls list by tag and author 2016-09-13 20:07:13 +05:30
Arul
2db8e49cdb added empty html files 2016-09-12 23:13:58 +05:30
Arul
d7a5aca1f6 initial checkin 2016-09-12 23:13:00 +05:30