Skip to content

fix: use previously hashed file name if it exists#50

Merged
metonym merged 1 commit intomasterfrom
multiple-hashed-filenames
Nov 25, 2020
Merged

fix: use previously hashed file name if it exists#50
metonym merged 1 commit intomasterfrom
multiple-hashed-filenames

Conversation

@metonym
Copy link
Copy Markdown
Collaborator

@metonym metonym commented Nov 25, 2020

Hot fix for #48

Changes

  • use previously hashed file name if it exists

Usage

Before:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta property="og:image" content="https://example.com/image.[hash].png" />
    <meta property="twitter:image" content="https://example.com/image.[hash].png" />
    <meta property="twitter:image" content="https://example.com/assets/small-image.[hash].png" />
  </head>
  <body></body>
</html>

After:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta property="og:image" content="https://example.com/image.1fa9a3.png">
    <meta property="twitter:image" content="https://example.com/image.1fa9a3.png">
    <meta property="twitter:image" content="https://example.com/assets/small-image.b354fd.png">
  </head>
  <body></body>
</html>

@metonym metonym merged commit db47bce into master Nov 25, 2020
@metonym metonym deleted the multiple-hashed-filenames branch November 25, 2020 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant