Commit graph

73 commits

Author SHA1 Message Date
1b1f6ce2c2 Add style for contact form 2020-03-22 22:43:36 +01:00
5896dc2ad0 Add ABOUT_PAGE variable for linking an about page too the profile in home 2020-03-17 01:50:07 +01:00
43241c657c Add rollover on profile links 2020-03-16 15:16:35 +01:00
4ac3d4c5b5 Arrange pre and code rules 2020-03-07 00:38:30 +01:00
529ac7d50b Remove old tt and kbd css rules 2020-03-07 00:22:25 +01:00
c9d7f5e81b Rework pre elements 2020-03-07 00:21:26 +01:00
b49a4a5d9c Page template inherit from base and not index 2020-02-25 00:53:02 +01:00
2c80e2e2d6 Increase icon size for nav-buttons 2020-02-21 16:18:40 +01:00
1215abaf4f Load jQuery from local 2020-02-21 16:10:22 +01:00
f9f0709bce Icons from icomoon.io 2020-02-21 15:44:04 +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
b7c3285563
Gitub actions (#53)
* push action

Initial scratch pad

* #26 requirements.txt added

* #26 unit test failures fixes

* #26 install theme in action

python3 compatible test

* #26 test failure fixes based on new pelican

* #26 python3 test fixes
2019-09-02 22:27:15 +05:30
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
f576582b9b Remove unused functionality from script.js
It was causing an error in console.log
2019-08-28 12:23:52 +03:00
Vitaly Potyarkin
19ccfbdeaf Use jQuery from Google CDN 2019-08-28 11:57:26 +03:00
Vitaly Potyarkin
ab0dbd5542 Import script.js from the Ghost theme
Source repo (MIT): https://github.com/zutrinken/attila
Last modified: Mon Sep 3 11:42:49 2018 +0200
Commit: 6c3b7fff419e1350da55f91d8a4362dd40175e84
Tag: 1.7.5
2019-08-28 11:48:12 +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
7b2f7a57b9 Change code block font size and size 2019-02-06 00:21:28 +01:00
3a13bf43c1 Remove unused fonts and JS in header for base 2019-02-03 23:34:52 +01:00
8d42b828ff Rework font managememt
Remove icon font and replace it with awesome, remove google font and replace it with locally store ones
2019-02-03 23:17:54 +01:00
87ba94031e Enlarge post with (.inner max-width) 2019-02-01 12:02:43 +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
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