Comments (4)
Here is a potentially quick fix by adding to the custom footer as follows:
<p class="text-small text-grey-dk-100 mb-0">
Copyright © 2017-{{ site.time | date: '%Y' }} {{ site.footer_content }}</a>"
</p>
...while retaining the _config.yml
footer_content
flag (with just a small change):
footer_content: "Patrick Marsceill. Distributed by an <a href=\"https://github.com/just-the-docs/just-the-docs/tree/main/LICENSE.txt\">MIT license.</a> <a href=\"https://www.netlify.com/\">This site is powered by Netlify.</a>"
And adding the following lines to the deploy.yml
and CI.yml
workflows:
on:
push:
branches: ["main"]
schedule:
- cron: '0 0 1 1 *' # Run at 12:00 AM 01/01 every year to update copyright date
This will make it so that the website is rebuilt on the beginning of each year to update copyright!
from just-the-docs.
Is it possible to link the pull request (#1384) I opened to this issue (I think a maintainer needs to do it)
from just-the-docs.
Thanks for submitting an issue @392781! There's actually a reason that we haven't updated this just yet - I need to figure out with Patrick exactly how he wants the copyright for this to work (he transitioned this into this GitHub organization and stepped down as a maintainer in 2020). I've elected to not update the copyright footer until we've sorted that out. This is a good reminder for me to check in with him though!
Separately - I don't think a cron job (or even a custom footer) is necessary for this feature - it's infrequent enough that we can just update it manually, or use a "wildcard" of sorts (e.g. 2017-*
or 2020-*
).
Do any other maintainers want to chime in? I'll send Patrick an email once the work day is over for me!
from just-the-docs.
IMO, it's simple enough future-proofing that doesn't have significant impact on development while keeping the website looking professional and up to date. Its pretty common to see out of date copyrights for manually updated websites... it's small enough to slip through the cracks.
That said, I didn't realize there was some historical things to take care of. If anything, these changes may be useful for someone downstream using just-the-docs :^) I mainly created the pull because it's an elegant solution that we're using for our documentation.
from just-the-docs.
Related Issues (20)
- Add in-page right sidebar HOT 3
- big HOT 1
- Incorrect positioning of clickable area for navigation links in Safari/macOS HOT 6
- Add support for Lunr pre-built indexes HOT 3
- Zion LLC HOT 1
- Support CTRL+k shortcut for triggering the search input HOT 2
- Organize pages using IDs HOT 1
- Option to define groups with front matter HOT 3
- Log 2023-11-18 00_48_10.txt
- Searching _posts HOT 1
- Indented Markdown diff does not handle empty newlines HOT 2
- t
- Back-to-top link not shown HOT 1
- Only first child in entire site gets expanded/shown in nav bar HOT 8
- How to manipulate DOM with code in `custom.js`? HOT 2
- UI breaking issue in landscape printing HOT 1
- Edit in Github link has extra slash when using collections with no permalink HOT 3
- custom.scss and setup.scss postprocessing issue HOT 5
- Search functionality is not working out of the box, zzzz-search-data.json is getting rendered as a HTML page instead of a JSON file HOT 2
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 just-the-docs.