Mercurial > hg > nginx-site
changeset 3041:80cc4e6d3d6d
Free nginx: removed marketing banner.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 14 Feb 2024 20:05:45 +0300 |
parents | b55264db8d9f |
children | 19e4897acb84 |
files | GNUmakefile xsls/article.xsls xsls/banner.xsls xsls/body.xsls xsls/news.xsls xsls/style.xsls |
diffstat | 6 files changed, 2 insertions(+), 54 deletions(-) [+] |
line wrap: on
line diff
--- a/GNUmakefile Wed Feb 07 15:08:12 2024 +0000 +++ b/GNUmakefile Wed Feb 14 20:05:45 2024 +0300 @@ -1,7 +1,6 @@ OUT = libxslt TEXT = text -BANNER = banner ZIP = gzip NGINX_ORG = /data/www/nginx.org SHELL = ./umasked.sh @@ -46,7 +45,6 @@ xslt/style.xslt \ xslt/body.xslt \ xslt/menu.xslt \ - xslt/banner.xslt \ xslt/content.xslt \ ARTICLE_DEPS = \ @@ -314,15 +312,14 @@ $(MAKE) do_gzip rsync_gzip: - $(CHMOD) $(OUT) $(TEXT) $(BANNER) - $(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(BANNER) $(ZIP)/ + $(CHMOD) $(OUT) $(TEXT) + $(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(ZIP)/ do_gzip: $(addsuffix .gz, $(wildcard $(ZIP)/*.html)) \ $(addsuffix .gz, \ $(foreach lang, $(LANGS), \ $(foreach dir, . docs docs/dev docs/faq docs/http docs/mail docs/njs docs/stream, \ $(wildcard $(ZIP)/$(lang)/$(dir)/*.html)))) \ - $(addsuffix .gz, $(wildcard $(ZIP)/$(BANNER)/*.html)) \ $(ZIP)/index.rss.gz \ $(ZIP)/LICENSE.gz \ $(ZIP)/en/CHANGES.gz \
--- a/xsls/article.xsls Wed Feb 07 15:08:12 2024 +0000 +++ b/xsls/article.xsls Wed Feb 14 20:05:45 2024 +0300 @@ -26,7 +26,6 @@ X:include href = "style.xslt"; X:include href = "body.xslt"; X:include href = "menu.xslt"; -X:include href = "banner.xslt"; X:include href = "content.xslt"; X:include href = "books.xslt"; X:include href = "directive.xslt"; @@ -49,8 +48,6 @@ !style (lang="@lang") - !banner () - </head> !body (lang="@lang")
--- a/xsls/banner.xsls Wed Feb 07 15:08:12 2024 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -<!-- - Copyright (C) Nginx, Inc. - --> - -X:stylesheet { - -X:var BANNER = "'/banner/banner.html'"; - -X:template banner_link () { - X:if "substring-after($DIRNAME, '/')" { - !{ concat($ROOT, $BANNER) } - } else { - !{ substring-after($BANNER, '/') } - } -} - -X:template banner () { - - <script> - window.addEventListener("load", function(e) \{ - fetch("!banner_link ()") - .then((response) => response.text()) - .then((resp) => \{ - document.getElementById("banner").innerHTML = resp; - \}) - .catch((error) => \{ - console.warn(error); - \}); - \}); - </script> - -} - -}
--- a/xsls/body.xsls Wed Feb 07 15:08:12 2024 +0000 +++ b/xsls/body.xsls Wed Feb 14 20:05:45 2024 +0300 @@ -17,9 +17,6 @@ <body> - <div id="banner"> - </div> - <div id="main"> <div id="menu"> <h1>
--- a/xsls/news.xsls Wed Feb 07 15:08:12 2024 +0000 +++ b/xsls/news.xsls Wed Feb 14 20:05:45 2024 +0300 @@ -27,7 +27,6 @@ X:include href = "style.xslt"; X:include href = "body.xslt"; X:include href = "menu.xslt"; -X:include href = "banner.xslt"; X:include href = "content.xslt"; @@ -41,8 +40,6 @@ !style (lang="@lang") - !banner () - </head> !body (lang="@lang")
--- a/xsls/style.xsls Wed Feb 07 15:08:12 2024 +0000 +++ b/xsls/style.xsls Wed Feb 14 20:05:45 2024 +0300 @@ -15,12 +15,6 @@ text-align: center; margin: 0; padding: 0; } - #banner { background: black; - color: #F2F2F2; - line-height: 1.2em; - padding: .3em 0; - box-shadow: 0 5px 10px black; } - #banner a { color: #00B140; } #main { text-align: left; margin: 0 auto; min-width: 32em;