Commit Graph

52 Commits

Author SHA1 Message Date
Lorenzo Dellacà
29ca10e4dd Add function to remove consent 2021-03-16 17:41:44 +01:00
Lorenzo Dellacà
6af0e8208c Add Matomo method for opt-in 2021-03-16 17:40:31 +01:00
Lorenzo Dellacà
5fc071a534 Add cookie consent fix 2021-03-16 17:39:58 +01:00
d976eaed0c Make <a> tag less bright
It was completely white before, and it had too much contrast in comparison to the rest of the text. Now, it's rgb(220, 220, 220).
2021-01-03 15:59:55 +01:00
2858f82b3a Start implementing post info at bottom
Now, all posts show info about: author, updated date, tags.
However, styling is needed and also the tags part has to be fixed (we need to add a comma after every tag's name, excluding the last one)
2021-01-03 15:56:27 +01:00
208ea6aa52 Make Remark42 load asynchronously 2021-01-03 12:13:21 +01:00
7dc83d3f75 Add PrismJS languages compatibility
Now, text highlighting supports HTML, CSS, C, JS, Bash, Batch, C++, C#, .gitignore, Java, JSON and YAML.
2021-01-03 11:49:54 +01:00
3adf2fcde4 Organize scripts under subdirectories 2021-01-03 11:38:55 +01:00
1890876929 Implement code highlighting via PrismJS
PrismJS has been locally included with a custom theme, to allow auto-highlighting of code blocks.
2021-01-03 11:25:51 +01:00
6fbeeb7303 Fix default.hbs indentation 2020-11-10 21:58:58 +01:00
40396bb835 Fix some fonts being too small 2020-11-10 21:58:41 +01:00
e4bb647586 Make /tags/ page responsive, fix some paddings
In post cards, the "tag and date" text was slightly moved to the right and looked ugly. This was fixed.
The /tags/ page had a horizontal padding of 0 which made it look ugly. Solved.
The /tags/ page now scales based on screen size and is responsive. Fixes #5
2020-11-10 21:27:06 +01:00
3532021222 Hide Remark42's own footer 2020-11-10 19:28:59 +01:00
014a1ccf38 Make <a> underlined and animated 2020-11-09 23:28:32 +01:00
deabfa8d93 Fix KG Bookmark sizing and proportions
This commit fixes #4.
The kg bookmark sometimes had weird proportions, depending on the original image size and how long the text to show is. Also, the title was not clamped to 2 lines max.
2020-11-09 19:35:10 +01:00
2aaf12a905 Make code block text a little darker 2020-11-09 12:25:31 +01:00
a962887133 Fix mobile title and code block
- On posts, the line-height was too high and mobile devices were overflowing the title on top. Now it's smaller, so a longer title should not be a problem.
- The horizontal navbar on code blocks was always present. Now, it only shows when necessary.
2020-11-09 12:13:02 +01:00
e2f0f4bc81 Install & configure gulp 2020-11-06 17:49:14 +01:00
e899839211 Implement more image resizing, fix responsiveness
- Two new image sizes have been added: xl and xxl.
- Image resizing has been implemented in featured images.
- Some elements were not responsive, such as the link preview and code block.
2020-11-06 17:35:02 +01:00
dfb76da486 Fix footer and homepage responsive fonts
Fonts had weird sizes in the homepage, and the footer was at a fixed 25px.
Now, they both scale correctly.
2020-11-06 01:34:32 +01:00
d8b54a00d9 Proceed implementing responsive theme
The responsive theme is almost ready; most pages and elements now render correctly on the vast majority of screens. There are some known issues which are in the works.

Also, a <h4> "Paragraphs" title has been aded on the left navbar.
2020-11-06 00:28:34 +01:00
ae728ffd9e Made navbar responsive & policy popup faster 2020-11-05 21:19:43 +01:00
fe27137016 Start responsive design implementation
This commit brings a big update to the screen.css file, making the homepage + policy popup almost 100% responsive.
Another added feature is in the left sidebar: the currently viewed paragraph's title is now highlighted.
2020-11-05 20:44:02 +01:00
83302f7cc3 Added script to make list of headers
Added a new script with the purpose of getting all headers from a post's content and creating links for them in the left sidebar.
Some div classes have been modified, and a wrapper div has been added to posts because of this new script.
Some minor CSS changes have been made.
2020-11-05 16:14:13 +01:00
84f9eadd3b Bump version 2020-11-05 00:06:03 +01:00
13243eed69 Fix post columns applied to page content
- this commit fixes #3.
2020-11-04 23:52:05 +01:00
58f26b715b Fix indentation 2020-11-04 23:47:36 +01:00
67ba61d93b Fix missing handlebars checks 2020-11-04 23:43:30 +01:00
f08c70ca67 Move vanta-js to separate partial to avoid duplication 2020-11-04 23:38:08 +01:00
a39c83793e Fix comments and indentation 2020-11-04 23:35:44 +01:00
eefd3de659 Fix minor issues
- fixed indentation
- moved navbars and policy popup to "partials"
- fixed broken image if website icon wasn't set
2020-11-04 23:29:55 +01:00
3cf0c72092 Update .editorconfig 2020-10-30 21:52:05 +01:00
dec41159a8 Merge remote-tracking branch 'github/master'
# Conflicts:
#	assets/css/screen.css
#	custom-tags.hbs
#	tag.hbs
2020-10-30 21:37:54 +01:00
3360f14d83 Change line endings from CRLF to LF 2020-10-30 00:19:49 +01:00
964a474355 Update text font
- Switched from Roboto to Open Sans
- Removed unused fonts
- Reduced text size from 19px to 18px
- upped version (0.0.5 to 0.0.6)
2020-10-30 00:16:35 +01:00
69c1bf00d2 Finish creating /tags/ page
The tags page was finally completed, and shows every tag
with its own image.

A "see all tags" link was added in the header of every
(single) tag's page, in case of a missing description.

Also, the "secondary navigation" div now has a relative
position and a higher z-index, so that the tags page's
header does not cast a shadow on it.

Signed-off-by: Lorenzo Dellacà <lorenzo.dellaca@mind-overflow.net>
2020-08-20 15:47:29 +02:00
e166717e21 Remove useless <link> stylesheet tag for removed CSS file
Signed-off-by: Lorenzo Dellacà <lorenzo.dellaca@mind-overflow.net>
2020-08-20 14:29:08 +02:00
3bd2fe5627 End CSS refactoring and organization
CSS refactoring is now complete, and all styles are correctly
organized in main "screen.css" file, with a table of contents.

All supplementary CSS files have been removed, with the
exception of "fonts.css", as explained in previous commit.

This CSS implementation may, however, be considered immature,
and thus could be subject to heavy changes again in the near
future.

Many things are also still missing, such as a responsive
design and support for some custom pages (such as /tags/).

Signed-off-by: Lorenzo Dellacà <lorenzo.dellaca@mind-overflow.net>
2020-08-20 14:05:14 +02:00
67344effd0 Begin CSS refactoring for improved organization
CSS code was divided in multiple files, however this was not practical
for organization since different pages needed different CSS classes one
 another, that were in most of those CSS files.

This commit brings (mostly) everything in one file with a table of
contents on top.

An exception is made for fonts, that are now in a separate "fonts.css"
file, since they contain fundamentally different things.

Classes organization is not yet complete, however a great part was done.
Next commits will finalize this organization and finish moving classes.

Signed-off-by: Lorenzo Dellacà <lorenzo.dellaca@mind-overflow.net>
2020-08-18 18:20:39 +02:00
da155c7d7e Lots of changes
- add tags.hbs
- add home.hbs, copy of index.hbs
- change <h1> global font size
 make some animations faster
- make post title & footer background black instead of animated gradient
- make "services" link in navbar white instead of animated gradient
- move some css classes to screen.css to allow tags.hbs accessing them
- fix policy popup being covered (issue #001)
- fix policy popup style
- fig kg-bookmark thumbnail image
- add PT Serif font
- add category and posted date under post title
- move big post cards to post-card-big.hbs, so both index, home and tags can access it
- mode post post cards style to new post-card-style.css file
- update page.hbs, now rendering correctly and including content
- add "l" size to package.json, to allow more high-res images
2020-08-18 15:30:35 +02:00
e9c2f9ea41 improve css in general:
- display images as blocks
- style and add <hr> div before comments section

move remark42 from subdomain to subdirectory
2020-08-17 14:44:33 +02:00
061b6dc122 implement some image resizing (todo: implement in whole website)
fix/improve css
change arrow-fade mode
2020-08-16 17:58:46 +02:00
3b4b716667 implement sidebar related-posts style
implement remark42 commenting system
2020-08-16 12:25:09 +02:00
a1f0fcaf99 implement posts style, to be completed
change font
add secondary navigation to homepage
2020-08-15 12:40:28 +02:00
121708786d general style update:
- update homepage style
- update navbar style
- update footer style
- update feed animation
- add website logo
2020-08-13 19:35:53 +02:00
25b37da7ce fix minor stuff, rename some CSS classes 2020-08-13 15:41:45 +02:00
3b02a75451 began structuring index page. posts now show correctly on a 1920x1080 screen. 2020-08-13 14:23:29 +02:00
359e6108c9 WIP: blog implementation on homepage 2020-08-12 18:55:35 +02:00
ba5943c94a removed useless workflow 2020-08-12 15:06:37 +02:00
eb6304aab2 completed transitioning from static HTML&CSS-only website to Ghost CMS.
next step is to readapt the style to be more "content-friendly".
2020-08-12 15:03:22 +02:00