Commit Graph

69 Commits

Author SHA1 Message Date
Alexander Zhang
8d1e45a42a
Fix RSS link for paginated list pages (#1192)
The link was previously hard-coded to index.html, which doesn't work on
paginated list pages because it would go to something like
/section/pages/2/index.html instead of /section/index.html.
2023-04-23 19:47:46 +05:30
Aditya Telange
b906338dc8
Add param 'hiddenInHomeList' to hide certain post from home page
Usage =>
---
title: post name
hiddenInHomeList: true
---
2022-08-20 14:31:07 +05:30
Aditya Telange
eba92edd83
Feat: Add page nums in list pages
In site config =>
Params:
    ShowPageNums: true
2022-08-15 19:25:55 +05:30
Aditya Telange
44f5970db2
Add RSS button to Section and Term pages.
Usage =>
Params:
  ShowRssButtonInSectionTermList: true

---
ShowRssButtonInSectionTermList: false
---
2022-04-30 07:42:51 +05:30
Rotzbua
c6e9568c12
Fix W3 validator warning: Section lacks heading. (#857)
Use `div` instead of `section` element, because already an `article` element.
2022-04-19 20:33:05 +05:30
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
Aditya Telange
f925f2fd40
rm index : merge index and list 2020-08-27 19:37:45 +05:30
Aditya Telange
e35915a561
support Multilingual navigation
add reading time as i18n
2020-08-25 14:04:59 +05:30
Aditya Telange
94eada156d draft tag [draft] improve 2020-07-28 12:36:53 +05:30
Aditya Telange
06c52025dc list, index : draft : show some space before [draft] 2020-07-26 19:19:52 +05:30
Aditya Telange
fff89a4e30 list, index : show post authors 2020-07-26 19:17:04 +05:30
Aditya Telange
ea129c608d list, index : show reading time
if Params.ShowReadingTime = true
2020-07-26 19:15:58 +05:30
Aditya Telange
880ce9bf68 pagination: buttons: new arrow icons 2020-07-26 19:09:38 +05:30