about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-01-28 22:21:46 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-01-28 22:22:30 +0900
commit8a91b677e9e1e39bab44b910b830a07d56cd0d7c (patch)
tree63497a147cbd0936fdd3fb42474f1f1e67c11e3e
parent8de44da18a31a9ea013783e5569100c14e1f2e0a (diff)
downloadpx-8a91b677e9e1e39bab44b910b830a07d56cd0d7c.tar.gz
Properly declare posts' language
-rw-r--r--00/index.xml10
-rw-r--r--01/index.xml24
-rw-r--r--02/index.xml10
-rw-r--r--03/index.xml18
-rw-r--r--04/index.xml18
-rw-r--r--page.xslt2
6 files changed, 41 insertions, 41 deletions
diff --git a/00/index.xml b/00/index.xml
index c5b7681..4897c98 100644
--- a/00/index.xml
+++ b/00/index.xml
@@ -1,22 +1,22 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet href="/page.xslt" type="text/xsl"?>
 <page curr="00" next="01">
-  <post title="nanocomputers">
+  <post title="nanocomputers" lang="en">
     <picture filename="nwz-b163f" desc="Beat-up and dead Walkman NWZ-B163F"/>
     <picture filename="pinecil" desc="Pinecil"/>
     <picture filename="q1" desc="Shanling Q1"/>
     <time>2022-02-10T07:08:09Z</time>
   </post>
-  <post title="chiếc thuyền ngoài xa">
-    <picture filename="boats" desc="Ships on the horizon"/>
+  <post title="chiếc thuyền ngoài xa" lang="vi">
+    <picture filename="boats" desc="Thuyền ở gần đường chân trời"/>
     <time>2022-04-05T23:32:31Z</time>
   </post>
-  <post title="view from dorm window">
+  <post title="view from dorm window" lang="en">
     <picture filename="unist-dorm-spring"
              desc="Cherry blossoms viewed from UNIST dorm window"/>
     <time>2022-04-06T11:51:28Z</time>
   </post>
-  <post title="around the campus">
+  <post title="around the campus" lang="en">
     <picture filename="unist-path-spring-0"
              desc="Blooming cherry behind a tree with bright green leaves"/>
     <picture filename="unist-path-spring-1"
diff --git a/01/index.xml b/01/index.xml
index c64636e..d95e00e 100644
--- a/01/index.xml
+++ b/01/index.xml
@@ -1,32 +1,32 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet href="/page.xslt" type="text/xsl"?>
 <page prev="00" curr="01" next="02">
-  <post title="life finds a way">
+  <post title="life finds a way" lang="en">
     <picture filename="ants" desc="ants and red mites on top of concrete fence"/>
     <picture filename="red-mites" desc="closeup of red mites on blue concrete"/>
     <picture filename="brick-grass"
              desc="tiny grass growing between paving bricks"/>
     <time>2022-04-23T14:05:47Z</time>
   </post>
-  <post title="hoa cỏ ven đường">
+  <post title="hoa cỏ ven đường" lang="vi">
     <picture filename="ragwort-withered-0"
-             desc="ragwort plant with withered flowers"/>
+             desc="cành cúc dại hoa đã tàn gần hết"/>
     <picture filename="ragwort-withered-1"
-             desc="another ragwort with withered flowers"/>
+             desc="cành cúc dại khác với hoa cũng đã tàn"/>
     <picture filename="ragwort-withered-2"
-             desc="withered ragwort plant in front of a blooming one"/>
-    <picture filename="ragwort-blooming-0" desc="blooming ragwort"/>
+             desc="cành cúc dại tàn chắn trước cây khác hoa còn tươi rói"/>
+    <picture filename="ragwort-blooming-0" desc="hoa cúc dại"/>
     <picture filename="ragwort-blooming-1"
-             desc="blooming ragworts at the base of a tree trunk"/>
+             desc="hoa cúc dại dưới gốc cây thân gỗ"/>
     <time>2022-05-15T09:34:55Z</time>
   </post>
-  <post title="lập hạ">
-    <picture filename="grass" desc="green grass and short trees"/>
+  <post title="lập hạ" lang="vi">
+    <picture filename="grass" desc="cỏ cây xanh rờn trong nắng"/>
     <picture filename="palmate-maples"
-             desc="green and brown palmate maples below a casuarina"/>
+             desc="phong nhật, một cây lá đỏ một lá xanh sau cây phi lao"/>
     <picture filename="palmate-lobes"
-             desc="plant with bright green palmately lobed leaves"/>
-    <picture filename="pine-bud" desc="pine bud"/>
+             desc="cây dại lá hình chân vịt, tươi rói trong nắng"/>
+    <picture filename="pine-bud" desc="chồi thông"/>
     <time>2022-05-15T09:45:02Z</time>
   </post>
   <year>2022</year>
diff --git a/02/index.xml b/02/index.xml
index 632a83e..7e17c82 100644
--- a/02/index.xml
+++ b/02/index.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet href="/page.xslt" type="text/xsl"?>
 <page prev="01" curr="02" next="03">
-  <post title="electromagneticpunk">
+  <post title="electromagneticpunk" lang="en">
     <picture filename="urban-0"
              desc="street with lots of power lines and surveillance cameras"/>
     <picture filename="urban-1"
@@ -13,15 +13,15 @@
     <picture filename="urban-4" desc="rooftop with many antennae"/>
     <time>2022-06-13T15:22:11Z</time>
   </post>
