Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build site with Eleventy #166

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

alifeee
Copy link
Contributor

@alifeee alifeee commented May 9, 2024

closes #160

As described in #160, the repository structure is now multiple "year folders", each containing many html fragment files. These can be any name and format, and the content is placed within the <li> items in the main <ol> list on the page. For example, a file 2024/alifeee.html, with content

<a href="https://alifeee.co.uk">alifeee</a>

is rendered into the 2024 HTML file as

  <ol>
    <!-- ... -->
    <li><a href="https://alifeee.co.uk">alifeee</a></li>
    <!-- ... -->
  <ol>

This is done with the Handlebars templating language, but Eleventy allows any templating language.

All historical files are converted to the new format, and the new format allows a pre-filled link to be provided, i.e.,

https://github.com/css-naked-day/css-naked-day.github.io/new/master/2023?filename=yourname.html&value=%3Ca%20href=%22https://yoursite.com/%22%3EYour%20site%20name%3C/a%3E

I have also added a GitHub Actions workflow to publish the site to GitHub pages. To allow this to work, the publishing source for GitHub pages will have to be changed in the settings from "branch" to "action".

image

Please see a preview of the site on https://cssnaked.alifeee.co.uk/, and I encourage you to download and tinker with the branch on my repository yourself.

The resulting site is almost identical to the existing. The differences are:

  • the names are sorted alphabetically (by the sorting of the file-system)
  • there is a Yours? link at the bottom of each <ol>. This uses the pre-filling style of link mentioned above.

Thanks. Hope all is well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Static Site Generator to generate the website
1 participant