Create an automatic sitemap #377
Labels
No Label
bug
build
cgi Scripting
design
disruptive
documentation
duplicate
easy
feature-request
help wanted
javascript
priority/low
question
system-hackers
tagging
text
translations
wait/bugfix
wait/inprogress
wait/misc
wait/proofread
wontfix
xsl
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FSFE/fsfe-website#377
Loading…
Reference in New Issue
Block a user
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?
For SEO it could be beneficial to create a live sitemap of the pages on fsfe.org. The only downside I could think of is that some pages are then accessible which we don't want to have indexed yet, e.g. unreleased news or pages which are just archived.
The principle would be rather easy:
find . -type f -iname "*\.en\.xhtml" | grep -v '^./internal\|^./news\|^./error' | sort
. This could be extended by excluding news and newsletter which are not released yet according to their releasedate. Also, we could check for files which do not exist in English but only another language.git log --pretty="%cd" --date=short -1 $file
xhtml
tohtml
For translations, this could look like:I'm not sure how to get the lastmod attribute in the alternate link, or whether language-specific sitemaps would make more sense.
If someone would have time to create such a script, I can try to include it in the actual build system.