Comments (5)
I'm currently working on this so I can then move #26 forward.
@JugglerX What do you want the cutoff date for determining the "stale" status? A hardcoded date of January 1st, 2018 is being used. It should likely be based on a calculation from the current date. Is something like current date minus one year acceptable (so a repo without a commit in the past year would be considered stale)? Or should the period be shorter than a year?
from jamstackthemes.
@rgroves thanks for the PR with the scrub script. I did some work today which generates the github_branch and last_commit data in the generate-github.js
- So this is available in data/themes.json
I was able to run scrub-themes.js
and add the github_branch to the markdown files, which is nice. I also used it to generate a submission date for each theme. If we are going to be modifying the markdown files programmatically we need to decouple from using git info as the themes "submission date"
I tested the scrub script to generate stale data and it does, great! But I think this data should live in the data/themes.json
not in the markdown. Let me know if you want to do that otherwise I can make the changes.
Really appreciate your work on this, thanks! :)
from jamstackthemes.
Sorry, I originally misunderstood where the stale flag should reside. I can work on moving this into data/themes.json
via the generate-github.js
script.
from jamstackthemes.
Ok sure. I agree it should exist in generate-github.js
. stale
flag is something we can update every build.
Broadly speaking. We want to avoid modifying the markdown files as much as possible. The scrub script should be used to make major updates to the markdown files when otherwise unavoidable.
from jamstackthemes.
That makes sense. Will have a PR for this later today.
from jamstackthemes.
Related Issues (20)
- My theme isn't visible in your directory #233 HOT 4
- The "Theme Info" button is broken on demo page HOT 5
- Some Demo are not allowed to be displayed in iframes HOT 1
- Some demos have graphical bugs
- Asking explanation . HOT 2
- filters menu bugs HOT 2
- Need help for getting access to 2 themes that were removed recently HOT 2
- Stars not getting updated HOT 3
- Hello friend How to generate a json file in the date directory HOT 1
- there is no new related data in theme.json HOT 2
- The number of domes on the home page is displayed problem
- jamstackthemes theme
- Confilcting with another site on the server
- Site Not Rendering properly HOT 1
- Theme not appearing in search results on the site HOT 1
- Customizing Theme & Content to Use Template on My Site
- Eleventy & 11ty Themes HOT 1
- Astro themes HOT 2
- Capture image shows underlines on the links on some themes HOT 1
- Build a Hugo Theme Based on This HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jamstackthemes.