Archived
1
1
Fork
You've already forked website
0

Add last modified date to blogs and projects #2

Closed
opened 2023年08月15日 14:06:15 +02:00 by codingotaku · 2 comments

Blogs and Project pages do not have a last modified time, this is necessary for others to know if content has been changed after they viewed the page.

Modified time can be set manually, but it will become cumbersome when more pages are added.

Possible ways to automate this.

  1. Medium difficulty: Use git pre-commit hooks to see which file was updated and use it to update blogs.json and projects.json files.
  2. Hard: Consider using a DB and publish pages using an interface, this would mean that an authentication mechanism is needed.
Blogs and Project pages do not have a last modified time, this is necessary for others to know if content has been changed after they viewed the page. Modified time can be set manually, but it will become cumbersome when more pages are added. Possible ways to automate this. 1. Medium difficulty: Use [git pre-commit hooks](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) to see which file was updated and use it to update blogs.json and projects.json files. 2. Hard: Consider using a DB and publish pages using an interface, this would mean that an authentication mechanism is needed.
Author
Owner
Copy link

I've created a git hook (a452c0be18) that does exactly this, but the contributor must run the command git config core.hooksPath "./git_hooks/" after cloning the repository.

Things pending: Add actual last modified time and date
Mention this command in the README file.

I've created a git hook (a452c0be18c3f8c9d5790603fc0fc2c54ed62b92) that does exactly this, but the contributor must run the command `git config core.hooksPath "./git_hooks/"` after cloning the repository. Things pending: Add actual last modified time and date Mention this command in the README file.
Author
Owner
Copy link

Closing as done. We do not need to update the last modified date if we do some minor fixes like type errors.
The hook will update the files, but will not commit/stage the changes. The author must review and commit the files manually.

Closing as done. We do not need to update the last modified date if we do some minor fixes like type errors. The hook will update the files, but will not commit/stage the changes. The author must review and commit the files manually.
Commenting is not possible because the repository is archived.
main
main
indie-auth-improvements
databse-migration
No results found.
Labels
Clear labels
Kind/Breaking
Breaking change that won't be backward compatible
Kind/Bug
Something is not working
Kind/Documentation
Documentation changes
Kind/Enhancement
Improve existing functionality
Kind/Feature
New functionality
Kind/Security
This is security issue
Kind/Testing
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codingotaku/website#2
Reference in a new issue
codingotaku/website
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?