File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Added "index.html" to the relative_path field for both project_metadata and index_metadata. Added a "/" to fix the link in the simple_index_template.
Original file line number Diff line number Diff line change 2222 </head>
2323 <body>
2424 {% for name, canonical_name in projects %}
25- <a href="{{ canonical_name }}">{{ name }}</a><br/>
25+ <a href="{{ canonical_name }}/ ">{{ name }}</a><br/>
2626 {% endfor %}
2727 </body>
2828</html>
@@ -101,7 +101,7 @@ def write_simple_api(publication):
101101 index .write (template .render (context ))
102102
103103 index_metadata = models .PublishedMetadata .create_from_file (
104- relative_path = simple_dir ,
104+ relative_path = index_path ,
105105 publication = publication ,
106106 file = File (open (index_path , 'rb' ))
107107 )
@@ -140,7 +140,7 @@ def write_simple_api(publication):
140140 simple_metadata .write (template .render (context ))
141141
142142 project_metadata = models .PublishedMetadata .create_from_file (
143- relative_path = project_dir ,
143+ relative_path = metadata_relative_path ,
144144 publication = publication ,
145145 file = File (open (metadata_relative_path , 'rb' ))
146146 )
You can’t perform that action at this time.
0 commit comments