Skip to content

Commit

Permalink
notification_tib_update (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg authored Jul 24, 2024
2 parents 0788c33 + 8578a5d commit ec24a27
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
2 changes: 2 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Allow: /static/
Allow: /media/
Allow: /register/
Allow: /login/
Allow: /sheets/


Sitemap: https://pecha.org/sitemap.xml

30 changes: 12 additions & 18 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,57 +18,51 @@
<priority>1.0</priority>
</url>
<url>
<loc>https://pecha.org/The_characteristics_of_the_master_and_disciple?tab=contents</loc>
<loc>https://pecha.org/topics</loc>
<lastmod>2024-07-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
<priority>1.0</priority>
</url>
<url>
<loc>https://pecha.org/texts/Liturgy</loc>
<loc>https://pecha.org/community</loc>
<lastmod>2024-07-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://pecha.org/texts/Encyclopedic%20Works</loc>
<loc>https://pecha.org/sheets/61?lang=en</loc>
<lastmod>2024-07-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://pecha.org/Prayer_for_the_Future_of_the_Dharma.1.2?lang=he</loc>
<loc>https://pecha.org/sheets/62?lang=en</loc>
<lastmod>2024-07-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://pecha.org/Prayer_of_Kuntuzangpo.1?lang=en</loc>
<loc>https://pecha.org/sheets/63?lang=en</loc>
<lastmod>2024-07-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://pecha.org/The_Way_of_the_Boddhisattva.1?lang=en</loc>
<loc>https://pecha.org/sheets/64?lang=en</loc>
<lastmod>2024-07-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://pecha.org/texts/Madyamika/Commentaries/The%20Way%20of%20the%20Boddhisattva</loc>
<loc>https://pecha.org/The_characteristics_of_the_master_and_disciple?tab=contents</loc>
<lastmod>2024-07-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://pecha.org/topics</loc>
<lastmod>2024-07-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://pecha.org/community</loc>
<loc>https://pecha.org/texts/Liturgy</loc>
<lastmod>2024-07-15</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
<priority>0.9</priority>
</url>
</urlset>
4 changes: 2 additions & 2 deletions static/js/sefaria/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ class Util {
static naturalTime(timeStamp, {lang, short} = {}) {
// given epoch time stamp, return string of time delta between `timeStamp` and now
const now = Util.epoch_time();
let language = lang ? lang : (Sefaria.interfaceLang === 'hebrew' ? 'he' : 'en');
let language = lang ? lang : (Sefaria.interfaceLang === 'hebrew' ? 'bo' : 'en');
let spacer = " ";
if (short) {
language = language === "en" ? "shortEn" : "shortHe";
language = language === "en" ? "shortEn" : "shortBo";
spacer = language === "shortEn" ? "" : " ";
}
return Util.sefariaHumanizeDuration(now - timeStamp, {"language": language, "spacer": spacer});
Expand Down

0 comments on commit ec24a27

Please sign in to comment.