Skip to content

Commit

Permalink
Updated Nov 23 2024, added 2 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiangyuan Li authored and Jiangyuan Li committed Nov 23, 2024
1 parent f557a61 commit 648a520
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 9 deletions.
16 changes: 13 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,23 @@ def index():
# Route for individual posts


@app.route('/posts/<post_name>.html')
@app.route('/<path:post_name>.html')
def post(post_name):
post_path = f'posts/{post_name}.html'
# The `post_name` will include the folder path if it's inside a folder like 'hello'
post_path = f'{post_name}.html' # Check the root directory first

# If the post doesn't exist in the root, check the posts directory
if not os.path.exists(post_path):
post_path = f'posts/{post_name}.html' # Check posts folder

# If the post is inside a nested folder like posts/hello/
if not os.path.exists(post_path):
post_path = f'posts/{post_name}.html'

try:
with open(post_path, 'r') as file:
content = file.read()
return render_template('post.html', title=post_name.capitalize(), content=content)
return render_template('post.html', title=post_name.capitalize(), content=content, post_name=post_name)
except FileNotFoundError:
abort(404)

Expand Down
113 changes: 113 additions & 0 deletions posts/June 4 2024.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<h2>美国面签全过程!</h2>
<div>
<p>可能不少同志现在已经拿到I-20了,DS-160啊,SEVIS啊都准备得差不多了。现在就是等着准备面签了,希望这篇文章能帮到大家。</p>
<hr />
<p><br><strong>选择你的进度</strong></p>
<p><a href="#step-1-applying-for-a-visa-appointment">我还未申请</a><br>
<a href="#step-2-the-appointment">我已经申请完,正在等待面签</a>
</p>
<hr />
<p><br></p>
<h1>Step 1: Applying for a visa appointment</h1>
<p>首先要做的就是申请面签,网址:<a href="https://portal.ustraveldocs.com/">https://portal.ustraveldocs.com</a></p>
<ul>
<li>注册并登录</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-1.jpeg" /></p>
<ul>
<li>登录后应该会看到一个这样的界面</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-3.jpeg" /></p>
<ul>
<li>点击左上角的“New Application / Schedule Appointment”,学生签就选Nonimmigrant visa即可、</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-4.jpeg" /></p>
<ul>
<li>选择最近的大使馆地点</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-5.jpeg" /></p>
<ul>
<li>选择签证种类,请选择“Students - Other students”</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-6.jpeg" /></p>
<ul>
<li>选择签证种类,请选择“F-1”</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-7.jpeg" /></p>
<ul>
<li><strong>重点!</strong>填写护照和I-20相关信息,需与护照、DS-160和SEVIS完全一致!</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-8.jpg" /></p>
<ul>
<li><strong>注意:</strong>此处询问是否有同行家属等需要和你申请同样的F-1签证,肯定是不需要因为同行家属应当申请旅游签,此处请留空,直接continue</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-9.jpeg" /></p>
<ul>
<li><strong>注意:</strong>因为美国大使馆在面签结束三到五个工作日之后才能把护照送回,所以需要选择是请使馆邮寄护照还是自提,邮寄需要付100多块钱,自提有付费的,也有免费自提点</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-10.jpeg" /></p>
<p><img alt="My helpful screenshot" src="/assets/image/visa-11.png" /></p>
<ul>
<li><strong>注意:</strong>先交费才能确定时间,这里为了方便就截了这一张图,交费¥1369,可以支付宝</li>
</ul>
<p><img alt="My helpful screenshot" src="/assets/image/visa-12.jpeg" /></p>
<ul>
<li>之后的步骤就是选时间什么的就比较简单了。</li>
</ul>
<h1>Step 2: The appointment</h1>
<ul>
<li><strong>美利坚合众国驻华大使馆地址</strong>:北京市朝阳区安家楼路55号
<br>最近的地铁站是亮马桥站,但是从地铁站走到大使馆需要10分钟,请自行规划
</li>
<li><strong>早去!</strong>早上四点就有人开始排队了,如果你只提前四十分钟到的话大概是要排两个小时的队的哦。(亲身经历)
<br>当然如果实在没能赶上预约单上的那个时间页是没关系的,只要不至于说约的上午结果下午才去排队我觉得应该都没什么大问题。
</li>
<li><strong>不可以带如下物品进入大使馆:</strong>
<ol>
<li>任何电子设备</li>
<li>任何手表</li>
<li>钥匙</li>
<li>任何非透明的大包小包</li>
</ol>
</li>
<li>所以请<strong>先去马路对面的存包处存包</strong>,存包每人每包30元,每个手机20元,然后再排队</li>
<li>以下材料是必须携带的:<br>
<ol>
<li>DS-160确认单</li>
<li>I-20
<br><strong>注意:</strong>请确保你已经在I-20第一页下方的Student Signature上签过字,<strong>没有签字无效</strong>
</li>
<li>SEVIS缴费证明</li>
<li>面签申请证明</li>
<li>在有效期内的身份证</li>
<li>在有效期内的护照</li>
<li>户口本
<br><strong>注意:</strong>请确保前四项材料<strong>完整</strong>打印,我前面有位同志没完整打印排了两个小时在门口被拦住让回去重新打印 🫠 太惨了。
</li>
</ol>
</li>
<li>如果你来的不太早,你将在<strong>四个</strong>不同的地点排队:<ol>
<li>马路对面</li>
<li>使馆前的S型栏杆(请听从保安指挥,可能需要站成两队)</li>
<li>大使馆正门前的水池上面的桥</li>
<li>大使馆里面
<br>做好心理准备。
</li>
</ol>
</li>
<li>进入大使馆1层之后,先交材料(护照、I-20),再录指纹
<br>录指纹时,先将护照<strong>背面朝上</strong>放置在窗口左侧的扫描仪上,然后在右侧:<ol>
<li>先放左手四指</li>
<li>再放右手四指</li>
<li>最后一起放两个大拇指</li>
</ol>
</li>
<li>接下来,前往2层开始真正的面签</li>
<li>学生签证请用<strong>英文</strong>,相信我,用中文的是旅游签</li>
<li>问什么答什么</li>
<li>不要紧张</li>
<li>可能会先需要你的I-20</li>
<li>如果你拿到一张蓝色的单子,<strong>祝贺!你过了!</strong></li>
</ul>
<p>好了,这就是我能想到的全部内容了。</p> <!-- Renders the Markdown content as HTML -->
</div>
File renamed without changes.
64 changes: 58 additions & 6 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,65 @@
</a>
<div class="b-item-1"><span id="titleDisplay"></span></div>
<div id="attic-items">
<div class="b-item-2">publications</div>
<div class="b-item-2">things I love</div>
<div class="b-item">
<ul>
{% for post in posts %}
<li><a href="{{ url_for('post', post_name=post) }}">{{ post | capitalize }}</a></li>
{% endfor %}
</ul>
<a href="https://jerryly.top/pages/apple.html">Apple</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/friends.html">Friends</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/music.html">Music</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/taylorswift.html">Swiftie</a>
</div>
<div class="b-item-2">festivity</div>
<div class="b-item">
<a href="https://jerryly.top/pages/christmas.html">Christmas</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/homemade_giftcard.html">Homemade Giftcard</a>
</div>
<div class="b-item-2">other stuff</div>
<div class="b-item">
<a href="https://jerryly.top/pages/aluminum_studio.html">About</a>
</div>
<div class="b-item">
<a href="https://blog.jerryly.top">
Blog&emsp13;&emsp13;
<i class="fa-solid fa-arrow-up-right-from-square"></i>
</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/classical_ch_sh.html">Classical Chinese for Senior High</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/classical_ch.html">Classical Chinese for Junior High</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/clock.html">Clock</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/contact.html">Contact</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/develop.html">Develop</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/flashback.html">Rainbow Room</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/gallery.html">Gallery</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/noticeboard.html">Noticeboard</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/search.html">Search (deprecated)</a>
</div>
<div class="b-item">
<a href="https://jerryly.top/pages/survey.html">Survey</a>
</div>
</div>
</header>
Expand Down

0 comments on commit 648a520

Please sign in to comment.