|
2 | 2 | import { getCollection } from 'astro:content'; |
3 | 3 | import BaseLayout from '../../layouts/BaseLayout.astro'; |
4 | 4 | import Breadcrumbs from '../../components/Breadcrumbs.astro'; |
5 | | -
|
6 | | -const TITLE_NAMES: Record<number, string> = { |
7 | | - 1: 'General Provisions', |
8 | | - 2: 'The Congress', |
9 | | - 3: 'The President', |
10 | | - 4: 'Flag and Seal, Seat of Government, and the States', |
11 | | - 5: 'Government Organization and Employees', |
12 | | - 6: 'Domestic Security', |
13 | | - 7: 'Agriculture', |
14 | | - 8: 'Aliens and Nationality', |
15 | | - 9: 'Arbitration', |
16 | | - 10: 'Armed Forces', |
17 | | - 11: 'Bankruptcy', |
18 | | - 12: 'Banks and Banking', |
19 | | - 13: 'Census', |
20 | | - 14: 'Coast Guard', |
21 | | - 15: 'Commerce and Trade', |
22 | | - 16: 'Conservation', |
23 | | - 17: 'Copyrights', |
24 | | - 18: 'Crimes and Criminal Procedure', |
25 | | - 19: 'Customs Duties', |
26 | | - 20: 'Education', |
27 | | - 21: 'Food and Drugs', |
28 | | - 22: 'Foreign Relations and Intercourse', |
29 | | - 23: 'Highways', |
30 | | - 24: 'Hospitals and Asylums', |
31 | | - 25: 'Indians', |
32 | | - 26: 'Internal Revenue Code', |
33 | | - 27: 'Intoxicating Liquors', |
34 | | - 28: 'Judiciary and Judicial Procedure', |
35 | | - 29: 'Labor', |
36 | | - 30: 'Mineral Lands and Mining', |
37 | | - 31: 'Money and Finance', |
38 | | - 32: 'National Guard', |
39 | | - 33: 'Navigation and Navigable Waters', |
40 | | - 34: 'Crime Control and Law Enforcement', |
41 | | - 35: 'Patents', |
42 | | - 36: 'Patriotic and National Observances, Ceremonies, and Organizations', |
43 | | - 37: 'Pay and Allowances of the Uniformed Services', |
44 | | - 38: "Veterans' Benefits", |
45 | | - 39: 'Postal Service', |
46 | | - 40: 'Public Buildings, Property, and Works', |
47 | | - 41: 'Public Contracts', |
48 | | - 42: 'The Public Health and Welfare', |
49 | | - 43: 'Public Lands', |
50 | | - 44: 'Public Printing and Documents', |
51 | | - 45: 'Railroads', |
52 | | - 46: 'Shipping', |
53 | | - 47: 'Telecommunications', |
54 | | - 48: 'Territories and Insular Possessions', |
55 | | - 49: 'Transportation', |
56 | | - 50: 'War and National Defense', |
57 | | - 51: 'National and Commercial Space Programs', |
58 | | - 52: 'Voting and Elections', |
59 | | - 53: 'Reserved', |
60 | | - 54: 'National Park Service and Related Programs', |
61 | | -}; |
| 5 | +import { TITLE_NAMES } from '../../data/title-names'; |
62 | 6 |
|
63 | 7 | export async function getStaticPaths() { |
64 | 8 | const entries = await getCollection('statutes'); |
@@ -103,6 +47,7 @@ const base = import.meta.env.BASE_URL; |
103 | 47 | description={`Chapters in Title ${titleNum} of the United States Code: ${titleName}`} |
104 | 48 | > |
105 | 49 | <Breadcrumbs items={[ |
| 50 | + { label: 'Home', href: base }, |
106 | 51 | { label: 'Browse', href: `${base}browse/` }, |
107 | 52 | { label: `Title ${titleNum} — ${titleName}` }, |
108 | 53 | ]} /> |
|
0 commit comments