added more articles so I can test pagination
parent
f751f1a7dd
commit
018b4ede0e
@ -0,0 +1,13 @@
|
|||||||
|
<h1>weekly roundup</h1>
|
||||||
|
september 13-19, 2020
|
||||||
|
bottle<br>
|
||||||
|
<br>
|
||||||
|
<h2>friday, september 18</h2>
|
||||||
|
<ul>
|
||||||
|
<li>switched from PHP to Bottle</li>
|
||||||
|
<li>hello world in Bottle</li>
|
||||||
|
<li>created templates for main pages</li>
|
||||||
|
<li>Used Bottle to fill values in a template using variables</li>
|
||||||
|
<li>Used Bottle to avoid repeating html code in navigation pane, header, and footer</li>
|
||||||
|
</ul>
|
||||||
|
<br>
|
@ -0,0 +1,14 @@
|
|||||||
|
<h1>weekly roundup</h1>
|
||||||
|
september 20-26, 2020
|
||||||
|
bottle<br>
|
||||||
|
<br>
|
||||||
|
<h2>friday, september 25</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Diary snippets are formated from data taken from their articles. The article preview is cut to the character limit.</li>
|
||||||
|
</ul>
|
||||||
|
<br>
|
||||||
|
<h2>saturday, september 26</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Updated the blessfrey.me script to serve static content like CSS stylesheets + images. Now the pages are actually styled.</li>
|
||||||
|
</ul>
|
||||||
|
<br>
|
@ -0,0 +1,11 @@
|
|||||||
|
<h1>why bottle over php? </h1>
|
||||||
|
october 1, 2020<br>
|
||||||
|
<br>
|
||||||
|
<b>Bottle</b> is a Python framework for server-side web development.<br>
|
||||||
|
<br>
|
||||||
|
It's useful because it lets you reuse code for HTML, supports simple HTML templating, and is Python, which is a fun scripting language to use with tons of libraries.<br>
|
||||||
|
<br>
|
||||||
|
<b>PHP</b> is an old server language. It's very verbose, doesn't natively support templating, has extreme differences between versions which makes it confusing to research the fastest approaches, and its documentation is confusing. At least, amusingly, each documentation page has an open comment section underneath it, filled with conflicting and frustrated opinions, some dating back to when I was a toddler. <br>
|
||||||
|
<br>
|
||||||
|
It's still good to practice with, since it's a widely used web development language, and I feel like understanding it brings me closer to the PHP petsites of the mid-2000s which I dearly love.<br>
|
||||||
|
<br>
|
@ -0,0 +1,19 @@
|
|||||||
|
<h1>this week</h1>
|
||||||
|
september 27-october 3, 2020
|
||||||
|
bottle, css, git, html, regex, regular expressions, website<br>
|
||||||
|
<br>
|
||||||
|
<h2>wednesday, august 9</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Working on the website in the first time in a while;; </li>
|
||||||
|
<li>blessfrey.me's static pages look as intended - no footer in the middle of the body, no unclosed <ul> tags from diary entry previews breaking the CSS.</li>
|
||||||
|
<li>w3's Nu Html Checker (lol @ the nu name) is really handy for automatically checking whether all my html tags are closed and CSS is valid, especially the parts generated through Bottle + SimpleTemplate. </li>
|
||||||
|
</ul>
|
||||||
|
<h2>thursday, october 1</h2>
|
||||||
|
<ul>
|
||||||
|
<li>blessfrey.me's diary properly displays snippets for all articles: a header taken from the title, a truncated view of the article, the date + a place for social media share links, and a link to the article.</li>
|
||||||
|
<li>Cleaning the snippets enough to look okay and not break the page was a challenge. I used regular expressions to remove html link + header tags, <a href="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags">which is apparently a lost cause Stack Overflow users stand against daily, hourly even</a>. It's not so bad if it's not user content, and the content is pretty predictable, right?
|
||||||
|
<li>Pythex @ https://pythex.org/ is useful for checking whether your regular expression will catch your target strings</li>
|
||||||
|
<li>First command line git merge. I usually do it on the website. It's really simple - switch to the branch you're merging the second branch into, type 'git merge second-branch' (second-branch = name of the second branch obviously), and fix any conflicts.</li>
|
||||||
|
</ul>
|
||||||
|
<br>
|
||||||
|
<br>
|
Loading…
Reference in New Issue