Commit Graph

76 Commits

Author SHA1 Message Date
Reorx 886aafac1f inline_links partial
finally find a way to determine whether a section/term page has archives or not
by conquering hugo's faultiness of .RelPermalink
2022-09-08 23:36:35 +08:00
Reorx 51d8dca83c enhance inline links 2022-09-08 00:47:08 +08:00
Reorx d9c228117b fix all pages query issues in: list, archives, newsletter section, post_nav_links 2022-09-08 00:25:50 +08:00
Reorx a016d83663 home page filter pages use "Section in" instead of "Type in"
distinguish .Section and .Type
2022-09-07 13:53:15 +08:00
Reorx 13a2c8742c WIP: newsletter section page and archives page can work 2022-09-07 02:06:21 +08:00
Reorx 3bc70e9a2c fix hidden is shown in list.html (section page) 2022-09-07 00:38:45 +08:00
Seth For Privacy b562454b3e Add "[Pinned]" text after title when a post is pinned using `weight`
Also updates "draft" to "Draft" to properly capitalize the word (IMO).
2022-05-29 17:54:37 +08:00
Reorx 84ac59ce9d remove home page all language support that may cause trouble
it can cause the search page to have a redundant result for each page
2022-05-19 18:57:42 +08:00
Reorx 0654046820 show all pages for first language 2022-04-22 15:57:25 +08:00
Reorx 6aea4be5fa refactor post meta, use svg icons for identifier 2022-04-22 14:11:34 +08:00
Reorx d94f895296 allow customizing pagination by adding "paginate" in frontmatter 2022-04-14 15:06:24 +08:00
Reorx 45d3fa868e use .Pages instead of .RegularPages in list layout
othewise the count in taxonomy may be inconsistant with the items in the taxonomy list page,
if there's any section page using taxonomy
2022-04-14 14:39:29 +08:00
Aditya Telange 575cc0ca8c
Use `site` function instead of `.Site` or `$.Site`
- The site function provides global access to the same data as the .Site page method.
- Current context (`.`) is never considered.
2022-03-27 18:44:06 +05:30
Aditya Telange 7072a79f71
Refine `[draft]` tag display 2021-09-04 12:03:12 +05:30
Aditya Telange b4393b3d6e
Add `post-content` only if it exists 2021-09-02 13:43:08 +05:30
Aditya Telange 162d80071f
Allow adding markdown description on list pages 2021-09-02 13:38:55 +05:30
Aditya Telange bc99ae777d
Allow adding `Content` on list pages 2021-09-02 13:33:47 +05:30
Aditya Telange 196b82645e
Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
Aditya Telange 706b5a1c94
Hide "..." in list pages when summary is not Truncated 2021-03-18 18:15:49 +05:30
Mohammad Noor Abu Khleif ad81825345
Allow selective summary (in list pages) hiding in front matter (#292) 2021-03-18 17:46:32 +05:30
Aditya Telange 1a8e14a848
Use custom paginator's PageNumber for home-info
fixes non-mainSections pages from being displayed in the list

amend to 143eb18
2021-02-10 21:17:40 +05:30
Aditya Telange 143eb18b75
handle case where home-info was hidden
when num of posts = 0

- fix: #227
- refactor conditions for nested if
- also fix for 082d960
2021-02-10 21:00:12 +05:30
Aditya Telange 37afb5f13e
show breadcrumb nav also on list pages
- specifically section pages
- should not display on home(index)
2021-02-08 20:30:34 +05:30
Aditya Telange 9257321547
Add description to other layouts
- helps adding description to sub-sections,
  search, terms, archive pages
2021-01-27 21:31:33 +05:30
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 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
Devorange d4b259cd63
list: use absURL for pagination (#109) 2020-12-05 20:12:55 +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 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 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
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 fd143fede2
i18n: read_time improvements 2020-09-22 12:40:40 +05:30
Aditya Telange 082d960e13
Revert "home-info: handle case where home-info was hidden"
This reverts commit ce408f6afc.

* incomplete
2020-09-19 17:29:38 +05:30
Aditya Telange ce408f6afc
home-info: handle case where home-info was hidden
when num of posts = 0
2020-09-17 16:14:56 +05:30
Aditya Telange 9c861cb77f
Special-1st-Post: allow disabling the special highlight of 1st Post
* usage => in site config
    params:
        disableSpecial1stPost : true
2020-09-14 22:50:04 +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
Digitalcraftsman ab14f2f275
Adapt theme to be compatible with hugoBasicExample
_default/{archives,list}.html utilize .site.Params.mainSections

This flexible option let's users decide what content pages they want to
display in the archive and on the homepage. By default, Hugo adds
content types with the most content files as a good heuristic. Can be
overwritten at any time in the config file.

Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2020-09-12 09:57:30 +05:30
Aditya Telange 519f23f8e9
accessibility : add aria-label to entry-link 2020-09-06 21:46:58 +05:30
Aditya Telange c0b3ea348f
list: add ability to hide summary on list
to hide summary, add to site config
params:
  hideSummary: true
2020-08-28 16:44:50 +05:30
Aditya Telange 5345b3e6b0
profile-mode: enabled only on .Site.Params.profileMode.enabled: true 2020-08-27 19:55:39 +05:30
Aditya Telange 7f70d98f95
homeInfo : rm extra enabled param 2020-08-27 19:40:05 +05:30