Hugo
Pelican
Our great sponsors
Hugo | Pelican | |
---|---|---|
476 | 18 | |
66,118 | 11,468 | |
1.7% | 1.1% | |
9.0 | 7.4 | |
4 days ago | 16 days ago | |
Go | HTML | |
Apache License 2.0 | GNU Affero General Public License v3.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Hugo
-
Github actions: Deploy a Hugo website to a FTP server
name: 🚀 Deploy to prod # Will trigger the workflow on each push to the main branch on: push: branches: - main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: jobs: # The first job will build the hugo site and upload the artifact build: name: 🔧 Build Hugo site runs-on: ubuntu-latest env: HUGO_VERSION: 0.111.2 steps: - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ && sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Install Dart Sass Embedded run: sudo snap install dart-sass-embedded - name: Checkout uses: actions/[email protected] with: submodules: recursive fetch-depth: 0 - name: Install Node.js dependencies run: '[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true' - name: Build with Hugo env: # For maximum backward compatibility with Hugo modules HUGO_ENVIRONMENT: production HUGO_ENV: production run: | hugo \ --gc \ --minify # We save the result as an artificat so we can use it in the next job - name: Upload artifact uses: actions/[email protected] with: name: release-artifact path: './public' # The second job will deploy the site to the FTP server using the artifact from the first job deploy: name: 🎉 Deploy runs-on: ubuntu-latest needs: build steps: - name: Checkout uses: actions/[email protected] # Download the artifact we just created - name: Download artifact uses: actions/[email protected] with: name: release-artifact path: './public' # This is the path where the artifact will be downloaded to - name: Deploy file uses: wlixcc/[email protected] with: server: ${{ vars.ftp_server }} username: ${{ vars.ftp_username }} ssh_private_key: ${{ secrets.ftp_password }} # or if you only use a password # sftp_only: true # password: ${{ secrets.ftp_password }} port: ${{ vars.ftp_port }} remote_path: '/var/www/app' # This will depend on your server local_path: './public/*' # This is the path where the artifact is located
Nowadays, it never has been easier to build and host a website for having any form of online presence. You don't even need a lot of web development knowledge. There are many tools and resources available that make the process easier than ever. One such tool is Hugo, a fast and flexible static site generator that allows users to create websites quickly and easily. In addition, deploying a Hugo site to a web server can be made even simpler through the use of Github Actions (assuming your code is hosted on github), a powerful automation tool that can be used to automatically deploy a website to a FTP server. In this article, we'll explore how to use Hugo to build a website and then deploy it to a FTP server using Github Actions, providing a step-by-step guide for those looking to get their website up and running quickly and efficiently.
-
Futuristic documentation systems in Python, part 1: aiming for more
The result of this historical evolution is that the world of static site generators has made amazing progress over the past few years and the Python ecosystem hasn't caught up with it. Nowadays there's a rich ecosystem of different options for static site generation, some of which lean more towards server side generation and simplicity (like Hugo) while others leverage Single Page Application frameworks like React.js or similar (like Docusaurus). On top of that, there are "headless CMSs" that can use some of these SSGs as a backend, offering a more sophisticated authoring experience while offloading the HTML output generation to a different component (like Decap CMS, Ghost, or Forestry).
-
Learning Azure - any practical use cases?
We are going to use an application called Hugo to generate a static website. You could of course run Hugo on your own machine - but to flex your muscles in Azure, we're going to stand up a VM. You'll then be able to experiment with different ways to host this static website within Azure. First, create a resource group to house the authoring workload:
-
Building a Serverless Post Scheduler For Static Websites
My blog is a static site hosted in AWS Amplify. There's no dynamic content on it at all. I push Markdown files to the main branch of my site repo in GitHub and Amplify builds it with Hugo. Hugo renders the Markdown as HTML and drops it in an S3 bucket behind a CloudFront distribution.
- Software für Blog?
-
Minimum Viable Hugo – No CSS, no JavaScript, 1 static HTML page to start you off
Hugo is not made for minimum viable blogs. Its advantage in performance only becomes important for bigger websites or blogs with thousands of articles. But especially for bigger websites it should be possible to auto-generate a good archive. However the developers of Hugo stubbornly refuse to fix this very important 8 year old issue: https://github.com/gohugoio/hugo/issues/448
-
I am trying to create a STATIC blog for a long time but I am stuck with where to store all these files.
If you don't feel like you need to create it from scratch (as in: if you want to have a static blog or website, and you don't mind if you didn't code every little aspect of it), I'd recommend using a generator like Jekyll, Gatsby or Hugo. And even if you don't directly use them, you can learn a bit on how they do this sort of implementation.
-
Bearclaw – tiny static site generator with RSS
Hey thanks for looking :) hugo has a lot more moving parts, and a lot more dependencies [0]. bearclaw is written to be simple and easy to understand without instructions or learning any new paradigms about templating or frontmatter or other markup languages.
-
Jamstack Won't Replace WordPress
I had some expectations with lightweight alternatives to WP. Played some time ago with hugo (https://gohugo.io/), just wanted to set up a simple blog, couple of static pages, that i could extend any time I want.
Pelican
-
Ask HN: Which Python or Rust-based static site generators to use as of 2023?
I use Pelican (https://getpelican.com/) for my blog, which works decently for me. It is a static site generator written in Python.
But you probably won't learn much Python by using it (or Rust when using a generator written in it) since you probably won't need to change anything in it.
-
Creating a Python Wiki application
Surely a "local private wiki ... not web based ... on a desktop application" is not really a "wiki" at all, but rather a "static site generator" with a built-in "search". If that's what you want, there's a Python app called Pelican. Writing such an app from scratch isn't really a beginners project.
-
Top ten popular static site generators (SSG) in 2023
Pelican — best for Python developers
-
Trying to work around a Jekyll site-building tutorial without using Jekyll
You can - you'd basically just create a python script that parses your HTML/CSS files and replaces strings with values from your YAML. However I wouldn't recommend that unless you're just using this as an opportunity to learn Python. If you want to standup a real site and you want to use python, I'd recommend a Python static site generator like Pelican or Nikola.
-
Help me find a suitable static site generator
As you're familiar with Python, how about https://getpelican.com?
-
Over 280,000 WordPress Sites Attacked Using WPGateway Plugin Zero-Day Vulnerability
My own blog and portfolio site is hosted on github pages. Since I'm knowledgeable with web development, I use a static site generator, it's a software which generates your site pages for you on the fly based on pre-determined html/css structure and markdown posts. The setup exists in a single folder and all you have to do is push the generated html files to a github repo and the content becomes live on site! It's 100% static and hence 100% free, no PHP scripting or apache or whatsoever. Jekyll and Pelican are the most popular static site generators if you wish to go that route.
-
The flying start of your blog with Pelican and Github Pages
Pelican (anagram of the word calepin which means notebook in French) is what is called a Static Site Generator (SSG).
-
CLIpedia - Enhanced awesome list of CLI/TUI programs
I know exactly what you mean by the part to have all the files locally and rsync them on the server. I use Pelican as a static site generator and my blog articles are markdown files in a git repository.
-
Mau: a lightweight markup language based on Jinja
Markdown is a great format, and I used it for all my blog posts since I started writing. Pelican, which is the static site generator that I use, supports Markdown out of the box, so it was extremely easy to start using it, and overall I had an enjoyable experience.
-
Static website builder for a completely non technical person
https://getpelican.com/, can't get easier than that.
What are some alternatives?
astro - Astro is the all-in-one web framework designed for speed 🏝️✨
Lektor - The lektor static file content management system
Nikola - A static website and blog generator
MkDocs - Project documentation with Markdown.
eleventy 🕚⚡️ - A simpler static site generator. An alternative to Jekyll. Transforms a directory of templates (of varying types) into HTML.
Hexo - A fast, simple & powerful blog framework, powered by Node.js.
obsidian-export - Rust library and CLI to export an Obsidian vault to regular Markdown
Jekyll - :globe_with_meridians: Jekyll is a blog-aware static site generator in Ruby
SvelteKit - web development, streamlined
Hyde - A Python Static Website Generator
Docusaurus - Easy to maintain open source documentation websites.