Skip to content

Commit

Permalink
Updated Nov 23 2024
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 efd7b87 commit f557a61
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 19 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from flask_frozen import Freezer
from flask import Flask, render_template, abort
import os

Expand Down Expand Up @@ -29,7 +30,6 @@ def post(post_name):
abort(404)


from flask_frozen import Freezer
freezer = Freezer(app)


Expand Down
44 changes: 44 additions & 0 deletions posts/October 4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<h2>杂谈</h2>
<div>
<h3>1. 美联储四年来首次降息</h3>
<p>以下为<a href="https://www.cnbc.com/2024/09/18/fed-cuts-rates-september-2024-.html"> CNBC 报道</a></p>
<p>WASHINGTON – The Federal Reserve on Wednesday enacted its first interest rate cut since the early days of the
Covid pandemic, slicing half a percentage point off benchmark rates in an effort to head off a slowdown in the
labor market.</p>
<p>“We’re trying to achieve a situation where we <strong>restore price stability without the kind of painful
increase in unemployment</strong> that has come sometimes with this inflation. That’s what we’re trying to
do, and I think you could take today’s action as a sign of our strong commitment to achieve that goal,” Chair
Jerome Powell said at a news conference following the decision.</p>
<p>The decision comes despite most economic indicators looking fairly solid.</p>
<p>Gross domestic product has been rising steadily, and the Atlanta Fed is tracking 3% growth in the third quarter
based on continuing strength in consumer spending. Moreover, the Fed chose to cut even though most gauges
indicate inflation well ahead of the central bank’s 2% target. The Fed’s preferred measure shows inflation
running around 2.5%, well below its peak but still higher than policymakers would like.</p>
<p>However, Powell and other policymakers in recent days have <strong>expressed concern about the labor
market</strong>. While layoffs have shown little sign of rebounding, hiring has slowed significantly. In
fact, the last time the monthly hiring rate was this low – 3.5% as a share of the labor force – the unemployment
rate was above 6%.</p>
<p>以下为<a
href="https://apnews.com/article/interest-rates-inflation-prices-federal-reserve-economy-0283bc6f92e9f9920094b78d821df227">美联社报道</a>
</p>
<p>The rate cut, the Fed’s first in more than four years, <strong>reflects its new focus on bolstering the job
market, which has shown clear signs of slowing.</strong> Coming just weeks before the presidential election,
the Fed’s move also has the potential to <strong>scramble the economic landscape just as Americans prepare to
vote</strong>.</p>
<p>所以综上所述:</p>
<ul>
<li>确实有政治意图</li>
<li>但更多的是为了刺激就业市场</li>
<li>FDR (美联储) 的主席 <a href="https://en.wikipedia.org/wiki/Jerome_Powell">Jerome Powell</a>
是共和党人,在临近大选这个时候强调通货膨胀得到改善,显然不是为了自己党派的利益</li>
</ul>
<h3>2. 美国的经济可持续发展性</h3>
<p><img alt="美国国债曲线" src="../static/image/Snipaste_2024-10-05_15-20-46.png" /></p>
<p>这是美国的<a href="https://www.cfr.org/backgrounder/us-national-debt-dilemma#chapter-title-0-2">国债曲线</a></p>
<p>Economists at the Penn Wharton Budget Model estimate that financial markets cannot sustain more than twenty
additional years of deficits. At that point, they argue, no amount of tax increases or spending cuts would
suffice to avert a devastating default. “The debt doesn’t matter until it does,” says Maya MacGuineas, president
of the bipartisan Committee for a Responsible Federal Budget. “By taking advantage of our privileged position in
the global economy, we may well lose it.”</p>
<p>所以经济学家认为找其他国家借钱顶多借20年。</p> <!-- Renders the Markdown content as HTML -->
</div>
1 change: 0 additions & 1 deletion posts/first-post.html

This file was deleted.

2 changes: 1 addition & 1 deletion freeze.py → preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@


if __name__ == '__main__':
freezer.freeze()
app.run(debug=True)
30 changes: 23 additions & 7 deletions static/css/style.css
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,6 @@ body {
font-family: 'Inter', 'Source Han Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 60px;
font-weight: bold;
margin-left: 30px;
margin-right: 30px;
margin-top: 120px;
}

