Commit Graph

198 Commits

Author SHA1 Message Date
Reorx d9c228117b fix all pages query issues in: list, archives, newsletter section, post_nav_links 2022-09-08 00:25:50 +08:00
Reorx b816797316 rename .list to .list-page 2022-09-07 21:47:14 +08:00
Reorx c33e025fe2 styling newsletter sub form 2022-09-07 16:49:18 +08:00
Reorx ceede2988a move .first-entry css to main.css, styling newsletter section 2022-09-07 16:20:55 +08:00
Reorx ea271b5651 split partial newsletter_brand 2022-09-07 15:37:31 +08:00
Reorx ca373fd003 add type- and kind- classes to body, styling newsletter single and section 2022-09-07 15:19:46 +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
Reorx 0935880bf3 fix markdown image render hook, handle third party image url 2022-09-03 21:36:36 +08:00
Reorx a2a26eb189 update render-image to support video embed
just like embed an image, use ![](/path/to/video.mov)
2022-06-02 11:44:11 +08:00
Reorx 1efab6714a make rss page query the same as list.html 2022-05-31 00:43:13 +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 28511efd08 control comment system in partials/comments.html 2022-05-27 21:33:40 +08:00
Reorx 9e54118235 warn if image is not found 2022-05-20 23:04:58 +08:00
Reorx 228cf0d83f use RelPermalink for markdown images 2022-05-20 18:19:35 +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 0d2d905e3b rename some image variables; rss default show content 2022-05-08 01:24:38 +08:00
Reorx ba84d6857d add social_links partial 2022-05-05 16:23:55 +08:00
Reorx 7f71a99e21 use .Params.language to determine html lang 2022-05-05 01:17:09 +08:00
Reorx 29f261e12a use noComments to determine comments render 2022-05-05 01:16:51 +08:00
Reorx d3ec050c59 show all pages in archives 2022-05-05 01:07:31 +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 4d93247e53 change post nav and footer style 2022-04-22 01:13:25 +08:00
Reorx 98b512fe64 move tags to the top; use ¶ for anchor symbol 2022-04-22 00:28:30 +08:00
Reorx e91423d6f2 use partial instead of partialCached for footer.html
footer has involved a lot of config keys since our fork, sometimes the toc scroll behavior is broken due to cached footer is inconsistant with the current file
2022-04-14 17:47:01 +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
Reorx a929ca79c9 add head and body_end blocks in baseof 2022-04-14 00:05:15 +08:00
Reorx 8c5d10925e allow customize post page width 2022-04-09 23:31:15 +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 5f1d92493b
Avoid caching search input between navigation 2021-10-30 13:57:22 +05:30
nikaera 38891b9062
Add `showCanonicalLink` to markdown metadata (#428)
If an article has a `canonicalUrl` set, Originally published at `<hostname>` will be displayed at the top of the article by setting `showCanonicalLink` to true. 

Usage =>
  In front-matter:
    canonicalUrl: "<URL>"
    showCanonicalLink: true
2021-10-22 19:52:45 +05:30
Aditya Telange 97b373d9ee
Fix irregular spacing in seach title and svg icon 2021-09-05 18:22:39 +05:30
Aditya Telange c437ee1b62
Add `placeholder` param to let users customize
placeholder in search input box
2021-09-05 18:22:24 +05:30
Aditya Telange 7072a79f71
Refine `[draft]` tag display 2021-09-04 12:03:12 +05:30
Aditya Telange 7ea01a0ab2
Allow hiding `ShowCodeCopyButtons` per page
closes: #548
2021-09-02 20:22:08 +05:30
Aditya Telange 3442d5cb52
Allow hiding copyright/footer text
closes: #543
2021-09-02 20:19:52 +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 caa2240f12
Add missing `[draft]` tag on archive page 2021-08-30 15:22:22 +05:30
Aditya Telange fc87fc3a29
Add option to show all pages in archive
usage =>
    In site config
    `Params.ShowAllPagesInArchive: true`
2021-06-17 16:36:56 +05:30
Aditya Telange da69dda48c
Allow disabling anchored headings
Usage =>
For site-wide:
    Params.disableAnchoredHeadings: true

For front-matter:
    disableAnchoredHeadings: true
2021-06-10 23:10:40 +05:30
Aditya Telange 573e673efa
Use `content:encoded` in Rss feeds
when using ShowFullTextinRSS
2021-05-02 11:29:31 +05:30
Aditya Telange 0c64647138
Add option to show Full Text content in RSS feeds
closes: #372

usageIn site Params =>
    ShowFullTextinRSS: true
2021-04-29 19:38:08 +05:30
Achim Blanarsch 8c313af0f3
Add missing spacing between search title and icon (#351) 2021-04-13 12:53:41 +05:30
Aditya Telange 6c64ad0695
Show Code Copy scripts only on Kind = page 2021-04-10 11:53:23 +05:30
Aditya Telange bb7b6f0076
Refactor, move HLJS code from footer to head;
already defered.
2021-04-09 19:38:04 +05:30