从零构建Hugo主题 - II 这是一个系列博客,记录了我从零开始构建Hugo主题的过程。使用Tailwind从零开始构建Hugo主题第二部分,包括Hugo主题的主要目录结构,需要了解的技术,以及我创建的主题的主体框架
通过GitHub Actions自动化部署Hugo静态站点至服务器 在最开始搭建博客的文章中,我纂写了一个Makefile用来将我的build:当然,作为程序员总是很懒的,很多东西都想考虑自动化。早些年用过Jenkins、Ansible等工具,其实都属于CICD的范畴。GitHub提供强大的功能,可以满足持续集成、持续发布的需求。GitHub官方有非常多详细的教程及模板,参考所以在此就不进行赘述,本文主要涉及部署到服务器时涉及到的密钥安全问题。
deploy tornado apps within nginx tornado apps listen port: 8888nginx conf file:user root;worker_processes 1;error_log logs/error.log;pid logs/nginx.pid;events { worker_connections 1024; use epoll;}http { # En
nginx ssl SSL module is not enabled by default, use --with-http_ssl_module option to enable it:./configure --with-http_ssl_modulemakemake installoptions for nginx command:-c Specify which configurati
validation for email, ip and netmask function valid_email(email) { return (email != "" && email.length <= 256 && /^([\w\-.+_]{1,64}@([\w-]{1,255}\.)+[\w-]{2,4})?$/.test(email))
jquery selectors and functions slide and "not" selector$("#"+groupindex).click(function(){ var category_div=$("div.category_name", this); $(".category_body:not
php proxy for jquery ajax cross site request <?phpdefine('AUTO_LOGIN', true);define('PLATFORM_URL', 'http://10.64.68.12:6543');function socketRedirect(){ try { i