Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section nested under page must respect its slug in the URL path #2369

Open
wants to merge 36 commits into
base: next
Choose a base branch
from

Commits on Mar 19, 2023

  1. Next version

    Keats committed Mar 19, 2023
    Configuration menu
    Copy the full SHA
    8d16d17 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. Configuration menu
    Copy the full SHA
    b00ae42 View commit details
    Browse the repository at this point in the history
  2. Speedup "zola check" command by reusing the Client (getzola#2171)

    * Reuse Client when checking urls and add timeout for requests
    MTRNord committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    1ed722c View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. Implement replace_re filter (getzola#2163)

    * Implement replace_re filter
    
    * Cargo fmt
    
    * add regex caching
    
    * cargo fmt
    
    * update docs, update unit test
    
    * rename replace_re -> regex_replace
    cydave committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    6a5c241 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2023

  1. templates: add base URL for feed content (getzola#2190)

    Relative links in the entry content do not currently have a base URI, so
    will be resolved relative to the feed URI:
    
    Given an entry with the content:
    
        <a href="some-resource.bin">
    
    And URIS of:
    
     * entry: https://example.org/blog/some-entry/
     * feed:  https://example.org/atom.xml
    
    The link URI will end up as:
    
        https://example.org/some-resource.bin
    
    rather than the URI that ends up resolved in the rendered page:
    
       https://example.org/blog/some-entry/some-resource.bin
    
    The atom and RSS formats allow for an xml:base attribute (itself
    specified in [1]) to provide a base URI of a subset of a document. This
    change adds xml:base attributes to each entry, using the page permalink.
    
    This gives us something equivalent to:
    
        <entry>
         <content xml:base="https://example.org/blog/some-entry/">
          <![CDATA[
           <a href="some-resource.bin">
          ]]>
         </content>
        </entry>
    
    [1]: https://www.w3.org/TR/xmlbase/
    
    Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
    jk-ozlabs committed Apr 23, 2023
    Configuration menu
    Copy the full SHA
    c48b61a View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2023

  1. Fix multi-lingual json index (getzola#2197)

    * Fix multi-ligual json index
    
    * multi-lingual search Fix cargo fmt
    Jieiku committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    7edf92b View commit details
    Browse the repository at this point in the history

Commits on May 1, 2023

  1. Add search.index_format into the serialized config (getzola#2165) (ge…

    …tzola#2196)
    
    * Add search into the serialized config (getzola#2165)
    
    * Only expose index_format
    
    * Create config.search struct
    
    * cargo fmt
    Raymi306 committed May 1, 2023
    Configuration menu
    Copy the full SHA
    7448309 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2023

  1. Fix typo in error message

    Keats committed May 2, 2023
    Configuration menu
    Copy the full SHA
    4f77980 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2023

  1. Hard link serve panic fix (getzola#2210)

    * Fix hard link panic and add better error info to std:fs errors
    
    * cargo fmt
    
    * Remove erroneously committed config change
    
    * Remove console import; Use with context to provide additional error info
    
    * improve error wording
    Raymi306 committed May 6, 2023
    Configuration menu
    Copy the full SHA
    1321a83 View commit details
    Browse the repository at this point in the history
  2. Add support for lazy loading images (getzola#2211)

    * Add optional decoding="async" loading="lazy" for img
    
    In theory, they can make the page load faster and show content faster.
    
    There’s one problem: CommonMark allows arbitrary inline elements in alt text.
    If I want to get the correct alt text, I need to match every inline event.
    
    I think most people will only use plain text, so I only match Event::Text.
    
    * Add very basic test for img
    
    This is the reason why we should use plain text when lazy_async_image is enabled.
    
    * Explain lazy_async_image in documentation
    
    * Add test with empty alt and special characters
    
    I totaly forgot one can leave the alt text empty.
    I thought I need to eliminate the alt attribute in that case,
    but actually empty alt text is better than not having an alt attribute at all:
    https://www.w3.org/TR/WCAG20-TECHS/H67.html
    https://www.boia.org/blog/images-that-dont-need-alternative-text-still-need-alt-attributes
    Thus I will leave the empty alt text.
    
    Another test is added to ensure alt text is properly escaped.
    I will remove the redundant escaping code after this commit.
    
    * Remove manually escaping alt text
    
    After removing the if-else inside the arm of Event::Text(text),
    the alt text is still escaped.
    Indeed they are redundant.
    
    * Use insta for snapshot testing
    
    `cargo insta review` looks cool!
    
    I wanted to dedup the cases variable,
    but my Rust skill is not good enough to declare a global vector.
    sinofp committed May 6, 2023
    Configuration menu
    Copy the full SHA
    b5a90db View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Prevent spans crossing line boundaries in class-based code block form…

    …atter (getzola#2237)
    
    * Prevent spans crossing line boundaries in class formatter
    
    * Add snapshot tests for classed highlighting
    TheOnlyMrCat committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    1778707 View commit details
    Browse the repository at this point in the history
  2. always sort assets by filename (Windows/Linux difference) (getzola#2236)

    * sort page.assets by filename
    
    Uses .to_str() to sort files and subfolders.
    
    The .unwrap() may need work or be replaced by unwrap_or_default(). Given
    earlier checks in the function it should work however.
    
    * add tests for assets sorting
    
    * fix rustfmt
    
    * use existing loop instead of windows
    
    * also check the non-recursive test
    
    * use .zip() and add assert msg
    wold5 committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    afc0e2c View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Atom template authors (getzola#2259)

    * templates:atom: add support for multiple authors
    
    Atom 1.0 [0] support multiple `<author>` entries in the feed. This commit
    modified the template to generate as many `<author>` as the page's
    metadata contains.
    
    [0] https://validator.w3.org/feed/docs/atom.html#recommendedEntryElements
    
    * Test we can have multiple authors in ATOM feeds
    heitorPB committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    66f5bf5 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Add attributes to base_url link in atom template (getzola#2261)

    The `rel` and `type` HTML attributes are needed in the `base_url` (or
    `section.permalink`) link so feed aggregators know that's the HTML page
    that corresponds to the atom feed.
    
    Note: The RSS template doesn't have this issue.
    savq committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    f962370 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2023

  1. Configuration menu
    Copy the full SHA
    d3793cd View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Fix LFI in zola serve (getzola#2258)

    * use fs canonicalize to prevent path traversal
    
    * fix cargo fmt
    adeadfed committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    fe1967f View commit details
    Browse the repository at this point in the history
  2. Update changelog

    Keats committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    b97a1d5 View commit details
    Browse the repository at this point in the history
  3. Update edition

    Keats committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    f0b984d View commit details
    Browse the repository at this point in the history
  4. Update deps

    Keats committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    57968be View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2023

  1. Add ignored_static to config (getzola#2209)

    * Add ignored_static to config
    
    * Make  handle ignored static files correctly
    
    * cargo fmt
    
    * Match on relative path rather than incorrect target path
    
    * path -> partial path for serve static ignore
    
    * remove debug println
    
    * copy static directory if there is no ignored globset
    
    * Update docs
    
    * Deduplicate code with additional Option argument
    
    * cargo fmt
    Raymi306 committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    c4341b1 View commit details
    Browse the repository at this point in the history
  2. template:feeds: add extra block (getzola#2263)

    * template:feeds: add extra block
    
    * add missing >
    
    * Revert "add missing >"
    
    This reverts commit 45c6b9c.
    
    * Revert "template:feeds: add extra block"
    
    This reverts commit 596f7f1.
    
    * Update docs for feed templates
    heitorPB committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    4474afa View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. Add Checking and Force Flag for Directory in Serve Command (getzola#2265

    )
    
    * Introduce option to force directory when running the serve command
    
    * Update documentation about the force flag on the serve command
    
    * Resolve cargo fmt issue
    
    * Reword new serve flag documentation
    SquirrelHub committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    e81e139 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. fix: suppress highlight language warnings if highlight_code is false (g…

    …etzola#2287)
    
    The warning about unknown highlight languages was displayed even when
    code highlighting was disabled via `markdown.highlight_code = false`.
    This commit adds a condition to check this setting before issuing the
    warning, effectively suppressing it when code highlighting is disabled.
    
    Issue: getzola#2280
    welpo committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    674c433 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2023

  1. Avoid unnecessary checking for already checked links (getzola#2305)

    * Fixed "unnecessary mut" warning
    
    * Fixed minor typo
    
    * Use more than 8 threads for links checking if hardware supports it
    
    * Fixed failing azure Linux check
    
    * Avoid unnecessary HTTP requests to the same, already checked links
    biodranik committed Sep 24, 2023
    Configuration menu
    Copy the full SHA
    1b423fb View commit details
    Browse the repository at this point in the history
  2. Clippy

    Keats committed Sep 24, 2023
    Configuration menu
    Copy the full SHA
    2da4981 View commit details
    Browse the repository at this point in the history
  3. Update changelog

    Keats committed Sep 24, 2023
    Configuration menu
    Copy the full SHA
    a41547c View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. Update grass to 0.13 (getzola#2321)

    This allows benefitting from some bugfixes (potentially breaking but
    better compatibility with the reference Sass impl)
    ISSOtm committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    c8cc5f3 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. Update deps

    Keats committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    5d5d76e View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2023

  1. Configuration menu
    Copy the full SHA
    d3cab30 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. Configuration menu
    Copy the full SHA
    2e3fe2d View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2023

  1. elasticlunr-rs 3.0.2, hu language support (getzola#2151)

    Co-authored-by: Sandor Apati <s.apati@mito.hu>
    sapati and Sandor Apati committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    f20a1ba View commit details
    Browse the repository at this point in the history
  2. Update changelog and deps

    Keats committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    9afa349 View commit details
    Browse the repository at this point in the history
  3. Superfluous mut.

    virtualritz authored and Keats committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    252bbe0 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2023

  1. Configuration menu
    Copy the full SHA
    fa254ca View commit details
    Browse the repository at this point in the history
  2. Remove dummy file

    Keats committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    b883c49 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2023

  1. Spence section nested under page uses parent slug in url path (#1)

    * Make a test that replicates the issue regarding section paths not respecting page parents
    
    * Add a very rudimentary working implementation that passes the test
    
    * Rewrite solution to be more idiomatic rust
    asimpletune committed Dec 10, 2023
    Configuration menu
    Copy the full SHA
    b98420e View commit details
    Browse the repository at this point in the history