-  <post title="mante morte">
-    <picture filename="mante-morte" desc="dead mantis lying on the floor"/>
+  <post title="mante morte" lang="fr">
+    <picture filename="mante-morte" desc="mante morte sur le sol"/>
     <time>2022-09-21T17:06:45Z</time>
   </post>
-  <post title="always look on the bright side of life">
+  <post title="always look on the bright side of life" lang="en">
     <picture filename="verbena" desc="bush of verbena bonariensis"/>
     <time>2022-09-29T18:25:14Z</time>
   </post>
-  <post title="yellow flowers">
+  <post title="yellow flowers" lang="en">
     <picture filename="sundrops-flowers"
              desc="evening primrose flowers and buds"/>
     <picture filename="squash-flower"
diff --git a/03/index.xml b/03/index.xml
index 9458bd2..d075d91 100644
--- a/03/index.xml
+++ b/03/index.xml
@@ -1,14 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet href="/page.xslt" type="text/xsl"?>
 <page prev="02" curr="03" next="04">
-  <post title="xế chiều">
+  <post title="xế chiều" lang="vi">
     <picture filename="twilight-moon"
-             desc="cloudy sky with crescent moon in the twilight"/>
+             desc="trăng khuyết giữa trời hoàng hôn đầy mây"/>
     <picture filename="twilight-silhouette"
-             desc="cloudy sky with tree silhouette in the twilight"/>
+             desc="bóng rặng cây in lên trời hoàng hôn đầy mây"/>
     <time>2022-10-04T10:59:39Z</time>
   </post>
-  <post title="dance of the dinosaurs">
+  <post title="dance of the dinosaurs" lang="en">
     <picture filename="pigeons-0"
              desc="two pigeons facing opposite directions"/>
     <picture filename="pigeons-1"
@@ -21,14 +21,14 @@
              desc="one walking pigeon in the middle of two pecking ones"/>
     <time>2022-10-10T05:18:52Z</time>
   </post>
-  <post title="phất cờ">
-    <picture filename="grass-flowers-0" desc="true grass flowers"/>
-    <picture filename="grass-flowers-1" desc="more true grass flowers"/>
+  <post title="phất cờ" lang="vi">
+    <picture filename="grass-flowers-0" desc="cỏ trổ bông giữa núi trời"/>
+    <picture filename="grass-flowers-1" desc="nắng rọi đúng bông cỏ giữa bãi"/>
     <time>2022-10-14T08:28:54Z</time>
   </post>
-  <post title="hồng nhan bạc mệnh">
+  <post title="hồng nhan bạc mệnh" lang="vi">
     <picture filename="cans"
-             desc="red soft drink cans faded to light orange under the sun"/>
+             desc="lon nước ngọt đỏ ở máy bán hàng ngoài trời bạc màu vì nắng"/>
     <time>2022-10-18T02:28:25Z</time>
   </post>
   <year>2022</year>
diff --git a/04/index.xml b/04/index.xml
index e6bb67f..53f70dc 100644
--- a/04/index.xml
+++ b/04/index.xml
@@ -1,21 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet href="/page.xslt" type="text/xsl"?>
-<page prev="03" curr="04">
-  <post title="the not-so-hungry caterpillar">
+<page prev="03" curr="04" next="05">
+  <post title="the not-so-hungry caterpillar" lang="en">
     <picture filename="caterpillar-diagonal"
              desc="argynnis hyperbius larva in the grass"/>
     <picture filename="caterpillar-horizontal"
              desc="argynnis hyperbius larva in the grass"/>
     <time>2022-10-20T17:04:05Z</time>
   </post>
-  <post title="socialist ecology">
+  <post title="socialist ecology" lang="en">
     <picture filename="red-green-bg"
              desc="plant buds in front of red and greeen twigs"/>
     <picture filename="red-green-fg"
              desc="red and green twigs"/>
     <time>2022-10-28T12:10:46Z</time>
   </post>
-  <post title="web developers">
+  <post title="web developers" lang="en">
     <picture filename="spiders-1"
              desc="Jorō spiders, one female and two males"/>
     <picture filename="spiders-2"
@@ -24,16 +24,16 @@
              desc="Jorō spiders, one female and two males"/>
     <time>2022-11-02T15:49:52Z</time>
   </post>
-  <post title="thu cuối">
+  <post title="thu cuối" lang="vi">
     <picture filename="fall-ground"
-             desc="red and green leaves on the ground"/>
+             desc="cây non lùn tịt, quanh mấy lá đỏ đã rụng"/>
     <picture filename="fall-bridge"
-             desc="trees around the bridge with red and yellow leaves"/>
+             desc="cây bên cầu, một nửa lá đã ngả vàng"/>
     <picture filename="fall-park"
-             desc="trees with red, yellow and green leaves in the park"/>
+             desc="cây lá vàng, lá đỏ xen nhau với cây đã rụng lá trong vườn"/>
     <time>2022-11-07T11:48:08Z</time>
   </post>
-  <post title="harley quinn under spotlight">
+  <post title="harley quinn under spotlight" lang="en">
     <picture filename="ladybug-1"
              desc="harlequin ladybug in the dark lit by a light beam"/>
     <picture filename="ladybug-2"
diff --git a/page.xslt b/page.xslt
index 2b529b1..0b98aed 100644
--- a/page.xslt
+++ b/page.xslt
@@ -22,7 +22,7 @@
           <xsl:variable name="id">
             <xsl:value-of select="translate(@title, ' ', '-')"/>
           </xsl:variable>
-          <article id="{$id}">
+          <article id="{$id}" lang="{@lang}">
             <h2><a href="#{$id}">
               <xsl:value-of select="@title"/>
             </a></h2>