Commit Graph

53 Commits

Author SHA1 Message Date
Aditya Telange a150c3449a
Link AccessKeys shortcut in title of elements 2020-12-18 20:02:05 +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 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 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
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 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 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 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 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 32289fe2e7
toc : use newer toc partial and indent elements
fixes : https://github.com/adityatelange/hugo-PaperMod/issues/2
2020-09-19 17:03:27 +05:30
Aditya Telange a8652f57f3
toc: add option to open toc details by default
usage: in page params add (yml)
TocOpen: true
2020-09-16 15:41:28 +05:30
Aditya Telange 6813112e25
layouts: single: update post meta 2020-09-15 22:32:34 +05:30
Aditya Telange ab451ef89c
post-cover-image : add support for cover image for post
usage with post params =>
    cover = "<absolute image url>"
2020-09-14 17:45:22 +05:30
Aditya Telange 7f7d8cfb22
add ability to disbale share on certain pages
add disableShare = true in page params
---
disableShare: true
---
2020-08-28 16:39:06 +05:30
Aditya Telange e35915a561
support Multilingual navigation
add reading time as i18n
2020-08-25 14:04:59 +05:30
Aditya Telange 8af56e302d
share-buttons: fix icons not shown
when no tags were present
2020-08-23 16:35:53 +05:30
Aditya Telange 274688f238
layouts/single : add option to disable Post-meta
i.e. date, author-info
    can be used for posts which are just info, and not a 'post'

set `hideMeta = true` in Page Variables (https://gohugo.io/variables/page/#page-variables)
2020-08-20 22:28:54 +05:30
Aditya Telange 94eada156d draft tag `[draft]` improve 2020-07-28 12:36:53 +05:30
Aditya Telange e0b08519c9 add Share Buttons
use Params.ShowShareButtons = true

    credits : https://www.iconfinder.com/iconsets/social-media-rounded-corners
    License:	Free for commercial use
2020-07-27 14:28:58 +05:30
Aditya Telange 16b98dc8f9 toc: look cool
- improve toc styling
    - make collapsable
2020-07-24 23:53:25 +05:30
Aditya Telange c06357a604 add Table of Contents
- can be used by
     `ShowToc = true` in Single Post params
2020-07-24 22:03:13 +05:30
Aditya Telange d005d7d2bb add [draft] mark
- to identify drafts from other posts
2020-07-24 20:46:33 +05:30
Aditya Telange 8a0783adfb new layout
- create baseof
    - separate list, single
    - header, footer
2020-07-20 20:32:07 +05:30
Aditya Telange e933bf39b7 comments: rm comments
- user needs to enable comments in hugo config
        + params:
            comments: true
    - disabled by default
2020-07-20 20:11:58 +05:30
Aditya Telange e17e38b3ae refactor; linting 2020-07-20 19:53:30 +05:30
nanxiaobei ae2b0c9d96 update html format 2020-03-09 23:56:47 +08:00
nanxiaobei 6a21a64488 Refine code 2019-08-21 12:03:12 +08:00
nanxiaobei 68a57bbb47 Update layouts 2019-08-20 04:12:49 +08:00
nanxiaobei 67767c62c2 Change `.Site.BaseURL` to `absURL` 2019-06-10 06:44:15 +08:00
Nazım Can Altınova cb6cdb37ef Add a way to change the date format with 'dateFormat' site param 2019-04-28 15:56:39 +02:00
nanxiaobei e3053cee4f Update html 2019-04-01 16:00:48 +08:00
nanxiaobei 8088299ecb Update for 3.0 2019-03-31 20:32:06 +08:00
nanxiaobei 599fbd4e22 🔒 Fix link 2018-07-06 11:14:28 +08:00
nanxiaobei d22829882a 🍻 Add `.Site.BaseURL` 2018-07-06 04:17:31 +08:00
Lee b3a675168d 🎨 add disqus support 2018-05-05 01:57:25 +08:00