Expand All @@ -343,11 +341,9 @@ body {
}

#dev-cal-2 {
font-family: 'Inter', 'Source Han Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-family: 'Charter', 'Source Han Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 15px;
z-index: -1;
margin-left: 30px;
margin-right: 30px;
}

#update {
Expand Down Expand Up @@ -468,15 +464,35 @@ nav {
padding: 0 3px;
}

/* Blog-specific styles */

h1,
h2,
p,
h3 {
font-family: 'Charter', 'Source Han Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

footer {
margin-left: 30px;
font-family: 'Inter', 'Source Han Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
margin-left: calc(10% + 30px);
font-family: 'Charter', 'Source Han Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

main {
margin-top: 70px;
width: 80%;
margin-left: 10%;
}

.b-item>ul {
margin: 0;
padding: 0;
}

.b-item>ul>li {
list-style: none;
margin: 0;
padding: 0;
}

/* media queries */
Expand Down
12 changes: 8 additions & 4 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
{% block title %}Jerry's blog...{% endblock %}

{% block content %}
<h2>Jerry's blog</h2>
<p id="dev-cal-2">This is the content specific to the homepage.</p>
<h2>Jerry's blog 李江源的博客</h2>
<p id="dev-cal-2">
很神奇的是相比于主页,我的博客虽然更新很不频繁但却是我改动最大的代码仓库——很多次都在各种服务器之间摇摆,思考怎么样才能以最简朴的方式呈现。
在删了又改,改了又删的探索中,我好像开始明白——静态网页不一定是静态的。不过那是后话了——现在,欢迎你来到我的博客。
</p>
<ul>
{% for post in posts %}
<li><a href="{{ url_for('post', post_name=post) }}">{{ post | capitalize }}</a></li>
<li id="dev-cal-2"><a href="{{ url_for('post', post_name=post) }}">{{ post | capitalize }}</a></li>
{% endfor %}
</ul>
<p id="dev-cal-2">This is the content specific to the homepage.</p>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
{% endblock %}
34 changes: 30 additions & 4 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<link rel="stylesheet" href="{{ url_for('static', filename='fontawesome/css/all.css') }}">
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/charter-webfont@4/charter.min.css" />
</head>

<body>
Expand All @@ -42,7 +43,11 @@
<div id="attic-items">
<div class="b-item-2">publications</div>
<div class="b-item">
<a href="javascript:;">None</a>
<ul>
{% for post in posts %}
<li><a href="{{ url_for('post', post_name=post) }}">{{ post | capitalize }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</header>
Expand All @@ -56,9 +61,30 @@
<main>
{% block content %}{% endblock %}
</main>
<footer>
<p>&copy; 2024 My Frozen Flask App</p>
</footer>
<div id="copyright-info">
<p class="copyright-info">
想帮忙?有想法或建议?欢迎给
<a href="mailto:[email protected]">[email protected]</a>
发一封邮件。<br>
</p>
<p class="copyright-info">
版权所有 © aluminum.studio
<a id="my-page" href="http://jerrylovescheese.github.io/web/pages/aluminum_studio.html">
江源工作室 <i class="fas fa-arrow-right"></i>
</a>
</p>
<p class="copyright-info">
<a href="javascript:;" onclick="alert('Currently no items in test. Stay tuned!')">
<i class="fas fa-flask"></i>&emsp13;
实验室
</a>
&emsp;
<a href="https://blog.jerryly.top/2024/04/04/legal-statement.html">
<i class="fa-solid fa-scale-balanced"></i>&emsp13;
法律声明
</a>
</p>
</div>
</body>

</html>
3 changes: 2 additions & 1 deletion templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
{% endblock %}

{% block content %}
<a id="dev-cal-2" href="{{ url_for('index') }}"><i class="fas fa-arrow-left"></i>&emsp;Back to Blog</a>
<h1>{{ title }}</h1>

<div class="post-content">
{{ content | safe }}
</div>

<a id="dev-cal-2" href="{{ url_for('index') }}"><i class="fas fa-arrow-left"></i>&emsp;Back to Blog</a>

{% endblock %}

0 comments on commit f557a61

Please sign in to comment.