Commit graph

52 commits

Author SHA1 Message Date
c5923a4be3 Change a propos label 2023-02-27 15:35:48 +01:00
7d41c1ce0e Change background position 2022-01-31 23:05:06 +01:00
2545ac9f20 Change A propos label 2022-01-31 23:04:40 +01:00
505f5cbea0 Strip tag in title 2020-04-14 14:57:49 +02:00
5896dc2ad0 Add ABOUT_PAGE variable for linking an about page too the profile in home 2020-03-17 01:50:07 +01:00
b49a4a5d9c Page template inherit from base and not index 2020-02-25 00:53:02 +01:00
1215abaf4f Load jQuery from local 2020-02-21 16:10:22 +01:00
cb6ff686db Add AUTHOR and SOCIAL on the first page 2020-02-21 15:22:41 +01:00
8f28d9a11d Strip tags for twitter card title 2020-02-19 11:43:52 +01:00
1057189416 Merge branch 'master' of https://github.com/arulrajnet/attila into upstream 2020-02-19 10:57:30 +01:00
Arul
a31ff4e2c9
Merge pull request #51 from sio/fix-js-vulnerability
Fix Javascript issues
2019-08-31 14:03:39 +05:30
Vitaly Potyarkin
73e216f522 Proper handling of canonical URLs (#52)
* add canonical_url block to base.html, change canonical url for pages

* Avoid nesting block within block

That leads to repeating the block twice instead of replacing its value
from `base.html`
2019-08-31 14:02:27 +05:30
Vitaly Potyarkin
19ccfbdeaf Use jQuery from Google CDN 2019-08-28 11:57:26 +03:00
Vitaly Potyarkin
c7698d2b31 Revert changes to header id for blog posts (#49) 2019-07-31 21:45:56 +05:30
Arul
e7a78c4ff7
#44 no default cover (#45)
support for HOME_COVER and HOME_COLOR
2019-03-11 07:53:39 +05:30
1cc87fa90d Tag pl-fr is not dislayed on article and on tag cloud 2019-02-06 00:33:06 +01:00
3a13bf43c1 Remove unused fonts and JS in header for base 2019-02-03 23:34:52 +01:00
6d6fddd901 Remove share icons 2019-02-01 11:39:35 +01:00
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
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
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
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
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
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
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
f3930d159d jsonld support added. og as seperate partials 2016-12-17 06:47:22 +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
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
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