Commit Graph

123 Commits

Author SHA1 Message Date
Aditya Telange bc4d4153dc
add hideMeta param to list
- same as in single
- allows hiding meta in list pages
2021-01-24 18:05:00 +05:30
Aditya Telange 75375a4337 rm use of blockquote in Toc 2021-01-24 17:58:03 +05:30
Florian Kohrt b6842db0a5
Only show vertical bar if necessary in post-meta (#193)
fixes unnecessary "|" shown when post-meta is empty but translations are available
2021-01-24 17:52:45 +05:30
Corban Mailloux 2c67ae9877
Allow page-specific cover settings to win. (#185)
check for front-matter's cover.hidden before global config's
2021-01-22 11:52:00 +05:30
Florian Kohrt 2b3baf94bb
Make some page settings also configurable site wide (#182)
Adds **local** and **global** param to following front-matter vars:
- hideMeta
- ShowToc
- TocOpen
- comments

Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2021-01-17 12:25:35 +05:30
Weichen Liu 946cc1ffe3
single: Add post description (#165)
usage =>
in post params add : 
    description: "Desc Text."
2021-01-02 22:30:20 +05:30
Aditya Telange c9fa6c7915
cover: granular controls for hiding cover image #156
in site config =>
    params:
        cover:
            hidden: true # hide everywhere but not in structured data
            hiddenInList: true # hide on list pages and home
            hiddenInSingle: true # hide on single page

per-page in front-matter =>
   hidden: true # only hide on current single page
2020-12-29 16:44:03 +05:30
Aditya Telange e252e761f5
footer: allow disabling HLJS #143
usage =>

in site config =>
    params:
        assets:
            disableHLJS: true

per-page in front-matter =>
   disableHLJS: true
2020-12-29 16:39:23 +05:30
Aditya Telange 4389e03df9
baseof: pass .Layout
for 0f994eee95/layouts/partials/footer.html (L21)
2020-12-27 22:31:14 +05:30
Aditya Telange 0f994eee95 footer: change scroll behaviour as it was before 80954de
fixes #151

anchored-headings: retain anchor link '#' in URL
cc #108

footer: remove '#' with go-to-top

Revert "anchored-headings: retain anchor link '#' in URL"
This reverts commit 80954de8bd.

Revert "footer: rm unused code"
This reverts commit c76233b350.
2020-12-24 13:00:58 +05:30
Aditya Telange a150c3449a
Link AccessKeys shortcut in title of elements 2020-12-18 20:02:05 +05:30
Aditya Telange b7f8749cdf
Search: Keyboard Bindings for easier navigation (#138)
* set up basic actions on keypress
* add actions to perform conditionally
* add simple highlight animation
* prevent mouseclick to change active element
* clear input box on Escape
* click on Arrow Right
* clear results and focus search-input on esc
* refactor
2020-12-18 11:45:10 +05:30
Kian Kasad 5e40132673
single: add support for custom taxonomy URLs (#125)
* fix URLs of tags in tag lists
* use recommended code by hugo for tag list generator
* https://gohugo.io/templates/taxonomy-templates/#example-list-tags-in-a-single-page-template
* closes: #113
2020-12-11 11:28:09 +05:30
Aditya Telange 4a4408573e
search: init Search feature (#105)
* based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993
* modified working for PaperMod
* fetches current lang index.json for search
* add fuse.js v6.4.3 LICENSE: Apache License 2.0
* bundled fastsearch and fusejs as search.js

Co-authored-by: Craig Mod <stuff@craigmod.com>
2020-12-06 18:19:50 +05:30
Aditya Telange 80954de8bd
anchored-headings: retain anchor link '#' in URL
close: #108
2020-12-05 20:17:07 +05:30
Devorange d4b259cd63
list: use absURL for pagination (#109) 2020-12-05 20:12:55 +05:30
Misha Brukman e89e7570cd
Archive: Close the <sup> tag for month counts (#93) 2020-11-29 09:20:56 +05:30
Aditya Telange 673f7ccc96
baseof: rm unused classes
single, home
2020-11-28 22:33:57 +05:30
Aditya Telange cf4fd27e3d
anchored-headings: port to PaperMod
- add corresponding css
- gen anchored headings for h1-h6
- link with single.html
2020-11-10 12:34:22 +05:30
Aditya Telange b7169d2259
language-switch: enable emojify
- languageName: ":country_emoji:"
 can now be displayed as emoji
2020-11-08 23:07:51 +05:30
Aditya Telange b5d55aee8d
layouts/single: fix Lang Name hidden when LanguageName
was unset
2020-11-08 23:04:24 +05:30
Aditya Telange b239f42f6b
Add accesskeys (attribute specifies a shortcut key to activate/focus an element.)
c - ToC Open/Close
g- Go To Top
h - Home (according to current lang)
t - Theme toggle

more: https://www.w3schools.com/tags/att_global_accesskey.asp
2020-10-30 01:15:43 +05:30
Aditya Telange 9acbc2c134
baseof: use `dir` attribute instead of class
and set default dir to `auto`

main(css): rm unused class
2020-10-30 01:01:48 +05:30
Aditya Telange 684cb2160f layouts: post_meta as partial 2020-10-22 16:53:24 +05:30
Niek Blankers 21241c212e
relative-cover: init Responsive cover images (#43)
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>

- generates images of different sizes
- browser can choose between set of images w.r.t viewport width
- is enabled by default
- supported image formats :
  https://gohugo.io/content-management/image-processing/#target-format

- Customizing site config params:
params:
    cover:
      responsiveImages: false  # if want to disable it
      linkFullImages: true # if link original image on clicking cover
2020-10-22 16:42:26 +05:30
Mehdy Khoshnoody a153a7cc6f
Add RTL support for multilingual mode (#47)
Usage: 
in site config:
languages:
  ar:
    languagedirection: rtl
    title: مدونتي
    weight: 2

* ref: https://gohugo.io/content-management/multilingual/#configure-languages
2020-10-19 14:47:23 +05:30
Northerner-coder db52aa9942
layouts: Add DateFormat parameter (#39)
* User can change Date Format to be displayed in Front Matter
* Formats supported by Hugo can be found here: https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference
2020-10-16 22:12:32 +05:30
Aditya Telange 95e6bf1e13
list: show nested sections
* shows links to section if _index.md is present
* by this sub-sections can be distinguished properly
* more about this and way to implement: https://gohugo.io/content-management/organization/#index-pages-_indexmd
2020-10-13 18:17:39 +05:30
Aditya Telange a8abbd3545
post-cover: relative covers need to be explicitely set
* change in d819914 and #13
* previous impl breks sites not using `/static` dir as their static location
* hugo supports multiple static directories and previous impl checks only for one
* ref : https://gohugo.io/content-management/static-files/

usage change in post-vars =>

cover:
  image: '<relative url>'
  relative: true
2020-10-10 19:52:08 +05:30
Aditya Telange 3ca79f59fe
post-cover: fix strange `/./ ` in cover image url 2
#13
2020-10-10 19:41:44 +05:30
Aditya Telange f933372c55
terms: fix unreachable code in taxonomy list 2020-10-10 19:34:13 +05:30
Aditya Telange 82e9b29bf4
post-cover: fix strange `/./ ` in cover image url
#13
2020-10-08 09:21:57 +05:30
Aditya Telange d0c7635a8b
post-cover: enable mardownify
* allows users to add links and stuff #17
2020-10-05 14:56:06 +05:30
Aditya Telange 35788daad1
post-cover: add support for adding caption (#17)
* shown only on single page

usage =>
in page-vars front-matter

cover:
  image: '<image path/url>'
  alt: '<alt text>'
  caption: '<text>'
2020-10-04 18:47:12 +05:30
Aditya Telange 3068647f58
post-cover: use new format
usage =>
in page-vars front-matter

cover:
  image: '<image path/url>'
  alt: '<alt text>'
2020-10-04 18:40:39 +05:30
Aditya Telange d8199140e5
post-cover: add support for relative path for cover image
* checks whether path mentioned in `cover` page-variable exists OR is an external url,
  else sets the relative path for image w.r.t the post the cover is of.
2020-10-04 09:50:40 +05:30
Philip Gisella 9f7e454ae6 post-single: added comments page override 2020-10-01 19:23:48 +05:30
Aditya Telange 94070f4cd9
archives: add posts count for each yr and month
* misc(css): rm unused
2020-09-29 16:42:23 +05:30
Aditya Telange 1a980f1dcb
refactor for "follow particular naming scheme
(91e30b806b)"
2020-09-23 18:23:57 +05:30
Aditya Telange 1a2a6d7c78
post-meta: change sepearator
"." -> "·"
2020-09-23 13:15:33 +05:30
Aditya Telange eb6e94d1d2
archive: update meta
* match with others
2020-09-23 13:12:23 +05:30
Aditya Telange 016dd6e9fa
(lint) remove unnecessary whitespace
created by hugo's {{ }}
2020-09-23 12:52:32 +05:30
Aditya Telange 05035121ff
misc : refactor
* manage spacing and whitespace in meta
2020-09-22 13:48:38 +05:30
Aditya Telange 5901cac6c4
post-single : display available translations
in post - meta
2020-09-22 13:41:23 +05:30
Aditya Telange 097eb6baf2
refactor 2020-09-22 12:41:25 +05:30
Aditya Telange fd143fede2
i18n: read_time improvements 2020-09-22 12:40:40 +05:30
Aditya Telange 7cc579f197
i18n: add support for toc translation 2020-09-22 12:04:14 +05:30
Aditya Telange 873bc34d45
misc: refactor
* accessibility, duplicate code
2020-09-21 15:44:37 +05:30
Aditya Telange 6770e5e552
menu : add menu location indicator
credits for fix with [.IsMenuCurrent](https://gohugo.io/functions/ismenucurrent/): https://stackoverflow.com/a/56454338
2020-09-20 19:03:43 +05:30
Aditya Telange 81b0b0c809
archives : improvements 2020-09-20 17:00:45 +05:30