-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add timestamp to layouts for cachebusting #254
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>test</title> | ||
<link rel="stylesheet" href="/css/main.css?v={{ timestamp }}"> | ||
</head> | ||
<body> | ||
<h1>{{ path }}</h1> | ||
|
||
{{ content }} | ||
</body> | ||
</html> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>My blog - {{ title }}</title> | ||
</head> | ||
<body> | ||
{{ content }} | ||
</body> | ||
</html> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extends: default.liquid | ||
--- | ||
This is my Index page! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If your goal is to test the timestamp feature, is there a reason to have posts, or having the timestamp in the file you extend rather than having it in your actual index.liquid? Boiling down tests to cover only the feature in question helps to make the tests more stable and reduces churn when something unrelated changes that causes either minor tweaks (like |
||
|
||
{% for post in posts %} | ||
<a href="{{post.path}}">{{ post.title }}</a> | ||
{% endfor %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
extends: posts.liquid | ||
|
||
title: My first Blogpost | ||
date: 24/08/2014 at 15:36 | ||
--- | ||
# {{ title }} | ||
|
||
Hey there this is my first blogpost and this is super awesome. | ||
|
||
My Blog is lorem ipsum like, yes it is.. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>My blog - My first Blogpost</title> | ||
</head> | ||
<body> | ||
<h1>My first Blogpost</h1> | ||
<p>Hey there this is my first blogpost and this is super awesome.</p> | ||
<p>My Blog is lorem ipsum like, yes it is..</p> | ||
|
||
</body> | ||
</html> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
liquid-rust/#88 will require us to have integer values. So in the future we can change this.